Examples of EZBPermissionManager


Examples of org.ow2.easybeans.api.EZBPermissionManager

    public Object intercept(final EasyBeansInvocationContext invocationContext) throws Exception {
        String oldContextId = PolicyContext.getContextID();
        boolean accessGranted = true;
        boolean runAsBean = invocationContext.getFactory().getBeanInfo().getSecurityInfo().getRunAsRole() != null;
        try {
            EZBPermissionManager permissionManager = invocationContext.getFactory().getContainer().getPermissionManager();
            if (permissionManager != null) {
                accessGranted = permissionManager.checkSecurity(invocationContext, runAsBean);
            }
        } finally {
            PolicyContext.setContextID(oldContextId);
        }
        if (!accessGranted) {
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.