Beispiel #1
0
 private void checkForEqualFocusArea(final MultiLanguageString name) {
   for (final PhdProgramFocusArea focusArea : Bennu.getInstance().getPhdProgramFocusAreasSet()) {
     if (focusArea != this && focusArea.getName().equalInAnyLanguage(name)) {
       throw new DomainException("error.PhdProgramFocusArea.found.area.with.same.name");
     }
   }
 }
Beispiel #2
0
 @Override
 public int compare(PhdProgramFocusArea o1, PhdProgramFocusArea o2) {
   int result = o1.getName().compareTo(o2.getName());
   return (result != 0) ? result : DomainObjectUtil.COMPARATOR_BY_ID.compare(o1, o2);
 }