Package org.openengsb.domain.authorization.AuthorizationDomain

Examples of org.openengsb.domain.authorization.AuthorizationDomain.Access


                utilsService.getServiceIterator(providers, AuthorizationDomain.class);
            LOGGER.debug("iterating {} authenticationProviderServices", providers.size());
            boolean granted = false;
            while (serviceIterator.hasNext()) {
                AuthorizationDomain provider = serviceIterator.next();
                Access checkAccess = provider.checkAccess(user, action);
                if (checkAccess == Access.GRANTED) {
                    granted = true;
                } else if (checkAccess == Access.DENIED) {
                    return Access.DENIED;
                }
View Full Code Here


            // this action is executed in a root-context
            return mi.proceed();
        }

        String username = (String) subject.getPrincipal();
        Access decisionResult = authorizer.checkAccess(username, mi);
        if (decisionResult != Access.GRANTED) {
            LOGGER.warn("Access denied because result was {}", decisionResult);
            throw new AccessDeniedException();
        }
        LOGGER.debug("Access was granted");
View Full Code Here

            return false;
        }
        UIAction secureAction =
            new UIAction(attributeList, arg1.getName(), ImmutableMap.of("component", (Object) arg0));

        Access checkAccess = authorizer.checkAccess(user, secureAction);
        if (checkAccess != Access.GRANTED) {
            LOGGER.warn("User {} was denied action {} on component {}", new Object[]{ user, arg1.toString(),
                arg0.getClass().getName() });
        }
        return checkAccess == Access.GRANTED;
View Full Code Here

TOP

Related Classes of org.openengsb.domain.authorization.AuthorizationDomain.Access

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.