Example #1
0
 /** ********************************* */
 public String addParticipant(Participant p) {
   if (isDataEditable(ResUnit.Participant)) {
     String newID = getDataSource(ResUnit.Participant).insert(p);
     if (!hasDefaultDataSource(ResUnit.Participant)) p.setID(newID);
     putParticipant(p); // add it to the data set
     return newID;
   } else return fail("External Participant dataset is read-only");
 }