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 ConfigurationItemOrigin
static AssignmentOrigin
inObject
(@NotNull ConfigurationItemOrigin configurationItemOrigin) boolean
Assignment is either being added in the current wave or was added in some of the previous waves.boolean
Assignment is either being deleted in the current wave or was deleted in some of the previous waves.boolean
Assignment was present at the beginning and is not being deleted.boolean
boolean
boolean
boolean
isNew()
boolean
isOld()
boolean
static AssignmentOrigin
other
(@NotNull ConfigurationItemOrigin configurationItemOrigin) Not in object, not virtual - to be used in tests.void
void
setNew
(boolean value) toString()
static AssignmentOrigin
virtual
(@NotNull ConfigurationItemOrigin configurationItemOrigin) Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
performFreeze
in classAbstractFreezable
-