Class AssignmentPathSegmentImpl
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.lens.assignments.AssignmentPathSegmentImpl
-
- All Implemented Interfaces:
AssignmentPathSegment
,Freezable
,DebugDumpable
,ShortDumpable
,Serializable
public class AssignmentPathSegmentImpl extends Object implements AssignmentPathSegment, Freezable
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AssignmentPathSegmentImpl.Builder
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
-
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 Detail
-
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
-
isArchetypeHierarchy
public boolean isArchetypeHierarchy()
-
getAssignmentIdi
public ItemDeltaItem<PrismContainerValue<AssignmentType>,PrismContainerDefinition<AssignmentType>> getAssignmentIdi()
-
getAssignment
public AssignmentType getAssignment(boolean evaluateOld)
- Specified by:
getAssignment
in interfaceAssignmentPathSegment
-
getAssignment
public AssignmentType getAssignment()
- Specified by:
getAssignment
in interfaceAssignmentPathSegment
-
getAssignmentAny
public AssignmentType getAssignmentAny()
- Specified by:
getAssignmentAny
in interfaceAssignmentPathSegment
-
getAssignmentNew
public AssignmentType getAssignmentNew()
- Specified by:
getAssignmentNew
in interfaceAssignmentPathSegment
-
getRelation
public QName getRelation()
- Specified by:
getRelation
in interfaceAssignmentPathSegment
-
getTarget
public ObjectType getTarget()
- Specified by:
getTarget
in interfaceAssignmentPathSegment
-
getSource
public AssignmentHolderType getSource()
- Specified by:
getSource
in interfaceAssignmentPathSegment
-
getAssignmentConditionState
public ConditionState getAssignmentConditionState()
-
setAssignmentConditionState
public void setAssignmentConditionState(ConditionState assignmentConditionState)
-
getOverallConditionState
public ConditionState getOverallConditionState()
-
setOverallConditionState
public void setOverallConditionState(ConditionState overallConditionState)
-
getEvaluationOrder
public EvaluationOrder 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
-
shortDump
public void shortDump(StringBuilder sb)
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
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
toAssignmentPathSegmentType
@NotNull public @NotNull AssignmentPathSegmentType toAssignmentPathSegmentType(boolean includeAssignmentsContent)
- Specified by:
toAssignmentPathSegmentType
in interfaceAssignmentPathSegment
-
matches
public boolean matches(@NotNull @NotNull List<OrderConstraintsType> orderConstraints)
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
public boolean equivalent(AssignmentPathSegment otherSegment)
- Specified by:
equivalent
in interfaceAssignmentPathSegment
-
isImmutable
public boolean isImmutable()
- Specified by:
isImmutable
in interfaceFreezable
-
getAssignmentId
public Long getAssignmentId()
-
-