Class AssignmentPathSegmentImpl
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.lens.AssignmentPathSegmentImpl
-
- All Implemented Interfaces:
AssignmentPathSegment
,DebugDumpable
,ShortDumpable
public class AssignmentPathSegmentImpl extends Object implements AssignmentPathSegment
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 serves as a place where auxiliary information about assignment evaluation is stored.- Author:
- semancik
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description AssignmentPathSegmentImpl(ObjectType source, String sourceDescription, AssignmentType assignment, boolean isAssignment, RelationRegistry relationRegistry, PrismContext prismContext)
-
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.util.ShortDumpable
shortDump, shortDumpLazily
-
-
-
-
Constructor Detail
-
AssignmentPathSegmentImpl
public AssignmentPathSegmentImpl(ObjectType source, String sourceDescription, AssignmentType assignment, boolean isAssignment, RelationRegistry relationRegistry, PrismContext prismContext)
-
-
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
-
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
-
setRelation
public void setRelation(QName relation)
-
getTarget
public ObjectType getTarget()
- Specified by:
getTarget
in interfaceAssignmentPathSegment
-
setTarget
public void setTarget(ObjectType target)
-
getSource
public ObjectType getSource()
- Specified by:
getSource
in interfaceAssignmentPathSegment
-
getSourceDescription
public String getSourceDescription()
-
getTargetDescription
public String getTargetDescription()
-
isPathToSourceValid
public boolean isPathToSourceValid()
-
setPathToSourceValid
public void setPathToSourceValid(boolean pathToSourceValid)
-
isValidityOverride
public boolean isValidityOverride()
-
setValidityOverride
public void setValidityOverride(boolean validityOverride)
-
getEvaluationOrder
public EvaluationOrder getEvaluationOrder()
-
setEvaluationOrder
public void setEvaluationOrder(EvaluationOrder evaluationOrder)
-
setEvaluationOrder
public void setEvaluationOrder(EvaluationOrder evaluationOrder, Boolean matchingOrder)
-
getEvaluationOrderForTarget
public EvaluationOrder getEvaluationOrderForTarget()
-
setEvaluationOrderForTarget
public void setEvaluationOrderForTarget(EvaluationOrder evaluationOrder)
-
setEvaluationOrderForTarget
public void setEvaluationOrderForTarget(EvaluationOrder evaluationOrderForTarget, Boolean matching)
-
getOrderOneObject
public ObjectType getOrderOneObject()
-
setOrderOneObject
public void setOrderOneObject(ObjectType varThisObject)
-
isProcessMembership
public boolean isProcessMembership()
-
setProcessMembership
public void setProcessMembership(boolean processMembership)
-
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 AssignmentPathSegmentType toAssignmentPathSegmentType(boolean includeAssignmentsContent)
- Specified by:
toAssignmentPathSegmentType
in interfaceAssignmentPathSegment
-
getLastEqualOrderSegmentIndex
public Integer getLastEqualOrderSegmentIndex()
-
setLastEqualOrderSegmentIndex
public void setLastEqualOrderSegmentIndex(Integer lastEqualOrderSegmentIndex)
-
matches
public boolean matches(@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
-
-