Class JsonAsyncProvisioningRequest
A simplified representation of a requested asynchronous provisioning operation. MidPoint offers two such built-in representations:
AsyncProvisioningOperationRequestedType
- this class
The first one is a direct translation of the operation being requested. It is a Prism structure that can be serialized to any Prism language (XML, JSON, YAML, Axiom). However, it requires Prism implementation at the receiving side in order to be easily and completely parsed.
On the other hand, this class provides a simplified representation (or, better, a class of representations) of the asynchronous provisioning operation. It can be easily parsed by any JSON parser without the need of Prism functionality.
This class offers a basic structure for the request. It is up to the user how he/she decides to use it. For example, individual item and type names can be qualified or unqualified. "Replace-only" changes can be represented as attributes. And so on.
BEWARE: This class is very EXPERIMENTAL. It can change or disappear at any time.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Simple representation of an ItemDelta: contains collections of real values being added/deleted/replaced. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttributes
(Map<String, Collection<?>> added) static JsonAsyncProvisioningRequest
Map<String,
Collection<?>> Returns simplified version of the attributes map, suitable e.g.Map<String,
Collection<?>> Map<String,
Collection<?>> boolean
isAdd()
boolean
isDelete()
boolean
isModify()
void
setAdditionalInformation
(Object additionalInformation) void
setAttributes
(Map<String, Collection<?>> attributes) void
void
setObjectClass
(String objectClass) void
setOperation
(String operation) void
setPrimaryIdentifiers
(Map<String, Collection<?>> primaryIdentifiers) void
setSecondaryIdentifiers
(Map<String, Collection<?>> secondaryIdentifiers)
-
Constructor Details
-
JsonAsyncProvisioningRequest
public JsonAsyncProvisioningRequest()
-
-
Method Details
-
getOperation
-
setOperation
-
getObjectClass
-
setObjectClass
-
getAttributes
-
setAttributes
-
addAttributes
-
getAttributesSimplified
Returns simplified version of the attributes map, suitable e.g. for presentation via Velocity. Each attribute with no values or one value is replaced by scalar, i.e. null or the single item. Attributes with multiple values are represented as lists. -
getPrimaryIdentifiers
-
setPrimaryIdentifiers
-
getSecondaryIdentifiers
-
setSecondaryIdentifiers
-
getChanges
-
setChanges
-
getAdditionalInformation
-
setAdditionalInformation
-
isAdd
public boolean isAdd() -
isModify
public boolean isModify() -
isDelete
public boolean isDelete() -
from
public static JsonAsyncProvisioningRequest from(String req) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-