Package org.apache.jackrabbit.api.security.user

Examples of org.apache.jackrabbit.api.security.user.AuthorizableExistsException


    public Group createGroup(Principal principal, String intermediatePath) throws AuthorizableExistsException, RepositoryException {
        if (!isValidPrincipal(principal)) {
            throw new IllegalArgumentException("Cannot create Group: Principal may not be null and must have a valid name.");
        }
        if (hasAuthorizableOrReferee(principal)) {
            throw new AuthorizableExistsException("Authorizable for '" + principal.getName() + "' already exists: ");
        }

        NodeImpl parent = null;
        try {
            String parentPath = getParentPath(intermediatePath, GROUPS_PATH);
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.api.security.user.AuthorizableExistsException

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.