Package org.apache.jackrabbit.oak.spi.security.authorization

Examples of org.apache.jackrabbit.oak.spi.security.authorization.AccessControlContext.initialize()


        if (subject != null) {
            principals = subject.getPrincipals();
        }

        AccessControlContext context = new AccessControlContextImpl();
        context.initialize(principals);

        NodeUtil rootBefore = new NodeUtil(new ReadOnlyTree(before));
        NodeUtil rootAfter = new NodeUtil(new ReadOnlyTree(after));
        return new PermissionValidator(context.getPermissions(), rootBefore, rootAfter);
    }
View Full Code Here


        }
    }

    CompiledPermissions getPermissions() {
        AccessControlContext context = new AccessControlContextImpl();
        context.initialize(subject.getPrincipals());
        return context.getPermissions();
    }

    //------------------------------------------------------------< private >---
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.