Class AssignmentOrigin

java.lang.Object
com.evolveum.midpoint.prism.AbstractFreezable
com.evolveum.midpoint.model.impl.lens.projector.AssignmentOrigin
All Implemented Interfaces:
Freezable, Serializable

public class AssignmentOrigin extends AbstractFreezable implements Serializable
Describes assignment origin, namely: - if it's in object old, current, or in delta; - if it's virtual or not; - where it originated - ConfigurationItemOrigin. TODO is this a good idea? Freezable, not immutable!
See Also:
  • Method Details

    • inObject

      public static AssignmentOrigin inObject(@NotNull @NotNull ConfigurationItemOrigin configurationItemOrigin)
    • other

      @VisibleForTesting public static AssignmentOrigin other(@NotNull @NotNull ConfigurationItemOrigin configurationItemOrigin)
      Not in object, not virtual - to be used in tests.
    • virtual

      public static AssignmentOrigin virtual(@NotNull @NotNull ConfigurationItemOrigin configurationItemOrigin)
    • isVirtual

      public boolean isVirtual()
    • isNew

      public boolean isNew()
    • setNew

      public void setNew(boolean value)
    • isCurrent

      public boolean isCurrent()
    • isOld

      public boolean isOld()
    • isInDeltaAdd

      public boolean isInDeltaAdd()
    • isInDeltaDelete

      public boolean isInDeltaDelete()
    • getConfigurationItemOrigin

      @NotNull public @NotNull ConfigurationItemOrigin getConfigurationItemOrigin()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isBeingAdded

      public boolean isBeingAdded()
      Assignment is either being added in the current wave or was added in some of the previous waves.
    • isBeingDeleted

      public boolean isBeingDeleted()
      Assignment is either being deleted in the current wave or was deleted in some of the previous waves.
    • isBeingKept

      public boolean isBeingKept()
      Assignment was present at the beginning and is not being deleted.
    • getAbsoluteMode

      public PlusMinusZero getAbsoluteMode()
      Returns absolute mode of this assignment with regard to focus old state.
    • performFreeze

      public void performFreeze()
      Overrides:
      performFreeze in class AbstractFreezable