Class TaskOperationUtils


  • public class TaskOperationUtils
    extends Object
    • Constructor Detail

      • TaskOperationUtils

        public TaskOperationUtils()
    • Method Detail

      • suspendTasks

        public static OperationResult suspendTasks​(List<TaskType> selectedTasks,
                                                   PageBase pageBase)
        Suspends tasks "intelligently" i.e. tries to recognize whether to suspend a single task, or to suspend the whole tree. (Maybe this differentiation should be done by the task manager itself.) It is also questionable whether we should create the task here or it should be done by the caller. For the time being it is done here.
      • runNowPerformed

        public static OperationResult runNowPerformed​(List<String> oids,
                                                      PageBase pageBase)
        Schedules the tasks for immediate execution. TODO should we distinguish between plain task and task tree roots here?
      • getReportArchetypesList

        public static List<String> getReportArchetypesList()
      • getUtilityArchetypesList

        public static List<String> getUtilityArchetypesList()
      • getSystemArchetypesList

        public static List<String> getSystemArchetypesList()
      • addArchetypeReferencesList

        public static void addArchetypeReferencesList​(List<ObjectReferenceType> references)