Examples of addMember()


Examples of groundTruthModule.datastructure.OrganizationEntity.addMember()

      OrganizationEntity organization = db.getOrganizations().get(rand2);
      while (organization.getMembers().contains(person)) {
        rand1 = getRandom(0, nPeople - 1);
        person = db.getPeople().get(rand1);
      }
      organization.addMember(person);
      person.addRelatedOrganization(organization);
    }
  }

  /**
 
View Full Code Here

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

        Principal principal = principals.keySet().iterator().next();
        this.runAsSubject.getPrincipals().add(principal);

        // Add roles for this principal
        Group roles = new JGroup("roles");
        roles.addMember(new JPrincipal(runAsRole));

        // Add list roles for this role
        for (Principal member : principals.get(principal)) {
            roles.addMember(member);
        }
View Full Code Here

Examples of javax.jdo.FetchGroup.addMember()

    }

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

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

    if(room.getMembersSize() >= room.getMaxMembers())
    {
      player.sendPacket(Msg.PARTY_IS_FULL);
      return;
    }
    room.addMember(player);
  }

  public int getLocation(L2Player player)
  {
    if(player == null)
View Full Code Here

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

    MatchingRoom room = MatchingRoomManager.getInstance().getMatchingRoom(MatchingRoom.CC_MATCHING, _roomId);
    if (room == null)
    {
      return;
    }
    room.addMember(player);
  }
}
View Full Code Here

Examples of mks.integrations.common.TriclopsSiMembers.addMember()

      for (Map.Entry<MksSandboxInfo, ArrayList<VirtualFile>> entry : filesBysandbox.entrySet()) {
                if (entry.getKey() instanceof MksNativeSandboxInfo) {
                    TriclopsSiMembers members = MKSHelper.createMembers(((MksNativeSandboxInfo) entry.getKey()));
                    result[i++] = members;
                    for (VirtualFile virtualFile : entry.getValue()) {
                        members.addMember(new TriclopsSiMember(virtualFile.getPresentableUrl()));
                    }
                    MKSHelper.getMembersStatus(members);
                }                     else {
                    throw new UnsupportedOperationException("native");
                }
View Full Code Here

Examples of net.jangaroo.jooc.model.ClassModel.addMember()

    extAsClass.setAsdoc(toAsDoc(event.doc) + "\n * @see " + compilationUnitModel.getQName());

    FieldModel eventNameConstant = new FieldModel("NAME", "String", CompilerUtils.quote(event.name));
    eventNameConstant.setStatic(true);
    eventNameConstant.setAsdoc(MessageFormat.format("This constant defines the value of the <code>type</code> property of the event object\nfor a <code>{0}</code> event.\n   * @eventType {0}", event.name));
    extAsClass.addMember(eventNameConstant);

    MethodModel constructorModel = extAsClass.createConstructor();
    constructorModel.addParam(new ParamModel("arguments", "Array"));
    StringBuilder propertyAssignments = new StringBuilder();
    for (int i = 0; i < event.params.size(); i++) {
View Full Code Here

Examples of net.sf.jmd.metarepresentation.IModelItem.addMember()

       
        Variable variable = new Variable();
        variable.setName("aVariable");
        variable.setNamespace(item.getIdentifier());

        item.addMember(operation);
        item.addMember(variable);
       
        //these two models are equal
        model.addModelItem(item);
        other.addModelItem(item);
View Full Code Here

Examples of net.sf.jmd.metarepresentation.impl.ModelItem.addMember()

       
        Variable variable = new Variable();
        variable.setName("aVariable");
        variable.setNamespace(item.getIdentifier());

        item.addMember(operation);
        item.addMember(variable);
       
        //these two models are equal
        model.addModelItem(item);
        other.addModelItem(item);
View Full Code Here

Examples of org.apache.axis2.corba.idl.types.ExceptionType.addMember()

        while (memberTypeNode != null) {
            Member member = new Member();
            member.setDataType(findDataType(memberTypeNode));
            AST memberNode = memberTypeNode.getNextSibling();
            member.setName(memberNode.toString());
            raisesType.addMember(member);
            memberTypeNode = memberNode.getNextSibling();
        }
        return raisesType;
    }
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.