Package org.apache.felix.useradmin.impl.role

Examples of org.apache.felix.useradmin.impl.role.RoleImpl


     * Tests that with permission, the {@link GroupImpl#addRequiredMember(Role)} method can be accessed.
     */
    public void testAddRequiredMemberWithPermissionsOk() throws SecurityException {
        m_securityManager.m_allowed = true;
       
        m_group.addRequiredMember(new RoleImpl(Role.USER_ANYONE));
    }
View Full Code Here


    /**
     * Tests that without permission, the {@link GroupImpl#addRequiredMember(Role)} method can not be accessed.
     */
    public void testAddRequiredMemberWithoutPermissionsFail() throws SecurityException {
        try {
            m_group.addRequiredMember(new RoleImpl(Role.USER_ANYONE));
           
            fail("Security exception expected!");
        } catch (SecurityException e) {
            // Ok; expected
        }
View Full Code Here

     * Tests that with permission, the {@link GroupImpl#removeMember(Role)} method can be accessed.
     */
    public void testRemoveMemberWithPermissionsOk() throws SecurityException {
        m_securityManager.m_allowed = true;
       
        assertFalse(m_group.removeMember(new RoleImpl(Role.USER_ANYONE)));
    }
View Full Code Here

    /**
     * Tests that without permission, the {@link GroupImpl#removeMember(Role)} method can not be accessed.
     */
    public void testRemoveMemberWithoutPermissionsFail() throws SecurityException {
        try {
            assertFalse(m_group.removeMember(new RoleImpl(Role.USER_ANYONE)));

            fail("Security exception expected!");
        } catch (SecurityException e) {
            // Ok; expected
        }
View Full Code Here

            return result;
        } else if (type == Role.GROUP) {
            GroupImpl result = new GroupImpl(name);
            return result;
        } else {
            RoleImpl result = new RoleImpl(name);
            return result;
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.felix.useradmin.impl.role.RoleImpl

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.