@Component(value="modelInteractionService") public class ModelInteractionServiceImpl extends Object implements ModelInteractionService
CHECK_PASSWORD, CLASS_NAME_WITH_DOT, GET_ASSIGNABLE_ROLE_SPECIFICATION, GET_CONNECTOR_OPERATIONAL_STATUS, GET_CREDENTIALS_POLICY, GET_EDIT_OBJECT_DEFINITION, GET_EDIT_SHADOW_DEFINITION, PREVIEW_CHANGES| Constructor and Description |
|---|
ModelInteractionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPassword(String userOid,
ProtectedStringType password,
Task task,
OperationResult parentResult)
Checks if the supplied password matches with current user password.
|
Collection<? extends DisplayableValue<String>> |
getActionUrls()
Returns a collection of all authorization actions known to the system.
|
com.evolveum.midpoint.xml.ns._public.common.common_3.AdminGuiConfigurationType |
getAdminGuiConfiguration(Task task,
OperationResult parentResult)
Returns currently applicable admin GUI configuration.
|
<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> |
getAssignableRoleSpecification(PrismObject<F> focus,
OperationResult parentResult)
Returns an object that defines which roles can be assigned by the currently logged-in user.
|
ConnectorOperationalStatus |
getConnectorOperationalStatus(String resourceOid,
OperationResult parentResult) |
com.evolveum.midpoint.xml.ns._public.common.common_3.CredentialsPolicyType |
getCredentialsPolicy(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user,
Task task,
OperationResult parentResult)
Returns a credential policy that applies to the specified user.
|
RefinedObjectClassDefinition |
getEditObjectClassDefinition(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
com.evolveum.midpoint.xml.ns._public.common.common_3.AuthorizationPhaseType phase) |
<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
getEditObjectDefinition(PrismObject<O> object,
com.evolveum.midpoint.xml.ns._public.common.common_3.AuthorizationPhaseType phase,
OperationResult parentResult)
Returns a schema that reflects editability of the object in terms of midPoint schema limitations and security.
|
PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
getEditShadowDefinition(ResourceShadowDiscriminator discr,
com.evolveum.midpoint.xml.ns._public.common.common_3.AuthorizationPhaseType phase,
OperationResult parentResult) |
<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
previewChanges(Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas,
ModelExecuteOptions options,
Task task,
Collection<ProgressListener> listeners,
OperationResult parentResult) |
<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
previewChanges(Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas,
ModelExecuteOptions options,
Task task,
OperationResult parentResult)
Computes the most likely changes triggered by the provided delta.
|
<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
unwrapModelContext(com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextType wrappedContext,
OperationResult result) |
Scene |
visualizeDelta(ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> delta,
Task task,
OperationResult result) |
List<? extends Scene> |
visualizeDeltas(List<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas,
Task task,
OperationResult result) |
public <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> ModelContext<F> previewChanges(Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas, ModelExecuteOptions options, Task task, OperationResult parentResult) throws SchemaException, PolicyViolationException, ExpressionEvaluationException, ObjectNotFoundException, ObjectAlreadyExistsException, CommunicationException, ConfigurationException, SecurityViolationException
ModelInteractionServicepublic <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> ModelContext<F> previewChanges(Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas, ModelExecuteOptions options, Task task, Collection<ProgressListener> listeners, OperationResult parentResult) throws SchemaException, PolicyViolationException, ExpressionEvaluationException, ObjectNotFoundException, ObjectAlreadyExistsException, CommunicationException, ConfigurationException, SecurityViolationException
public <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> ModelContext<F> unwrapModelContext(com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextType wrappedContext, OperationResult result) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException
unwrapModelContext in interface ModelInteractionServiceSchemaExceptionConfigurationExceptionObjectNotFoundExceptionCommunicationExceptionpublic <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> PrismObjectDefinition<O> getEditObjectDefinition(PrismObject<O> object, com.evolveum.midpoint.xml.ns._public.common.common_3.AuthorizationPhaseType phase, OperationResult parentResult) throws SchemaException, ConfigurationException, ObjectNotFoundException
ModelInteractionServiceReturns a schema that reflects editability of the object in terms of midPoint schema limitations and security. This method merges together all the applicable limitations that midPoint knows of (schema, security, other constratints). It may be required to pre-populate new object before calling this method, e.g. to put the object in a correct org in case that delegated administration is used.
If null is returned then the access to the entire object is denied. It cannot be created or edited at all.
The returned definition contains all parts of static schema and run-time extensions. It does not contain parts of resource "refined" schemas. Therefore for shadows it is only applicable to static parts of the shadow (not attributes).
This is not security-sensitive function. It provides data about security constraints but it does not enforce it and it does not modify anything or reveal any data. The purpose of this method is to enable convenient display of GUI form fields, e.g. to hide non-accessible fields from the form. The actual enforcement of the security is executed regardless of this method.
getEditObjectDefinition in interface ModelInteractionServiceobject - object to editSchemaExceptionConfigurationExceptionObjectNotFoundExceptionpublic PrismObjectDefinition<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> getEditShadowDefinition(ResourceShadowDiscriminator discr, com.evolveum.midpoint.xml.ns._public.common.common_3.AuthorizationPhaseType phase, OperationResult parentResult) throws SchemaException, ConfigurationException, ObjectNotFoundException
getEditShadowDefinition in interface ModelInteractionServiceSchemaExceptionConfigurationExceptionObjectNotFoundExceptionpublic RefinedObjectClassDefinition getEditObjectClassDefinition(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, com.evolveum.midpoint.xml.ns._public.common.common_3.AuthorizationPhaseType phase) throws SchemaException
getEditObjectClassDefinition in interface ModelInteractionServiceSchemaExceptionpublic Collection<? extends DisplayableValue<String>> getActionUrls()
ModelInteractionServiceReturns a collection of all authorization actions known to the system. The format of returned data is designed for displaying purposes.
Note: this method returns only the list of authorization actions that are known to the IDM Model component and the components below. It does not return a GUI-specific authorization actions.
getActionUrls in interface ModelInteractionServicepublic <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType> RoleSelectionSpecification getAssignableRoleSpecification(PrismObject<F> focus, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, ConfigurationException
ModelInteractionServicegetAssignableRoleSpecification in interface ModelInteractionServicefocus - Object of the operation. The object (usually user) to whom the roles should be assigned.ObjectNotFoundExceptionSchemaExceptionConfigurationExceptionpublic com.evolveum.midpoint.xml.ns._public.common.common_3.CredentialsPolicyType getCredentialsPolicy(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user, Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException
ModelInteractionServicegetCredentialsPolicy in interface ModelInteractionServiceuser - user for who the policy should applyparentResult - @return applicable credentials policy or nullObjectNotFoundException - No system configuration or other major system inconsistencySchemaException - Wrong schema or content of security policypublic com.evolveum.midpoint.xml.ns._public.common.common_3.AdminGuiConfigurationType getAdminGuiConfiguration(Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException
ModelInteractionServicegetAdminGuiConfiguration in interface ModelInteractionServiceObjectNotFoundExceptionSchemaExceptionpublic boolean checkPassword(String userOid, ProtectedStringType password, Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException
ModelInteractionServicecheckPassword in interface ModelInteractionServiceObjectNotFoundExceptionSchemaExceptionpublic List<? extends Scene> visualizeDeltas(List<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas, Task task, OperationResult result) throws SchemaException
visualizeDeltas in interface ModelInteractionServiceSchemaException@NotNull public Scene visualizeDelta(ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> delta, Task task, OperationResult result) throws SchemaException
visualizeDelta in interface ModelInteractionServiceSchemaExceptionpublic ConnectorOperationalStatus getConnectorOperationalStatus(String resourceOid, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException
getConnectorOperationalStatus in interface ModelInteractionServiceSchemaExceptionObjectNotFoundExceptionCommunicationExceptionConfigurationExceptionCopyright © 2016 evolveum. All rights reserved.