Examples of BasicAclEntry


Examples of org.acegisecurity.acl.basic.BasicAclEntry

        }

        for (int i = 0; i < acls.length; i++) {
            // Locate processable AclEntrys
            if (acls[i] instanceof BasicAclEntry) {
                BasicAclEntry processableAcl = (BasicAclEntry) acls[i];

                // See if principal has any of the required permissions
                for (int y = 0; y < requiredIntegers.length; y++) {
                    if (processableAcl.isPermitted(requiredIntegers[y].intValue())) {
                        if (logger.isDebugEnabled()) {
                            logger.debug("Including tag body as found permission: " + requiredIntegers[y]
                                + " due to AclEntry: '" + processableAcl + "'");
                        }
View Full Code Here

Examples of org.acegisecurity.acl.basic.BasicAclEntry

                }

                for (int i = 0; i < acls.length; i++) {
                    // Locate processable AclEntrys
                    if (acls[i] instanceof BasicAclEntry) {
                        BasicAclEntry processableAcl = (BasicAclEntry) acls[i];

                        // See if principal has any of the required permissions
                        for (int y = 0; y < requirePermission.length; y++) {
                            if (processableAcl.isPermitted(requirePermission[y])) {
                                if (logger.isDebugEnabled()) {
                                    logger.debug("Principal DOES have permission to return object: " + returnedObject
                                        + " due to ACL: " + processableAcl.toString());
                                }

                                return returnedObject;
                            }
                        }
View Full Code Here

Examples of org.acegisecurity.acl.basic.BasicAclEntry

                // Principal has some permissions for domain object, check them
                for (int i = 0; i < acls.length; i++) {
                    // Locate processable AclEntrys
                    if (acls[i] instanceof BasicAclEntry) {
                        BasicAclEntry processableAcl = (BasicAclEntry) acls[i];

                        // See if principal has any of the required permissions
                        for (int y = 0; y < requirePermission.length; y++) {
                            if (processableAcl.isPermitted(requirePermission[y])) {
                                if (logger.isDebugEnabled()) {
                                    logger.debug("Voting to grant access");
                                }

                                return AccessDecisionVoter.ACCESS_GRANTED;
View Full Code Here

Examples of org.acegisecurity.acl.basic.BasicAclEntry

                        if ((acls != null) && (acls.length != 0)) {
                            for (int i = 0; i < acls.length; i++) {
                                // Locate processable AclEntrys
                                if (acls[i] instanceof BasicAclEntry) {
                                    BasicAclEntry processableAcl = (BasicAclEntry) acls[i];

                                    // See if principal has any of the required permissions
                                    for (int y = 0; y < requirePermission.length; y++) {
                                        if (processableAcl.isPermitted(requirePermission[y])) {
                                            hasPermission = true;

                                            if (logger.isDebugEnabled()) {
                                                logger.debug("Principal is authorised for element: " + domainObject
                                                    + " due to ACL: " + processableAcl.toString());
                                            }
                                        }
                                    }
                                }
                            }
View Full Code Here

Examples of org.acegisecurity.acl.basic.BasicAclEntry

     * @return a fully populated instance suitable for use by external objects
     *
     * @throws IllegalArgumentException if the indicated ACL class could not be created
     */
    private BasicAclEntry createBasicAclEntry(AclDetailsHolder propertiesInformation, AclDetailsHolder aclInformation) {
        BasicAclEntry entry;

        try {
            entry = (BasicAclEntry) propertiesInformation.getAclClass().newInstance();
        } catch (InstantiationException ie) {
            throw new IllegalArgumentException(ie.getMessage());
        } catch (IllegalAccessException iae) {
            throw new IllegalArgumentException(iae.getMessage());
        }

        entry.setAclObjectIdentity(propertiesInformation.getAclObjectIdentity());
        entry.setAclObjectParentIdentity(propertiesInformation.getAclObjectParentIdentity());

        if (aclInformation == null) {
            // this is an inheritence marker instance only
            entry.setMask(0);
            entry.setRecipient(RECIPIENT_USED_FOR_INHERITENCE_MARKER);
        } else {
            // this is an individual ACL entry
            entry.setMask(aclInformation.getMask());
            entry.setRecipient(aclInformation.getRecipient());
        }

        return entry;
    }
View Full Code Here

Examples of org.acegisecurity.acl.basic.BasicAclEntry

                    if ((acls != null) && (acls.length != 0)) {
                        for (int i = 0; i < acls.length; i++) {
                            // Locate processable AclEntrys
                            if (acls[i] instanceof BasicAclEntry) {
                              BasicAclEntry processableAcl = (BasicAclEntry) acls[i];

                                // See if principal has any of the required permissions
                                for (int y = 0; y < requirePermission.length;
                                    y++) {
                                    if (processableAcl.isPermitted(
                                            requirePermission[y])) {
                                        hasPermission = true;

                                        if (logger.isDebugEnabled()) {
                                            logger.debug(
                                                "Principal is authorised for element: "
                                                + domainObject
                                                + " due to ACL: "
                                                + processableAcl.toString());
                                        }
                                    }
                                }
                            }
                        }
View Full Code Here

Examples of org.acegisecurity.acl.basic.BasicAclEntry

     * @throws IllegalArgumentException if the indicated ACL class could not be
     *         created
     */
    private BasicAclEntry createBasicAclEntry(
        AclDetailsHolder propertiesInformation, AclDetailsHolder aclInformation) {
        BasicAclEntry entry;

        try {
            entry = (BasicAclEntry) propertiesInformation.getAclClass()
                                                         .newInstance();
        } catch (InstantiationException ie) {
            throw new IllegalArgumentException(ie.getMessage());
        } catch (IllegalAccessException iae) {
            throw new IllegalArgumentException(iae.getMessage());
        }

        entry.setAclObjectIdentity(propertiesInformation.getAclObjectIdentity());
        entry.setAclObjectParentIdentity(propertiesInformation
            .getAclObjectParentIdentity());

        if (aclInformation == null) {
            // this is an inheritence marker instance only
            entry.setMask(0);
            entry.setRecipient(RECIPIENT_USED_FOR_INHERITENCE_MARKER);
        } else {
            // this is an individual ACL entry
            entry.setMask(aclInformation.getMask());
            entry.setRecipient(aclInformation.getRecipient());
        }

        return entry;
    }
View Full Code Here

Examples of org.acegisecurity.acl.basic.BasicAclEntry

                }

                for (int i = 0; i < acls.length; i++) {
                    // Locate processable AclEntrys
                    if (acls[i] instanceof BasicAclEntry) {
                        BasicAclEntry processableAcl = (BasicAclEntry) acls[i];

                        // See if principal has any of the required permissions
                        for (int y = 0; y < requirePermission.length; y++) {
                            if (processableAcl.isPermitted(requirePermission[y])) {
                                if (logger.isDebugEnabled()) {
                                    logger.debug(
                                        "Principal DOES have permission to return object: "
                                        + returnedObject + " due to ACL: "
                                        + processableAcl.toString());
                                }

                                return returnedObject;
                            }
                        }
View Full Code Here

Examples of org.acegisecurity.acl.basic.BasicAclEntry

                // Principal has some permissions for domain object, check them
                for (int i = 0; i < acls.length; i++) {
                    // Locate processable AclEntrys
                    if (acls[i] instanceof BasicAclEntry) {
                        BasicAclEntry processableAcl = (BasicAclEntry) acls[i];

                        // See if principal has any of the required permissions
                        for (int y = 0; y < requirePermission.length; y++) {
                            if (processableAcl.isPermitted(requirePermission[y])) {
                                if (logger.isDebugEnabled()) {
                                    logger.debug("Voting to grant access");
                                }

                                return AccessDecisionVoter.ACCESS_GRANTED;
View Full Code Here

Examples of org.acegisecurity.acl.basic.BasicAclEntry

        }

        for (int i = 0; i < acls.length; i++) {
            // Locate processable AclEntrys
            if (acls[i] instanceof BasicAclEntry) {
              BasicAclEntry processableAcl = (BasicAclEntry) acls[i];

                // See if principal has any of the required permissions
                for (int y = 0; y < requiredIntegers.length; y++) {
                    if (processableAcl.isPermitted(
                            requiredIntegers[y].intValue())) {
                        if (logger.isDebugEnabled()) {
                            logger.debug(
                                "Including tag body as found permission: "
                                + requiredIntegers[y] + " due to AclEntry: '"
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.