Examples of removeMember()


Examples of brooklyn.entity.group.DynamicCluster.removeMember()

        try {
            LOG.info("Releasing {}", machine);

            DynamicCluster cluster = dockerHost.getDockerContainerCluster();
            DockerContainer container = machine.getOwner();
            if (cluster.removeMember(container)) {
                LOG.info("Docker Host {}: member {} released", dockerHost.getDockerHostName(), machine);
            } else {
                LOG.warn("Docker Host {}: member {} not found for release", dockerHost.getDockerHostName(), machine);
            }
View Full Code Here

Examples of com.github.sommeri.less4j.core.ast.Body.removeMember()

    if (!(parent instanceof Body)) {
      throw new BugHappened("Parent is not a body instance. " + parent, parent);
    }

    Body pBody = (Body) parent;
    pBody.removeMember(node);
    node.setParent(null);
  }

  public void replaceInBody(ASTCssNode oldNode, ASTCssNode newNode) {
    ASTCssNode parent = oldNode.getParent();
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.store.social.community.CommunityPojo.removeMember()

        if ( !cp.getIsPersonalCommunity())
        {
          BasicDBObject queryPerson = new BasicDBObject("_id",new ObjectId(personIdStr));
          DBObject dboPerson = DbManager.getSocial().getPerson().findOne(queryPerson);
          PersonPojo pp = PersonPojo.fromDb(dboPerson,PersonPojo.class);
          cp.removeMember(new ObjectId(personIdStr));
          pp.removeCommunity(cp);         
          //write both objects back to db now
          /////////////////////////////////////////////////////////////////////////////////////////////////
          // TODO (INF-1214): Make this code more robust to handle changes to the community that need to
          // Caleb: this means change update to $set
View Full Code Here

Examples of es.ipsa.atril.sec.admin.AdministeredGroup.removeMember()

    AuthorizationAdminManager oAam = oSes.getAuthorizationAdminManager();
    String sBusinessName = getString("business_name");
    AdministeredUser oAsr = oUsr.getAdministeredUser();
    AdministeredGroup oAdm = oAam.getGroup(sBusinessName+" admins");
    if (oAdm.getMembers().contains(oAsr))
      oAdm.removeMember(oAsr);
  }
 
  public void grant(AtrilSession oSes, Document... aDocs)
    throws AuthorizationException,ElementNotFoundException {
    AuthorizationManager oAum = oSes.getAuthorizationManager();
View Full Code Here

Examples of games.stendhal.server.core.rp.group.Group.removeMember()

    if (group == null) {
      player.sendPrivateText(NotificationType.ERROR, "You are not a member of a group.");
      return;
    }

    group.removeMember(player.getName());
  }


  /**
   * status report about the group
View Full Code Here

Examples of games.stendhal.server.core.rp.group.Group.removeMember()

      return;
    }

    // tell the members of the kick and remove the target player
    group.sendGroupMessage("Group", targetPlayer + " was kicked by " + player.getName());
    group.removeMember(targetPlayer);
  }

  /**
   * sends an error messages on invalid an actions
   *
 
View Full Code Here

Examples of java.security.acl.Group.removeMember()

       
        Enumeration<? extends Principal> members = group.members();
        assertEquals(new SimpleGroup("group", "friend"), members.nextElement());
        assertFalse(members.hasMoreElements());
       
        group.removeMember(new SimpleGroup("group", "friend"));
        assertFalse(group.members().hasMoreElements());
    }
}
View Full Code Here

Examples of javax.jdo.FetchGroup.removeMember()

    public void testRemoveMemberNotAMember() {
        FetchGroup fg = pm.getFetchGroup(Employee.class, "testRemoveMemberNotAMember");
        fg.addCategory(FetchGroup.ALL);
        try {
            fg.removeMember("NotAMember");
            fail("FetchGroup should throw on removeMember(NotAMember).");
        } catch(JDOException ex) {
            // good catch!
        }
    }
View Full Code Here

Examples of l2p.gameserver.model.PartyRoom.removeMember()

      return;
    }
    PartyRoom room = PartyRoomManager.getInstance().getRoom(member.getPartyRoom());
    if(room != null)
    {
      room.removeMember(member, true);
    }
  }
}
View Full Code Here

Examples of lineage2.gameserver.model.matching.MatchingRoom.removeMember()

    }
    if (member == room.getLeader())
    {
      return;
    }
    room.removeMember(member, true);
  }
}
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.