Class WorkDefinitionBean

java.lang.Object
com.evolveum.midpoint.schema.util.task.work.WorkDefinitionBean
Direct Known Subclasses:
WorkDefinitionBean.Typed, WorkDefinitionBean.Untyped

public abstract class WorkDefinitionBean extends Object
Represents statically or dynamically defined activity work definition. Both kinds are subtypes of AbstractWorkDefinitionType. However, the former ones (WorkDefinitionBean.Typed) are compile-time defined, and thus representable as Containerable Java objects. The latter ones (WorkDefinitionBean.Untyped) are defined dynamically, and can be represented only as PrismContainerValue Java objects; at least for now. The naming is not very clear, as the word "bean" is used ambiguously. To be resolved somehow.
  • Constructor Details

    • WorkDefinitionBean

      public WorkDefinitionBean()
  • Method Details

    • getBeanTypeName

      @NotNull public abstract @NotNull QName getBeanTypeName()
      Returns the type name, e.g. `c:ReconciliationWorkDefinitionType` or `ext:MyCustomDefinitionType`.
    • getValue

      @NotNull public abstract @NotNull PrismContainerValue<?> getValue()
    • getBean

      @NotNull public abstract @NotNull AbstractWorkDefinitionType getBean()
      To be used only for typed values. Fails when called on untyped value.