public String resolveParticipantIdsAsXML(String anyID) { XNode node = new XNode("participantids"); for (Participant p : resolveParticipants(anyID)) { node.addChild("id", p.getID()); } return node.toString(); }
public Set<String> resolveParticipantIds(String anyID) { Set<String> idSet = new HashSet<String>(); for (Participant p : resolveParticipants(anyID)) { idSet.add(p.getID()); } return idSet; }
public Map<String, String> getParticipantIdentifiers(Identifier idType) { Map<String, String> idMap = new Hashtable<String, String>(); for (Participant p : getParticipants()) { String nameValue; switch (idType) { case FullName: nameValue = p.getFullName(); break; case ReverseFullName: nameValue = p.getLastName() + ", " + p.getFirstName(); break; case LastName: nameValue = p.getLastName(); break; default: nameValue = p.getUserID(); } idMap.put(p.getID(), nameValue); } return idMap; }
public boolean isKnownParticipant(Participant p) { return isKnownParticipant(p.getID()); }
/** ********************************* */ public void delParticipant(Participant p) { participantMap.remove(p.getID()); setChangeStamp(ResUnit.Participant); }
/** ********************************* */ public void putParticipant(Participant p) { participantMap.put(p.getID(), p); setChangeStamp(ResUnit.Participant); }