Class TaskInformationUtil
java.lang.Object
com.evolveum.midpoint.web.page.admin.server.dto.TaskInformationUtil
- All Implemented Interfaces:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull TaskInformation
getOrCreateInfo
(@NotNull SelectableBean<TaskType> bean, @Nullable TaskType rootTask) InstallsTaskInformationUtil
into givenSelectableBean
(or returns information already being there).
-
Constructor Details
-
TaskInformationUtil
public TaskInformationUtil()
-
-
Method Details
-
getOrCreateInfo
@NotNull public static @NotNull TaskInformation getOrCreateInfo(@NotNull @NotNull SelectableBean<TaskType> bean, @Nullable @Nullable TaskType rootTask) InstallsTaskInformationUtil
into givenSelectableBean
(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.)
-