Package org.openengsb.core.api.security.model

Examples of org.openengsb.core.api.security.model.SecurityAttributeEntry


    private void addAuthorizationRoles(BookmarkablePageLabelLink<?> pageLabelLink, String... authority) {
        if (authority == null) {
            return;
        }
        for (String a : authority) {
            attributeStore.putAttribute(pageLabelLink, new SecurityAttributeEntry(a, "RENDER"));
        }
    }
View Full Code Here


    private void initContent() {
        WebMarkupContainer serviceManagementContainer = new WebMarkupContainer("serviceManagementContainer");
        serviceManagementContainer.setOutputMarkupId(true);
        add(serviceManagementContainer);
        attributeStore.putAttribute(serviceManagementContainer, new SecurityAttributeEntry(
            "org.openengsb.ui.component", "SERVICE_EDITOR"));
        serviceManagementContainer.add(makeServiceList());

        Form<Object> organize = createOrganizeForm();
        add(organize);
View Full Code Here

    @Test
    public void testCheckServiceInstanceAccessById_shouldGrant() throws Exception {
        NullDomainImpl nullDomainImpl = new NullDomainImpl("foo");
        MethodInvocation invocation = MethodInvocationUtils.create(nullDomainImpl, "nullMethod", new Object());

        attributeStore.putAttribute(nullDomainImpl, new SecurityAttributeEntry("name", "service.foo"));

        ServicePermission permission = new ServicePermission();
        permission.setInstance("service.foo");
        userManager.addPermissionToUser("testuser", permission);
View Full Code Here

        proxyFactory.setInterfaces(clazzes);
        proxyFactory.addAdvice(securityInterceptor);
        proxyFactory.setTarget(serviceInstance);
        Connector result = (Connector) proxyFactory.getProxy(this.getClass().getClassLoader());
        // @extract-end
        attributeStore.replaceAttributes(serviceInstance, new SecurityAttributeEntry("name", id));
        return result;
    }
View Full Code Here

        adminAccessConnector.setUserManager(userManager);

        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

        }
        return null;
    }

    private SecurityAttributeEntry convertAnnotationToEntry(SecurityAttribute annotation) {
        return new SecurityAttributeEntry(annotation.key(), annotation.value());
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.api.security.model.SecurityAttributeEntry

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.