Interface AssignmentPath
- All Superinterfaces:
Cloneable
,DebugDumpable
,Serializable
,ShortDumpable
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 Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Method Summary
Modifier and TypeMethodDescriptionbeforeLast
(int n) clone()
Shallow clone.cloneFirst
(int n) collectExtensions
(int startAt) static ExtensionType
collectExtensions
(AssignmentPathType path, int startAt, ModelService modelService, com.evolveum.midpoint.task.api.Task task, OperationResult result) default boolean
int
countTargetOccurrences
(ObjectType target) boolean
equivalent
(AssignmentPath other) Preliminary (limited) implementation.first()
default AssignmentPathSegment
getAt
(int index) @NotNull List<ObjectType>
Returns a "user understandable" part of this path.com.evolveum.midpoint.security.api.OtherPrivilegesLimitations.Limitation
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>
boolean
isEmpty()
last()
boolean
matches
(@NotNull List<OrderConstraintsType> orderConstraints) Returns true if the path matches specified order constraints.int
size()
toAssignmentPathBean
(boolean includeAssignmentsContent) Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazily
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDump, shortDumpLazily
-
Method Details
-
getSegments
List<? extends AssignmentPathSegment> getSegments() -
getSegment
Returns segment specified by index. Negative indexes work in reverse direction. -
first
AssignmentPathSegment first() -
isEmpty
boolean isEmpty() -
size
int size() -
last
AssignmentPathSegment last() -
beforeLast
-
countTargetOccurrences
-
getFirstOrderChain
Returns 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 -
getProtoRole
ObjectType 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- -
clone
AssignmentPath clone()Shallow clone. -
cloneFirst
-
toAssignmentPathBean
-
collectExtensions
- Throws:
SchemaException
-
collectExtensions
static ExtensionType collectExtensions(AssignmentPathType path, int startAt, ModelService modelService, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws CommunicationException, ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, ExpressionEvaluationException -
getAt
-
matches
Returns 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. -
equivalent
Preliminary (limited) implementation. To be used to compare paths pointing to the same target object. Use with care. -
containsDelegation
default boolean containsDelegation() -
getOtherPrivilegesLimitation
@NotNull com.evolveum.midpoint.security.api.OtherPrivilegesLimitations.Limitation getOtherPrivilegesLimitation()Returns the limitation for "other" privileges that are delegated through this path.
-