示例#1
0
 public static IdMap createIdMap(String sessionID) {
   IdMap jsonIdMap = new IdMap().withSessionId(sessionID);
   jsonIdMap.with(new de.uniks.networkparser.test.model.util.GroupAccountCreator());
   jsonIdMap.with(new de.uniks.networkparser.test.model.util.PersonCreator());
   jsonIdMap.with(new de.uniks.networkparser.test.model.util.ItemCreator());
   return jsonIdMap;
 }
  public static IdMap createIdMap(String sessionID) {
    IdMap jsonIdMap = new IdMap();
    jsonIdMap.withSessionId(sessionID);

    jsonIdMap.with(new UniversityCreator());
    jsonIdMap.with(new RoomCreator());
    jsonIdMap.with(new StudentCreator());

    return jsonIdMap;
  }