Class EvaluatedAssignmentImpl<AH extends AssignmentHolderType>
- java.lang.Object
- 
- com.evolveum.midpoint.model.impl.lens.EvaluatedAssignmentImpl<AH>
 
- 
- All Implemented Interfaces:
- EvaluatedAssignment<AH>,- DebugDumpable,- ShortDumpable
 
 public class EvaluatedAssignmentImpl<AH extends AssignmentHolderType> extends Object implements EvaluatedAssignment<AH>, ShortDumpable Evaluated assignment that contains all constructions and authorizations from the assignment itself and all the applicable inducements from all the roles referenced from the assignment.- Author:
- Radovan Semancik
 
- 
- 
Field Summary- 
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
 
- 
 - 
Constructor SummaryConstructors Constructor Description EvaluatedAssignmentImpl(ItemDeltaItem<PrismContainerValue<AssignmentType>,PrismContainerDefinition<AssignmentType>> assignmentIdi, boolean evaluatedOld, PrismContext prismContext)
 - 
Method Summary- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDumpLazily, debugDumpLazily
 - 
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpableshortDump, shortDumpLazily
 
- 
 
- 
- 
- 
Constructor Detail- 
EvaluatedAssignmentImplpublic EvaluatedAssignmentImpl(@NotNull ItemDeltaItem<PrismContainerValue<AssignmentType>,PrismContainerDefinition<AssignmentType>> assignmentIdi, boolean evaluatedOld, PrismContext prismContext)
 
- 
 - 
Method Detail- 
getAssignmentIdi@NotNull public ItemDeltaItem<PrismContainerValue<AssignmentType>,PrismContainerDefinition<AssignmentType>> getAssignmentIdi() 
 - 
getAssignmentTypepublic AssignmentType getAssignmentType() - Specified by:
- getAssignmentTypein interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
getAssignmentIdpublic Long getAssignmentId() - Specified by:
- getAssignmentIdin interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
getAssignmentTypepublic AssignmentType getAssignmentType(boolean old) - Specified by:
- getAssignmentTypein interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
getRelationpublic QName getRelation() - Specified by:
- getRelationin interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
getNormalizedRelationpublic QName getNormalizedRelation(RelationRegistry relationRegistry) - Specified by:
- getNormalizedRelationin interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
getConstructionTriple@NotNull public DeltaSetTriple<Construction<AH>> getConstructionTriple() 
 - 
getEvaluatedConstructionspublic DeltaSetTriple<EvaluatedConstruction> getEvaluatedConstructions(Task task, OperationResult result) throws SchemaException, ObjectNotFoundException Construction is not a part of model-api. To avoid heavy refactoring at present time, there is not a classical Construction-ConstructionImpl separation, but we use artificial (simplified) EvaluatedConstruction API class instead.- Specified by:
- getEvaluatedConstructionsin interface- EvaluatedAssignment<AH extends AssignmentHolderType>
- Returns:
- Throws:
- SchemaException
- ObjectNotFoundException
 
 - 
getConstructionSetpublic Collection<Construction<AH>> getConstructionSet(PlusMinusZero whichSet) 
 - 
addConstructionpublic void addConstruction(Construction<AH> contruction, PlusMinusZero whichSet) 
 - 
getPersonaConstructionTriple@NotNull public DeltaSetTriple<PersonaConstruction<AH>> getPersonaConstructionTriple() 
 - 
addPersonaConstructionpublic void addPersonaConstruction(PersonaConstruction<AH> personaContruction, PlusMinusZero whichSet) 
 - 
getRoles@NotNull public DeltaSetTriple<EvaluatedAssignmentTargetImpl> getRoles() - Specified by:
- getRolesin interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
addRolepublic void addRole(EvaluatedAssignmentTargetImpl role, PlusMinusZero mode) 
 - 
getOrgRefVals@NotNull public Collection<PrismReferenceValue> getOrgRefVals() 
 - 
addOrgRefValpublic void addOrgRefVal(PrismReferenceValue org) 
 - 
getArchetypeRefVals@NotNull public Collection<PrismReferenceValue> getArchetypeRefVals() 
 - 
addArchetypeRefValpublic void addArchetypeRefVal(PrismReferenceValue archetypeRefVal) 
 - 
getMembershipRefVals@NotNull public Collection<PrismReferenceValue> getMembershipRefVals() 
 - 
addMembershipRefValpublic void addMembershipRefVal(PrismReferenceValue org) 
 - 
getDelegationRefVals@NotNull public Collection<PrismReferenceValue> getDelegationRefVals() 
 - 
addDelegationRefValpublic void addDelegationRefVal(PrismReferenceValue org) 
 - 
getTenantOidpublic String getTenantOid() 
 - 
setTenantOidpublic void setTenantOid(String tenantOid) 
 - 
getAuthorizations@NotNull public Collection<Authorization> getAuthorizations() - Specified by:
- getAuthorizationsin interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
addAuthorizationpublic void addAuthorization(Authorization authorization) 
 - 
getAdminGuiConfigurations@NotNull public Collection<AdminGuiConfigurationType> getAdminGuiConfigurations() - Specified by:
- getAdminGuiConfigurationsin interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
addAdminGuiConfigurationpublic void addAdminGuiConfiguration(AdminGuiConfigurationType adminGuiConfiguration) 
 - 
getFocusMappings@NotNull public Collection<MappingImpl<?,?>> getFocusMappings() 
 - 
getFocusMappingEvaluationRequests@NotNull public Collection<AssignedFocusMappingEvaluationRequest> getFocusMappingEvaluationRequests() 
 - 
addFocusMappingpublic void addFocusMapping(MappingImpl<?,?> focusMapping) 
 - 
getTargetpublic PrismObject<?> getTarget() - Specified by:
- getTargetin interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
setTargetpublic void setTarget(PrismObject<?> target) 
 - 
isVirtualpublic boolean isVirtual() 
 - 
setVirtualpublic void setVirtual(boolean virtual) 
 - 
isValidpublic boolean isValid() - Specified by:
- isValidin interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
setValidpublic void setValid(boolean isValid) 
 - 
getWasValidpublic boolean getWasValid() 
 - 
setWasValidpublic void setWasValid(boolean wasValid) 
 - 
isForceReconpublic boolean isForceRecon() 
 - 
setForceReconpublic void setForceRecon(boolean forceRecon) 
 - 
getResourcespublic Collection<ResourceType> getResources(Task task, OperationResult result) throws ObjectNotFoundException, SchemaException 
 - 
evaluateConstructionspublic void evaluateConstructions(ObjectDeltaObject<AH> focusOdo, PrismObject<SystemConfigurationType> systemConfiguration, Task task, OperationResult result) throws SchemaException, ExpressionEvaluationException, ObjectNotFoundException, SecurityViolationException, ConfigurationException, CommunicationException 
 - 
evaluateConstructionspublic void evaluateConstructions(ObjectDeltaObject<AH> focusOdo, Task task, OperationResult result) throws SchemaException, ExpressionEvaluationException, ObjectNotFoundException, SecurityViolationException, ConfigurationException, CommunicationException 
 - 
setPresentInCurrentObjectpublic void setPresentInCurrentObject(boolean presentInCurrentObject) 
 - 
setPresentInOldObjectpublic void setPresentInOldObject(boolean presentInOldObject) 
 - 
isPresentInCurrentObjectpublic boolean isPresentInCurrentObject() - Specified by:
- isPresentInCurrentObjectin interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
isPresentInOldObjectpublic boolean isPresentInOldObject() - Specified by:
- isPresentInOldObjectin interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
getFocusPolicyRules@NotNull public Collection<EvaluatedPolicyRule> getFocusPolicyRules() Description copied from interface:EvaluatedAssignmentReturns 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.)- Specified by:
- getFocusPolicyRulesin interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
addFocusPolicyRulepublic void addFocusPolicyRule(EvaluatedPolicyRule policyRule) 
 - 
getThisTargetPolicyRules@NotNull public Collection<EvaluatedPolicyRule> getThisTargetPolicyRules() Description copied from interface:EvaluatedAssignmentReturns 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.)- Specified by:
- getThisTargetPolicyRulesin interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
addThisTargetPolicyRulepublic void addThisTargetPolicyRule(EvaluatedPolicyRule policyRule) 
 - 
getOtherTargetsPolicyRules@NotNull public Collection<EvaluatedPolicyRule> getOtherTargetsPolicyRules() Description copied from interface:EvaluatedAssignmentReturns 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.)- Specified by:
- getOtherTargetsPolicyRulesin interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
addOtherTargetPolicyRulepublic void addOtherTargetPolicyRule(EvaluatedPolicyRule policyRule) 
 - 
getAllTargetsPolicyRules@NotNull public Collection<EvaluatedPolicyRule> getAllTargetsPolicyRules() Description copied from interface:EvaluatedAssignmentReturns 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- Specified by:
- getAllTargetsPolicyRulesin interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
getPolicySituationspublic Collection<String> getPolicySituations() - Specified by:
- getPolicySituationsin interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
triggerRulepublic void triggerRule(@NotNull EvaluatedPolicyRule rule, Collection<EvaluatedPolicyRuleTrigger<?>> triggers)- Specified by:
- triggerRulein interface- EvaluatedAssignment<AH extends AssignmentHolderType>
 
 - 
debugDumppublic String debugDump(int indent) - Specified by:
- debugDumpin interface- DebugDumpable
 
 - 
toHumanReadableStringpublic String toHumanReadableString() 
 - 
shortDumppublic 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 interface- ShortDumpable
- Parameters:
- sb- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
 
 - 
getNonNegativeTargetspublic List<EvaluatedAssignmentTargetImpl> getNonNegativeTargets() 
 - 
getMode@NotNull public PlusMinusZero getMode() - Returns:
- mode (adding, deleting, keeping) with respect to the *current* object (not the old one)
 
 
- 
 
-