Package org.rhq.enterprise.server.resource.group.definition.exception

Examples of org.rhq.enterprise.server.resource.group.definition.exception.GroupDefinitionAlreadyExistsException


        try {
            GroupDefinition found = (GroupDefinition) query.getSingleResult();
            if ((id == null) // null == id means creating new def - so if query has results, it's a dup
                || (found.getId() != id)) // found != id means updating def - so if query has result, only dup if ids don't match
            {
                throw new GroupDefinitionAlreadyExistsException("GroupDefinition with name " + name + " already exists");
            }
        } catch (NoResultException e) {
            // user is changing the name of the group, this is OK
            return true;
        }
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.resource.group.definition.exception.GroupDefinitionAlreadyExistsException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.