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 classAssignmentPathSegmentImpl.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:AssignmentPathSegmentTrue if the segment corresponds to assignment. False if it's an inducement.- Specified by:
 isAssignmentin interfaceAssignmentPathSegment
 
- 
isArchetypeHierarchy
public boolean isArchetypeHierarchy()
 
- 
getAssignmentIdi
@NotNull public @NotNull ItemDeltaItem<PrismContainerValue<AssignmentType>,PrismContainerDefinition<AssignmentType>> getAssignmentIdi()
 
- 
getAssignment
@Nullable public @Nullable AssignmentType getAssignment(boolean evaluateOld)
- Specified by:
 getAssignmentin interfaceAssignmentPathSegment
 
- 
getAssignment
@NotNull public @NotNull AssignmentType getAssignment()
- Specified by:
 getAssignmentin interfaceAssignmentPathSegment
 
- 
getAssignmentAny
public AssignmentType getAssignmentAny()
- Specified by:
 getAssignmentAnyin interfaceAssignmentPathSegment
 
- 
getAssignmentNew
public AssignmentType getAssignmentNew()
- Specified by:
 getAssignmentNewin interfaceAssignmentPathSegment
 
- 
getRelation
public QName getRelation()
- Specified by:
 getRelationin interfaceAssignmentPathSegment
 
- 
getTarget
public ObjectType getTarget()
- Specified by:
 getTargetin interfaceAssignmentPathSegment
 
- 
getSource
public AssignmentHolderType getSource()
- Specified by:
 getSourcein interfaceAssignmentPathSegment
 
- 
getSourceOid
public String getSourceOid()
- Specified by:
 getSourceOidin 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: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
 
- 
shortDump
public void shortDump(StringBuilder sb)
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
public String debugDump(int indent)
- Specified by:
 debugDumpin interfaceDebugDumpable
 
- 
toAssignmentPathSegmentType
@NotNull public @NotNull AssignmentPathSegmentType toAssignmentPathSegmentType(boolean includeAssignmentsContent)
- Specified by:
 toAssignmentPathSegmentTypein interfaceAssignmentPathSegment
 
- 
matches
public boolean matches(@NotNull @NotNull List<OrderConstraintsType> orderConstraints)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
public boolean equivalent(AssignmentPathSegment otherSegment)
- Specified by:
 equivalentin interfaceAssignmentPathSegment
 
- 
isImmutable
public boolean isImmutable()
- Specified by:
 isImmutablein interfaceFreezable
 
- 
getAssignmentId
public Long getAssignmentId()
 
 - 
 
 -