Class AssignmentPathSegmentImpl
java.lang.Object
com.evolveum.midpoint.model.impl.lens.assignments.AssignmentPathSegmentImpl
- All Implemented Interfaces:
AssignmentPathSegment
,Freezable
,DebugDumpable
,ShortDumpable
,Serializable
Primary duty of this class is to be a part of assignment path. (This is what is visible through its interface,
AssignmentPathSegment.)
However, it also stores some (although not complete) information about assignment evaluation.
Note: we avoid getter methods for some final fields to simplify client code.
- Author:
- semancik
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Method Summary
Modifier and TypeMethodDescriptiondebugDump
(int indent) boolean
boolean
equivalent
(AssignmentPathSegment otherSegment) void
freeze()
@NotNull AssignmentType
@Nullable AssignmentType
getAssignment
(boolean evaluateOld) @Nullable Long
@NotNull ItemDeltaItem<PrismContainerValue<AssignmentType>,
PrismContainerDefinition<AssignmentType>> int
hashCode()
boolean
True if the segment corresponds to assignment.boolean
True if the relation is a delegation one.boolean
boolean
Whether this assignment/inducement matches the focus level, i.e. if we should collect constructions, focus mappings, focus policy rules and similar items from it.boolean
Whether this assignment/inducement matches the target level, i.e. if we should collect target policy rules from it.boolean
matches
(@NotNull List<OrderConstraintsType> orderConstraints) Returns true if the path segment matches specified order constraints.void
setAssignmentConditionState
(ConditionState assignmentConditionState) void
setOverallConditionState
(ConditionState overallConditionState) void
Show the content of the object intended for diagnostics.@NotNull AssignmentPathSegmentType
toAssignmentPathSegmentBean
(boolean includeAssignmentsContent) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
Method Details
-
isAssignment
public boolean isAssignment()Description copied from interface:AssignmentPathSegment
True if the segment corresponds to assignment. False if it's an inducement.- Specified by:
isAssignment
in interfaceAssignmentPathSegment
-
getAssignmentIdi
@NotNull public @NotNull ItemDeltaItem<PrismContainerValue<AssignmentType>,PrismContainerDefinition<AssignmentType>> getAssignmentIdi() -
getAssignment
- Specified by:
getAssignment
in interfaceAssignmentPathSegment
-
getAssignment
- Specified by:
getAssignment
in interfaceAssignmentPathSegment
-
getAssignmentAny
- Specified by:
getAssignmentAny
in interfaceAssignmentPathSegment
-
getAssignmentNew
- Specified by:
getAssignmentNew
in interfaceAssignmentPathSegment
-
getRelation
- Specified by:
getRelation
in interfaceAssignmentPathSegment
-
getTarget
- Specified by:
getTarget
in interfaceAssignmentPathSegment
-
getSource
- Specified by:
getSource
in interfaceAssignmentPathSegment
-
getSourceOid
- Specified by:
getSourceOid
in interfaceAssignmentPathSegment
-
getAssignmentConditionState
-
setAssignmentConditionState
-
getOverallConditionState
-
setOverallConditionState
-
getEvaluationOrder
-
isMatchingOrder
public boolean isMatchingOrder()Description copied from interface:AssignmentPathSegment
Whether this assignment/inducement matches the focus level, i.e. if we should collect constructions, focus mappings, focus policy rules and similar items from it.- Specified by:
isMatchingOrder
in interfaceAssignmentPathSegment
-
isMatchingOrderForTarget
public boolean isMatchingOrderForTarget()Description copied from interface:AssignmentPathSegment
Whether this assignment/inducement matches the target level, i.e. if we should collect target policy rules from it.- Specified by:
isMatchingOrderForTarget
in interfaceAssignmentPathSegment
-
isDelegation
public boolean isDelegation()Description copied from interface:AssignmentPathSegment
True if the relation is a delegation one.- Specified by:
isDelegation
in interfaceAssignmentPathSegment
-
hashCode
public int hashCode() -
equals
-
toString
-
shortDump
Description copied from interface:ShortDumpable
Show the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
shortDump
in interfaceShortDumpable
- Parameters:
sb
- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
toAssignmentPathSegmentBean
@NotNull public @NotNull AssignmentPathSegmentType toAssignmentPathSegmentBean(boolean includeAssignmentsContent) - Specified by:
toAssignmentPathSegmentBean
in interfaceAssignmentPathSegment
-
matches
Description copied from interface:AssignmentPathSegment
Returns true if the path segment matches specified order constraints. All of them must match. Although there are some defaults, it is recommended to specify constraints explicitly.- Specified by:
matches
in interfaceAssignmentPathSegment
-
equivalent
- Specified by:
equivalent
in interfaceAssignmentPathSegment
-
isImmutable
public boolean isImmutable()- Specified by:
isImmutable
in interfaceFreezable
-
freeze
public void freeze() -
getAssignmentId
-