public interface ModelInteractionService
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME_WITH_DOT |
static String |
PREVIEW_CHANGES |
Modifier and Type | Method and Description |
---|---|
Collection<? extends DisplayableValue<String>> |
getActionUrls()
Returns a collection of all authorization actions known to the system.
|
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) |
<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
getEditObjectDefinition(PrismObject<O> object)
Returns a schema that reflects editability of the object in terms of midPoint schema limitations and security.
|
<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 result)
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.model.model_context_3.LensContextType wrappedContext,
OperationResult result) |
static final String CLASS_NAME_WITH_DOT
static final String PREVIEW_CHANGES
<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 result) throws SchemaException, PolicyViolationException, ExpressionEvaluationException, ObjectNotFoundException, ObjectAlreadyExistsException, CommunicationException, ConfigurationException, SecurityViolationException
<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> ModelContext<F> unwrapModelContext(com.evolveum.midpoint.xml.ns._public.model.model_context_3.LensContextType wrappedContext, OperationResult result) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException
<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> PrismObjectDefinition<O> getEditObjectDefinition(PrismObject<O> object) throws SchemaException
Returns 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.
object
- object to editSchemaException
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) throws SchemaException
SchemaException
Collection<? extends DisplayableValue<String>> getActionUrls()
Returns 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.
Copyright © 2014 evolveum. All rights reserved.