Class AssignmentOrigin
java.lang.Object
com.evolveum.midpoint.prism.AbstractFreezable
com.evolveum.midpoint.model.impl.lens.projector.AssignmentOrigin
- All Implemented Interfaces:
Freezable,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 Summary
Modifier and TypeMethodDescriptionReturns absolute mode of this assignment with regard to focus old state.@NotNull ConfigurationItemOriginstatic AssignmentOrigininObject(@NotNull ConfigurationItemOrigin configurationItemOrigin) booleanAssignment is either being added in the current wave or was added in some of the previous waves.booleanAssignment is either being deleted in the current wave or was deleted in some of the previous waves.booleanAssignment was present at the beginning and is not being deleted.booleanbooleanbooleanbooleanisNew()booleanisOld()booleanstatic AssignmentOriginother(@NotNull ConfigurationItemOrigin configurationItemOrigin) Not in object, not virtual - to be used in tests.voidvoidsetNew(boolean value) toString()static AssignmentOriginvirtual(@NotNull ConfigurationItemOrigin configurationItemOrigin) Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable
-
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
-
toString
-
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
Returns absolute mode of this assignment with regard to focus old state. -
performFreeze
public void performFreeze()- Overrides:
performFreezein classAbstractFreezable
-