Class TaskInformationUtil

java.lang.Object
com.evolveum.midpoint.web.page.admin.server.dto.TaskInformationUtil
All Implemented Interfaces:
Serializable

public class TaskInformationUtil extends Object implements Serializable
Attaches TaskInformation to SelectableBean for `TaskType`. FIXME Temporary solution. It would be better to provide a specialized subclass of SelectableBeanImpl to cover this use case.
See Also:
  • Constructor Details

    • TaskInformationUtil

      public TaskInformationUtil()
  • Method Details

    • getOrCreateInfo

      @NotNull public static @NotNull TaskInformation getOrCreateInfo(@NotNull @NotNull SelectableBean<TaskType> bean, @Nullable @Nullable TaskType rootTask)
      Installs TaskInformationUtil into given SelectableBean (or returns information already being there).
      Parameters:
      bean - The bean representing task in question. We either update it with the information, or just get it from there.
      rootTask - The root task. Should not be null if a task in bean is non-root. (If it is null, then information will be most probably displayed wrongly.)