Example #1
0
  @Checked("ResultPredicates.writePredicate")
  public void removeParticipation(ResultParticipation participation) {

    Person person = participation.getPerson();
    if (person.equals(this.getCreator())) {
      throw new DomainException("error.researcher.Result.cannotRemoveCreatorParticipation");
    } else {
      participation.deleteIfNotLast();
      this.reOrderParticipations(this.getOrderedResultParticipations());
      updateModifiedByAndDate();
    }
  }