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
AttachesTaskInformation
toSelectableBean
for `TaskType`. FIXME Temporary solution. It would be better to provide a specialized subclass ofSelectableBeanImpl
to cover this use case.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TaskInformationUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull TaskInformation
getOrCreateInfo(@NotNull SelectableBean<TaskType> bean, @Nullable TaskType rootTask)
InstallsTaskInformationUtil
into givenSelectableBean
(or returns information already being there).
-
-
-
Method Detail
-
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.)
-
-