Examples of removeMember()


Examples of org.apache.openjpa.persistence.datacache.common.apps.EmbeddingOwnerEntity.removeMember()

                id));
   
    List<EmbeddedEntity> members = owner.getMembers();
    members.remove(0);
    owner.removeMember(0);
    owner.removeMember(members.get(0));
    em.getTransaction().commit();
   
    assertEquals(owner.getMembers().size(), SIZE-3);
  }
View Full Code Here

Examples of org.apache.stratos.messaging.domain.topology.Cluster.removeMember()

                            event.getClusterId(),
                            event.getMemberId()));
                }
            } else {
              // Remove member from the cluster
              cluster.removeMember(member);
             
              if (log.isInfoEnabled()) {
                log.info(String.format("Member terminated: [service] %s [cluster] %s [member] %s",
                    event.getServiceName(),
                    event.getClusterId(),
View Full Code Here

Examples of org.atomojo.auth.service.db.Group.removeMember()

               if (facet.equals("members")) {
                  if (facetId!=null) {
                     try {
                        UUID id = UUID.fromString(facetId);
                        RealmUser user = fetchUser(id);
                        if (user!=null && group.removeMember(user)) {
                           getResponse().setStatus(Status.SUCCESS_NO_CONTENT);
                        } else {
                           getResponse().setStatus(Status.CLIENT_ERROR_NOT_FOUND);
                        }
                        return null;
View Full Code Here

Examples of org.dspace.eperson.EPerson.removeMember()

            { // Group already exists, so empty it
                if (params.replaceModeEnabled()) // -r -f
                {
                    for (Group member : collider.getMemberGroups())
                    {
                        collider.removeMember(member);
                    }
                    for (EPerson member : collider.getMembers())
                    {
                        // Remove all group members *EXCEPT* we don't ever want
                        // to remove the current user from the list of Administrators
View Full Code Here

Examples of org.dspace.eperson.Group.removeMember()

            AuthorizeManager.authorizeAction(context, group, Constants.WRITE);
            if ((group != null)) {
                int eid = Integer.parseInt((String) inputVar.get("eid"));
                EPerson ePerson = EPerson.find(context, eid);
                if (ePerson != null) {
                    group.removeMember(ePerson);
                    group.update();
                }
            }
        } catch (SQLException ex) {
            throw new EntityException("Internal server error", "SQL error", 500);
View Full Code Here

Examples of org.internna.iwebmvc.model.Role.removeMember()

        if (!CollectionUtils.isEmpty(user.getRoles())) {
            for (Iterator<? extends Role> it = user.getRoles().iterator(); it.hasNext();) {
                Role role = it.next();
                if (!roles.contains(role)) {
                    it.remove();
                    role.removeMember(user);
                }
            }
        }
        dao.updateUser(user);
        if (!CollectionUtils.isEmpty(user.getRoles()))
View Full Code Here

Examples of org.jahia.services.usermanager.JahiaGroup.removeMember()

            if (needPrivileged && !priv.isMember(p)) {
                logger.info(principal + " need privileged access");
                priv.addMember(p);
            } else if (!needPrivileged && priv.isMember(p)) {
                logger.info(principal + " do not need privileged access");
                priv.removeMember(p);
            }
        }
    }

    public void flushGroupCaches() {
View Full Code Here

Examples of org.jasig.portal.groups.IEntityGroup.removeMember()

             if ( group.isEditable() ) {
               IEntityGroup lg =
                 GroupService.findLockableGroup( group.getKey(), this.getClass().getName() );

               lg.removeMember( gm );
               lg.update();

               LOG.info("Removed " + userName + " from " + group.getKey());
             }// if
          }// for
View Full Code Here

Examples of org.moltools.apps.probemaker.design.ProbeGroup.removeMember()

        //We also have to set the selected probe's group to be the correct one.
        //Find the group
        ProbeGroup pg = (ProbeGroup) DesignUtils.getGroupWithType(p, ProbeGroup.GROUP_TYPE);       
        //Remove the current probe from the group
        if (pg != null) {
          pg.removeMember(p);                     
        }       
        //Copy the selected probe
        p.copy(selected);

        //Add the copied probe to the group
View Full Code Here

Examples of org.nasutekds.server.api.Group.removeMember()

    Entry user3Entry = DirectoryServer.getEntry(user3DN);
    groupInstance.addMember(user3Entry);
    assertTrue(groupInstance.isMember(user3DN));

    groupInstance.removeMember(user2DN);
    assertFalse(groupInstance.isMember(user2DN));

    groupInstance.toString(new StringBuilder());

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.