Interface EvaluatedAssignment<AH extends AssignmentHolderType>
-
- All Superinterfaces:
DebugDumpable
,Serializable
,ShortDumpable
- All Known Implementing Classes:
EvaluatedAssignmentImpl
public interface EvaluatedAssignment<AH extends AssignmentHolderType> extends ShortDumpable, DebugDumpable, Serializable
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<AdminGuiConfigurationType>
getAdminGuiConfigurations()
@NotNull Collection<? extends EvaluatedPolicyRule>
getAllTargetsPolicyRules()
Returns all policy rules that apply to any of the target objects provided by this assignment (and are derived from this assignment) - even those that were not triggered.int
getAllTargetsPolicyRulesCount()
How many target policy rules are there.Long
getAssignmentId()
AssignmentType
getAssignmentType()
AssignmentType
getAssignmentType(boolean old)
Collection<Authorization>
getAuthorizations()
@NotNull DeltaSetTriple<EvaluatedResourceObjectConstruction>
getEvaluatedConstructions(@NotNull Task task, @NotNull OperationResult result)
Collection<? extends Mapping<?,?>>
getFocusMappings()
These are evaluated focus mappings.@NotNull Collection<? extends EvaluatedPolicyRule>
getFocusPolicyRules()
Returns all policy rules that apply to the focal object and are derived from this assignment - even those that were not triggered.QName
getNormalizedRelation(RelationRegistry relationRegistry)
@NotNull Collection<? extends EvaluatedPolicyRule>
getOtherTargetsPolicyRules()
Returns all policy rules that apply to some other target object of this assignment (and are derived from this assignment) - even those that were not triggered.QName
getRelation()
DeltaSetTriple<? extends EvaluatedAssignmentTarget>
getRoles()
PrismObject<?>
getTarget()
@NotNull Collection<? extends EvaluatedPolicyRule>
getThisTargetPolicyRules()
Returns all policy rules that directly apply to the target object of this assignment (and are derived from this assignment) - even those that were not triggered.boolean
isPresentInCurrentObject()
boolean
isPresentInOldObject()
boolean
isValid()
TODO Define this concept.void
triggerRule(@NotNull EvaluatedPolicyRule rule, Collection<EvaluatedPolicyRuleTrigger<?>> triggers)
-
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 Detail
-
getAssignmentType
AssignmentType getAssignmentType()
-
getAssignmentId
Long getAssignmentId()
-
getAuthorizations
Collection<Authorization> getAuthorizations()
-
getAdminGuiConfigurations
Collection<AdminGuiConfigurationType> getAdminGuiConfigurations()
-
getRoles
DeltaSetTriple<? extends EvaluatedAssignmentTarget> getRoles()
-
getEvaluatedConstructions
@NotNull @NotNull DeltaSetTriple<EvaluatedResourceObjectConstruction> getEvaluatedConstructions(@NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws SchemaException, ObjectNotFoundException
-
getTarget
PrismObject<?> getTarget()
-
getAssignmentType
AssignmentType getAssignmentType(boolean old)
-
getRelation
QName getRelation()
-
getNormalizedRelation
QName getNormalizedRelation(RelationRegistry relationRegistry)
-
isValid
boolean isValid()
TODO Define this concept. It looks like it mixes ideas of validity (activation, lifecycle state) and relativity mode (condition).
-
isPresentInCurrentObject
boolean isPresentInCurrentObject()
-
isPresentInOldObject
boolean isPresentInOldObject()
-
getFocusPolicyRules
@NotNull @NotNull Collection<? extends EvaluatedPolicyRule> getFocusPolicyRules()
Returns all policy rules that apply to the focal object and are derived from this assignment - even those that were not triggered. The policy rules are compiled from all the applicable sources (target, meta-roles, etc.)
-
getThisTargetPolicyRules
@NotNull @NotNull Collection<? extends EvaluatedPolicyRule> getThisTargetPolicyRules()
Returns all policy rules that directly apply to the target object of this assignment (and are derived from this assignment) - even those that were not triggered. The policy rules are compiled from all the applicable sources (target, meta-roles, etc.)
-
getOtherTargetsPolicyRules
@NotNull @NotNull Collection<? extends EvaluatedPolicyRule> getOtherTargetsPolicyRules()
Returns all policy rules that apply to some other target object of this assignment (and are derived from this assignment) - even those that were not triggered. The policy rules are compiled from all the applicable sources (target, meta-roles, etc.)
-
getAllTargetsPolicyRules
@NotNull @NotNull Collection<? extends EvaluatedPolicyRule> getAllTargetsPolicyRules()
Returns all policy rules that apply to any of the target objects provided by this assignment (and are derived from this assignment) - even those that were not triggered. The policy rules are compiled from all the applicable sources (target, meta-roles, etc.) The difference to getThisTargetPolicyRules is that if e.g. jack is a Pirate, and Pirate induces Sailor, then - getThisTargetPolicyRules will show rules that are attached to Pirate - getAllTargetsPolicyRules will show rules that are attached to Pirate and Sailor - getOtherTargetsPolicyRules will show rules that are attached to Sailor
-
getAllTargetsPolicyRulesCount
int getAllTargetsPolicyRulesCount()
How many target policy rules are there. This is more efficient than getAllTargetsPolicyRules().size(), as the collection of all targets policy rules is computed on demand.
-
triggerRule
void triggerRule(@NotNull @NotNull EvaluatedPolicyRule rule, Collection<EvaluatedPolicyRuleTrigger<?>> triggers)
-
getFocusMappings
Collection<? extends Mapping<?,?>> getFocusMappings()
These are evaluated focus mappings. Since 4.0.1 the evaluation is carried out not during assignment evaluation but afterwards.
-
-