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
Nested Classes -
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptiondebugDump(int indent) booleanbooleanequivalent(AssignmentPathSegment otherSegment) voidfreeze()@NotNull AssignmentType@Nullable AssignmentTypegetAssignment(boolean evaluateOld) @Nullable Long@NotNull ItemDeltaItem<PrismContainerValue<AssignmentType>,PrismContainerDefinition<AssignmentType>> inthashCode()booleanTrue if the segment corresponds to assignment.booleanTrue if the relation is a delegation one.booleanbooleanWhether this assignment/inducement matches the focus level, i.e. if we should collect constructions, focus mappings, focus policy rules and similar items from it.booleanWhether this assignment/inducement matches the target level, i.e. if we should collect target policy rules from it.booleanmatches(@NotNull List<OrderConstraintsType> orderConstraints) Returns true if the path segment matches specified order constraints.voidsetAssignmentConditionState(ConditionState assignmentConditionState) voidsetOverallConditionState(ConditionState overallConditionState) voidShow the content of the object intended for diagnostics.@NotNull AssignmentPathSegmentTypetoAssignmentPathSegmentBean(boolean includeAssignmentsContent) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutableMethods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
Method Details
-
isAssignment
public boolean isAssignment()Description copied from interface:AssignmentPathSegmentTrue if the segment corresponds to assignment. False if it's an inducement.- Specified by:
isAssignmentin interfaceAssignmentPathSegment
-
getAssignmentIdi
@NotNull public @NotNull ItemDeltaItem<PrismContainerValue<AssignmentType>,PrismContainerDefinition<AssignmentType>> getAssignmentIdi() -
getAssignment
- Specified by:
getAssignmentin interfaceAssignmentPathSegment
-
getAssignment
- Specified by:
getAssignmentin interfaceAssignmentPathSegment
-
getAssignmentAny
- Specified by:
getAssignmentAnyin interfaceAssignmentPathSegment
-
getAssignmentNew
- Specified by:
getAssignmentNewin interfaceAssignmentPathSegment
-
getRelation
- Specified by:
getRelationin interfaceAssignmentPathSegment
-
getTarget
- Specified by:
getTargetin interfaceAssignmentPathSegment
-
getSource
- Specified by:
getSourcein interfaceAssignmentPathSegment
-
getSourceOid
- Specified by:
getSourceOidin interfaceAssignmentPathSegment
-
getAssignmentConditionState
-
setAssignmentConditionState
-
getOverallConditionState
-
setOverallConditionState
-
getEvaluationOrder
-
isMatchingOrder
public boolean isMatchingOrder()Description copied from interface:AssignmentPathSegmentWhether 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:
isMatchingOrderin interfaceAssignmentPathSegment
-
isMatchingOrderForTarget
public boolean isMatchingOrderForTarget()Description copied from interface:AssignmentPathSegmentWhether this assignment/inducement matches the target level, i.e. if we should collect target policy rules from it.- Specified by:
isMatchingOrderForTargetin interfaceAssignmentPathSegment
-
isDelegation
public boolean isDelegation()Description copied from interface:AssignmentPathSegmentTrue if the relation is a delegation one.- Specified by:
isDelegationin interfaceAssignmentPathSegment
-
hashCode
public int hashCode() -
equals
-
toString
-
shortDump
Description copied from interface:ShortDumpableShow 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:
shortDumpin 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:
debugDumpin interfaceDebugDumpable
-
toAssignmentPathSegmentBean
@NotNull public @NotNull AssignmentPathSegmentType toAssignmentPathSegmentBean(boolean includeAssignmentsContent) - Specified by:
toAssignmentPathSegmentBeanin interfaceAssignmentPathSegment
-
matches
Description copied from interface:AssignmentPathSegmentReturns 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:
matchesin interfaceAssignmentPathSegment
-
equivalent
- Specified by:
equivalentin interfaceAssignmentPathSegment
-
isImmutable
public boolean isImmutable()- Specified by:
isImmutablein interfaceFreezable
-
freeze
public void freeze() -
getAssignmentId
-