Class SchemaTransformer
java.lang.Object
com.evolveum.midpoint.model.impl.controller.SchemaTransformer
Transforms the schema and objects by applying security constraints,
object template schema refinements, etc.
- Author:
- semancik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends ObjectType>
SearchResultList<PrismObject<T>>applySchemasAndSecurityToObjects
(SearchResultList<PrismObject<T>> objects, ParsedGetOperationOptions options, Task task, OperationResult result) Applies security to aSearchResultList
of prism objects.
-
Constructor Details
-
SchemaTransformer
public SchemaTransformer()
-
-
Method Details
-
applySchemasAndSecurityToObjects
@VisibleForTesting public <T extends ObjectType> SearchResultList<PrismObject<T>> applySchemasAndSecurityToObjects(SearchResultList<PrismObject<T>> objects, ParsedGetOperationOptions options, Task task, OperationResult result) throws SecurityViolationException Applies security to aSearchResultList
of prism objects. Assumes some items may be immutable, and does lazy object or object list cloning: - Some objects may be mutated or cloned-and-mutated (if the object was immutable). - This may result in modifying the original `objects` list, or returning a its modified copy (if the list was immutable). Exceptions (except forSecurityViolationException
) are currently *not thrown*. Instead, they are recorded inObjectType.F_FETCH_RESULT
- *to be discussed if it's safe*.- Throws:
SecurityViolationException
-