Interface AssignmentPath
- All Superinterfaces:
- Cloneable,- DebugDumpable,- Serializable,- ShortDumpable
- All Known Implementing Classes:
- AssignmentPathImpl
Path from the source object (focus) to the ultimate assignment that is being processed or referenced.
 The path consists of a chain (list) of segments. Each segment corresponds to a single assignment or inducement.
 The source of the first segment is the focus. Source of each following segment (i.e. assignment) is the target
 of previous segment (i.e. assignment).
- Author:
- semancik
- 
Field SummaryFields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
- 
Method SummaryModifier and TypeMethodDescriptionbeforeLast(int n) clone()Shallow clone.cloneFirst(int n) collectExtensions(int startAt) static ExtensionTypecollectExtensions(AssignmentPathType path, int startAt, ModelService modelService, Task task, OperationResult result) default booleanintcountTargetOccurrences(ObjectType target) booleanequivalent(AssignmentPath other) Preliminary (limited) implementation.first()default AssignmentPathSegmentgetAt(int index) @NotNull List<ObjectType>Returns a "user understandable" part of this path.Returns the limitation for "other" privileges that are delegated through this path.In the context of meta-roles this is the role that the currently-processed inducement "applies to".getSegment(int index) Returns segment specified by index.List<? extends AssignmentPathSegment>booleanisEmpty()last()booleanmatches(@NotNull List<OrderConstraintsType> orderConstraints) Returns true if the path matches specified order constraints.intsize()toAssignmentPathBean(boolean includeAssignmentsContent) Methods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.util.ShortDumpableshortDump, shortDump, shortDumpLazily
- 
Method Details- 
getSegmentsList<? extends AssignmentPathSegment> getSegments()
- 
getSegmentReturns segment specified by index. Negative indexes work in reverse direction.
- 
firstAssignmentPathSegment first()
- 
isEmptyboolean isEmpty()
- 
sizeint size()
- 
lastAssignmentPathSegment last()
- 
beforeLast
- 
countTargetOccurrences
- 
getFirstOrderChainReturns a "user understandable" part of this path. I.e. only those objects that are of "order 1" above the focal object. E.g. from chain of jack =(a)=> Engineer =(i)=> Employee =(a)=> PersonMetarole =(i2)=> Person =(i)=> Entity the result would be Engineer -> Employee -> Person -> Entity TODO find a better name
- 
getProtoRoleObjectType getProtoRole()In the context of meta-roles this is the role that the currently-processed inducement "applies to". I.e. the role that would contain this inducement in case that meta-roles were not used. Technically, this is the last element in the "first order chain" or roles. Note: proto- is the opposite of meta-
- 
cloneAssignmentPath clone()Shallow clone.
- 
cloneFirst
- 
toAssignmentPathBean
- 
collectExtensions- Throws:
- SchemaException
 
- 
collectExtensionsstatic ExtensionType collectExtensions(AssignmentPathType path, int startAt, ModelService modelService, Task task, OperationResult result) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException 
- 
getAt
- 
matchesReturns true if the path matches specified order constraints. All of them must match. Although there are some defaults, it is recommended to specify constraints explicitly. Currently not supported on empty paths. Not all parts of OrderConstraintsType are supported. Namely, resetOrder item has no meaning here.
- 
equivalentPreliminary (limited) implementation. To be used to compare paths pointing to the same target object. Use with care.
- 
containsDelegationdefault boolean containsDelegation()
- 
getOtherPrivilegesLimitationReturns the limitation for "other" privileges that are delegated through this path.
 
-