Package org.jmanage.core.auth

Examples of org.jmanage.core.auth.ACL$ACLContextWrapper


     */
    public static boolean canAccess(ServiceContext context,
                                    String aclName,
                                    String targetName){

        ACL acl = ACLStore.getInstance().getACL(aclName);
        if(acl == null){
            /* if acl is not specified, user has access by default */
            if(logger.isLoggable(Level.FINE))
                logger.fine("acl not configured:" + aclName);
            return true;
        }

        /* construct ACLContext from ServiceContext */
        ACLContext aclContext = getACLContext(context, targetName);
        if(acl.isAuthorized(aclContext, context.getUser())){
            return true;
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of org.jmanage.core.auth.ACL$ACLContextWrapper

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.