Examples of ItemBasedPrincipal


Examples of org.apache.jackrabbit.api.security.principal.ItemBasedPrincipal

        checkInitialized();
        if (isAdminOrSystem(principals)) {
            return getAdminPermissions();
        } else {
            // determined the 'user' present in the given set of principals.
            ItemBasedPrincipal userPrincipal = getUserPrincipal(principals);
            NodeImpl userNode = getUserNode(userPrincipal);
            if (userNode == null) {
                // no 'user' within set of principals -> READ-only
                return getReadOnlyPermissions();
            } else {
View Full Code Here

Examples of org.apache.jackrabbit.api.security.principal.ItemBasedPrincipal

        checkInitialized();
        if (isAdminOrSystem(principals)) {
            return getAdminPermissions();
        } else {
            // determined the 'user' present in the given set of principals.
            ItemBasedPrincipal userPrincipal = getUserPrincipal(principals);
            NodeImpl userNode = getUserNode(userPrincipal);
            if (userNode == null) {
                // no 'user' within set of principals -> no permissions in the
                // security workspace.
                return CompiledPermissions.NO_PERMISSION;
View Full Code Here

Examples of org.apache.jackrabbit.api.security.principal.ItemBasedPrincipal

        }
        final String principalPath = path;

        List<Set<Principal>> principalSets = new ArrayList<Set<Principal>>();
        principalSets.add(Collections.<Principal>singleton(testPrincipal));
        principalSets.add(Collections.<Principal>singleton(new ItemBasedPrincipal() {
            public String getPath() {
                return principalPath;
            }
            public String getName() {
                return testPrincipal.getName();
View Full Code Here

Examples of org.apache.jackrabbit.api.security.principal.ItemBasedPrincipal

    private boolean denotesPrincipalPath(final String path) {
        if (path == null || path.length() == 0) {
            return false;
        }
        ItemBasedPrincipal princ = new ItemBasedPrincipal() {
            public String getPath() throws RepositoryException {
                return path;
            }
            public String getName() {
                return Text.getName(path);
View Full Code Here

Examples of org.apache.jackrabbit.api.security.principal.ItemBasedPrincipal

            // use workaround to retrieve the principal
            if (pathToACNode.startsWith(acRootPath)) {
                final String principalPath = pathToACNode.substring(acRootPath.length());
                if (principalPath.indexOf('/', 1) > 0) {
                    // safe to build an item based principal
                    authorizable = uMgr.getAuthorizable(new ItemBasedPrincipal() {
                        public String getPath() throws RepositoryException {
                            return principalPath;
                        }
                        public String getName() {
                            return Text.getName(principalPath);
View Full Code Here

Examples of org.apache.jackrabbit.api.security.principal.ItemBasedPrincipal

            if (!anonymousAccess && isAnonymous(principals))  {
                return CompiledPermissions.NO_PERMISSION;
            }
           
            // determined the 'user' present in the given set of principals.
            ItemBasedPrincipal userPrincipal = getUserPrincipal(principals);
            NodeImpl userNode = getUserNode(userPrincipal);
            if (userNode == null) {
                // no 'user' within set of principals -> no permissions in the
                // security workspace.
                return CompiledPermissions.NO_PERMISSION;
View Full Code Here

Examples of org.apache.jackrabbit.api.security.principal.ItemBasedPrincipal

        checkInitialized();
        if (isAdminOrSystem(principals)) {
            return getAdminPermissions();
        } else {
            // determined the 'user' present in the given set of principals.
            ItemBasedPrincipal userPrincipal = getUserPrincipal(principals);
            NodeImpl userNode = getUserNode(userPrincipal);
            if (userNode == null) {
                // no 'user' within set of principals -> READ-only
                return getReadOnlyPermissions();
            } else {
View Full Code Here

Examples of org.apache.jackrabbit.api.security.principal.ItemBasedPrincipal

        checkInitialized();
        if (isAdminOrSystem(principals)) {
            return getAdminPermissions();
        } else {
            // determined the 'user' present in the given set of principals.
            ItemBasedPrincipal userPrincipal = getUserPrincipal(principals);
            NodeImpl userNode = getUserNode(userPrincipal);
            if (userNode == null) {
                // no 'user' within set of principals -> READ-only
                return getReadOnlyPermissions();
            } else {
View Full Code Here

Examples of org.apache.jackrabbit.api.security.principal.ItemBasedPrincipal

            if (!anonymousAccess && isAnonymous(principals))  {
                return CompiledPermissions.NO_PERMISSION;
            }
           
            // determined the 'user' present in the given set of principals.
            ItemBasedPrincipal userPrincipal = getUserPrincipal(principals);
            NodeImpl userNode = getUserNode(userPrincipal);
            if (userNode == null) {
                // no 'user' within set of principals -> no permissions in the
                // security workspace.
                return CompiledPermissions.NO_PERMISSION;
View Full Code Here

Examples of org.apache.jackrabbit.api.security.principal.ItemBasedPrincipal

        checkInitialized();
        if (isAdminOrSystem(principals)) {
            return getAdminPermissions();
        } else {
            // determined the 'user' present in the given set of principals.
            ItemBasedPrincipal userPrincipal = getUserPrincipal(principals);
            NodeImpl userNode = getUserNode(userPrincipal);
            if (userNode == null) {
                // no 'user' within set of principals -> READ-only
                return getReadOnlyPermissions();
            } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.