Class ModelSecurityPolicyFinder
java.lang.Object
com.evolveum.midpoint.model.impl.security.ModelSecurityPolicyFinder
Looks up security policies.
As
SecurityPolicyFinder
but residing in `model-impl` because of the dependency on ArchetypeManager
.
(Actually, we should consider moving it to `repo-common`, to have everything related to security policy resolution
in one place.)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlocateSecurityPolicyForArchetype
(@Nullable String archetypeOid, @Nullable PrismObject<SystemConfigurationType> systemConfiguration, @NotNull Task task, @NotNull OperationResult result) Returns security policy applicable for the specified archetype (if any), taking into account global security policy.<F extends FocusType>
SecurityPolicyTypelocateSecurityPolicyForFocus
(@Nullable PrismObject<F> focus, @Nullable PrismObject<SystemConfigurationType> systemConfiguration, @NotNull Task task, @NotNull OperationResult result) Returns security policy applicable for the specified focus (if any).
-
Constructor Details
-
ModelSecurityPolicyFinder
public ModelSecurityPolicyFinder()
-
-
Method Details
-
locateSecurityPolicyForFocus
public <F extends FocusType> SecurityPolicyType locateSecurityPolicyForFocus(@Nullable @Nullable PrismObject<F> focus, @Nullable @Nullable PrismObject<SystemConfigurationType> systemConfiguration, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException Returns security policy applicable for the specified focus (if any). It looks for organization, archetype and global policies and takes into account deprecated properties and password policy references. The resulting security policy has all the (non-deprecated) properties set. If there is also referenced value policy, it is will be stored as "object" in the value policy reference inside the returned security policy. -
locateSecurityPolicyForArchetype
public SecurityPolicyType locateSecurityPolicyForArchetype(@Nullable @Nullable String archetypeOid, @Nullable @Nullable PrismObject<SystemConfigurationType> systemConfiguration, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException Returns security policy applicable for the specified archetype (if any), taking into account global security policy.
-