Package org.openengsb.ui.api

Examples of org.openengsb.ui.api.UIAction


    @Override
    public Access checkAccess(String user, Object object) {
        if (!(object instanceof UIAction)) {
            return Access.ABSTAINED;
        }
        UIAction actionData = (UIAction) object;
        if (actionData.getSecurityAttributes() == null) {
            return Access.ABSTAINED;
        }
        if (hasAccess(user, actionData)) {
            return Access.GRANTED;
        }
View Full Code Here


        registerServiceAtLocation(adminAccessConnector, "authorization/admin", AuthorizationDomain.class);

        List<SecurityAttributeEntry> securityAttributes = new ArrayList<>();
        securityAttributes.add(new SecurityAttributeEntry("org.openengsb.ui.component", "MyPage"));
        uiAction = new UIAction(securityAttributes);

        WicketAclServiceImpl wicketAclService = new WicketAclServiceImpl(userManager);

        servicePermissionAccessConnector = wicketAclService;
View Full Code Here

        String user = getAuthenticatedUser();
        if (user == null) {
            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() });
View Full Code Here

            return false;
        }

        LOGGER.trace("security-attribute-annotation present on {}", componentClass);

        return authorizer.checkAccess(user, new UIAction(getSecurityAttributes(componentClass))) == Access.GRANTED;
    }
View Full Code Here

TOP

Related Classes of org.openengsb.ui.api.UIAction

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.