Package com.adobe.aem.dermis.api.bridge
Class OperationOptions
- java.lang.Object
-
- com.adobe.aem.dermis.api.bridge.OperationOptions
-
public class OperationOptions extends java.lang.ObjectOptions to be used/provided when executing an operation
-
-
Constructor Summary
Constructors Constructor Description OperationOptions(java.lang.String operationId, IValueMap argumentsValueMap)This constructor will be used in case of direct execution of operation It takes an IValueMap for operation argumentsOperationOptions(java.lang.String selectionPoints, java.util.Map<java.lang.String,java.lang.String> entityOperationMapping)This constructor will be used in case of Read OperationOperationOptions(java.lang.String operationId, org.apache.sling.commons.json.JSONObject arguments)Deprecated.UseOperationOptions(String, IValueMap)instead
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.sling.commons.json.JSONObjectgetArguments()Deprecated.UsegetArgumentsValueMap()insteadIValueMapgetArgumentsValueMap()Get arguments (in IValueMap format) representing the input of the operationjava.lang.StringgetEntityId()java.util.Map<java.lang.String,java.lang.String>getEntityOperationMapping()java.lang.StringgetOperationId()booleangetOutputTypeArray()java.lang.StringgetSchemaName()java.lang.StringgetSelectionPoints()ValidationOptionsgetValidationOptions()voidsetArguments(org.apache.sling.commons.json.JSONObject arguments)Deprecated.UsesetArgumentsValueMap(IValueMap)insteadvoidsetArgumentsValueMap(IValueMap arguments)Set input of the operation Input arguments can be given either as a JSONObject or as IValueMap - these two formats are mutually exclusive.voidsetEntityOperationMapping(java.util.Map<java.lang.String,java.lang.String> entityOperationMapping)voidsetOutputTypeArray(boolean isOutputTypeArray)voidsetSchemaName(java.lang.String name)voidsetSelectionPoints(java.lang.String selectionPoints)voidsetValidationOptions(ValidationOptions validationOptions)
-
-
-
Constructor Detail
-
OperationOptions
public OperationOptions(java.lang.String selectionPoints, java.util.Map<java.lang.String,java.lang.String> entityOperationMapping)This constructor will be used in case of Read Operation- Parameters:
selectionPoints- - selection pointsentityOperationMapping- - Name of the root entities and its operation id
-
OperationOptions
@Deprecated public OperationOptions(java.lang.String operationId, org.apache.sling.commons.json.JSONObject arguments)Deprecated.UseOperationOptions(String, IValueMap)insteadThis constructor will be used in case of direct execution of operation It takes a JSONObject for operation arguments- Parameters:
operationId- - name of operationarguments- - input of the operation
-
OperationOptions
public OperationOptions(java.lang.String operationId, IValueMap argumentsValueMap)This constructor will be used in case of direct execution of operation It takes an IValueMap for operation arguments- Parameters:
operationId-argumentsValueMap-
-
-
Method Detail
-
getSelectionPoints
public java.lang.String getSelectionPoints()
- Returns:
- selectionPoints
-
setSelectionPoints
public void setSelectionPoints(java.lang.String selectionPoints)
- Parameters:
selectionPoints-
-
getEntityOperationMapping
public java.util.Map<java.lang.String,java.lang.String> getEntityOperationMapping()
- Returns:
- Map of entity related operation details..
-
setEntityOperationMapping
public void setEntityOperationMapping(java.util.Map<java.lang.String,java.lang.String> entityOperationMapping)
- Parameters:
entityOperationMapping-
-
getArguments
@Deprecated public org.apache.sling.commons.json.JSONObject getArguments()
Deprecated.UsegetArgumentsValueMap()insteadGet arguments representing the input of the operation- Returns:
- input in
JSONObjectformat
-
getArgumentsValueMap
public IValueMap getArgumentsValueMap()
Get arguments (in IValueMap format) representing the input of the operation- Returns:
- input in
JSONObjectformat
-
setArguments
@Deprecated public void setArguments(org.apache.sling.commons.json.JSONObject arguments)
Deprecated.UsesetArgumentsValueMap(IValueMap)insteadSet input of the operation (as JSONObject). Input arguments can be given either as a JSONObject or as IValueMap - these two formats are mutually exclusive. If input arguments have been provided in one format, it should not be provided in another format, unless the already provided inputs are cleared- Parameters:
arguments- input inJSONObjectformat
-
setArgumentsValueMap
public void setArgumentsValueMap(IValueMap arguments)
Set input of the operation Input arguments can be given either as a JSONObject or as IValueMap - these two formats are mutually exclusive. If input arguments have been provided in one format, it should not be provided in another format, unless the already provided inputs are cleared- Parameters:
arguments- input inJSONObjectformat
-
getEntityId
public java.lang.String getEntityId()
- Returns:
- - identifier of entity
-
getOperationId
public java.lang.String getOperationId()
- Returns:
- - identifier of entity
-
setSchemaName
public void setSchemaName(java.lang.String name)
-
getSchemaName
public java.lang.String getSchemaName()
- Returns:
- - schemaName
-
getOutputTypeArray
public boolean getOutputTypeArray()
-
setOutputTypeArray
public void setOutputTypeArray(boolean isOutputTypeArray)
-
getValidationOptions
public ValidationOptions getValidationOptions()
-
setValidationOptions
public void setValidationOptions(ValidationOptions validationOptions)
-
-