Esempio n. 1
0
 @Atomic
 public static void run(final String degreeModuleID, final String contextID)
     throws FenixServiceException {
   final DegreeModule degreeModule = FenixFramework.getDomainObject(degreeModuleID);
   if (degreeModule == null) {
     throw new FenixServiceException("error.noDegreeModule");
   }
   final Context context = FenixFramework.getDomainObject(contextID);
   if (context == null) {
     throw new FenixServiceException("error.noCourseGroup");
   }
   degreeModule.deleteContext(context);
 }