Ejemplo n.º 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");
     }
   }
 }
Ejemplo n.º 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);
 }