Examples of removeMember()


Examples of org.nemesis.forum.Group.removeMember()

        request.setAttribute("id",group.getID()+"";
        User  u = manager.getUser(request.getParameter("username"));
        //check permission
        checkPermission(request,OperationConstants.DELETE_GROUP_MEMBER,group);
        // add user as an administrator of the group
        group.removeMember(u);
         
       
    } catch (NotFoundException e) {
      errors.add("general"new ActionError("groupUser.error.notFound"));           
       
View Full Code Here

Examples of org.nuxeo.ecm.social.workspace.adapters.SocialWorkspace.removeMember()

                Principal principal = userManager.getPrincipal(member);
                if (principal == null) {
                    // build a standard principal, only its name will be used
                    principal = new PrincipalImpl(member);
                }
                socialWorkspace.removeMember(principal);
            }
        }

        facesMessages.add(
                StatusMessage.Severity.INFO,
View Full Code Here

Examples of org.osgi.service.useradmin.Group.removeMember()

       
        m_latch = new CountDownLatch(1);
       
        new Thread(new Runnable() {
            public void run() {
                assertTrue(role.removeMember(anyone));
            };
        }).start();

        assertTrue(m_latch.await(100, TimeUnit.SECONDS));
    }
View Full Code Here

Examples of org.osgi.service.useradmin.Group.removeMember()

       
        m_latch = new CountDownLatch(1);
       
        new Thread(new Runnable() {
            public void run() {
                role.removeMember(anyone);
            };
        }).start();

        assertTrue(m_latch.await(1, TimeUnit.SECONDS));
    }
View Full Code Here

Examples of org.osgi.service.useradmin.Group.removeMember()

       
        m_latch = new CountDownLatch(1);
       
        new Thread(new Runnable() {
            public void run() {
                role.removeMember(anyone);
            };
        }).start();

        assertTrue(m_latch.await(1, TimeUnit.SECONDS));
    }
View Full Code Here

Examples of org.osgi.service.useradmin.Group.removeMember()

        User user1 = (User) m_userAdmin.createRole("user1", Role.USER);
        Group group1 = (Group) m_userAdmin.createRole("group1", Role.GROUP);
       
        assertTrue(group1.addMember(user1));
       
        assertTrue(group1.removeMember(user1));
        assertFalse(group1.removeMember(user1));
    }

    /**
     * Tests that removing a required member from a group works.
View Full Code Here

Examples of org.osgi.service.useradmin.Group.removeMember()

        Group group1 = (Group) m_userAdmin.createRole("group1", Role.GROUP);
       
        assertTrue(group1.addMember(user1));
       
        assertTrue(group1.removeMember(user1));
        assertFalse(group1.removeMember(user1));
    }

    /**
     * Tests that removing a required member from a group works.
     */
 
View Full Code Here

Examples of org.osgi.service.useradmin.Group.removeMember()

        User user1 = (User) m_userAdmin.createRole("user1", Role.USER);
        Group group1 = (Group) m_userAdmin.createRole("group1", Role.GROUP);
       
        assertTrue(group1.addRequiredMember(user1));
       
        assertTrue(group1.removeMember(user1));
        assertFalse(group1.removeMember(user1));
    }

    /**
     * Tests that testing for required group membership works.
View Full Code Here

Examples of org.osgi.service.useradmin.Group.removeMember()

        Group group1 = (Group) m_userAdmin.createRole("group1", Role.GROUP);
       
        assertTrue(group1.addRequiredMember(user1));
       
        assertTrue(group1.removeMember(user1));
        assertFalse(group1.removeMember(user1));
    }

    /**
     * Tests that testing for required group membership works.
     */
 
View Full Code Here

Examples of org.osgi.service.useradmin.Group.removeMember()

                toJSON(jw, xgroup, false);
            }
            else if ("removeMember".equals(action)) { //$NON-NLS-1$
                final Role xrole = userAdmin.getRole(role);
                final Group xgroup = (Group) userAdmin.getRole(group);
                xgroup.removeMember(xrole);
                toJSON(jw, xgroup, false);
            }
            else if ("del".equals(action)) { //$NON-NLS-1$
                out.print(userAdmin.removeRole(role));
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.