Package org.rhq.core.domain.authz

Examples of org.rhq.core.domain.authz.Role


        if (roleId == null) {
            roleId = RequestUtils.getRoleId(request);
        }

        Role role = (Role) request.getAttribute(Constants.ROLE_ATTR);
        if (role == null) {
            RequestUtils.setError(request, Constants.ERR_ROLE_NOT_FOUND);
            return null;
        }

        addForm.setR(role.getId());

        PageControl pca = WebUtility.getPageControl(request, "a");
        PageControl pcp = WebUtility.getPageControl(request, "p");

        log.trace("available page control: " + pca);
View Full Code Here


        // then delete BG and verify role still exists
        getTransactionManager().begin();
        EntityManager em = getEntityManager();
        try {
            BundleGroup bg = createBundleGroup(em);
            Role role = createRole(em);
            bg.addRole(role);
            em.persist(bg);
            em.persist(role);
            em.remove(bg);
            this.assertNotNull("Role previously assigned to BundleGroups must exist after BG was deleted", em.find(Role.class, role.getId()));      

        } catch (Throwable t) {
            t.printStackTrace();
            throw t;
        }
View Full Code Here

        BundleGroup bg = new BundleGroup("test-group");
        em.persist(bg);
        return bg;
    }
    private Role createRole(EntityManager em) {
        Role r = new Role("test-role");
        em.persist(r);
        return r;
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.authz.Role

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.