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.Object
Options 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.JSONObject
getArguments()
Deprecated.UsegetArgumentsValueMap()
insteadIValueMap
getArgumentsValueMap()
Get arguments (in IValueMap format) representing the input of the operationjava.util.List<? extends IDataModel>
getDataModelList()
Contains all the data models present in FDM.java.lang.String
getEntityId()
java.util.Map<java.lang.String,java.lang.String>
getEntityOperationMapping()
java.lang.String
getOperationId()
boolean
getOutputTypeArray()
java.lang.String
getSchemaName()
java.lang.String
getSelectionPoints()
ValidationOptions
getValidationOptions()
void
setArguments(org.apache.sling.commons.json.JSONObject arguments)
Deprecated.UsesetArgumentsValueMap(IValueMap)
insteadvoid
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.void
setDataModelList(java.util.List<? extends IDataModel> dataModelList)
void
setEntityOperationMapping(java.util.Map<java.lang.String,java.lang.String> entityOperationMapping)
void
setOutputTypeArray(boolean isOutputTypeArray)
void
setSchemaName(java.lang.String name)
void
setSelectionPoints(java.lang.String selectionPoints)
void
setValidationOptions(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
JSONObject
format
-
getArgumentsValueMap
public IValueMap getArgumentsValueMap()
Get arguments (in IValueMap format) representing the input of the operation- Returns:
- input in
JSONObject
format
-
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 inJSONObject
format
-
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 inJSONObject
format
-
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)
-
getDataModelList
public java.util.List<? extends IDataModel> getDataModelList()
Contains all the data models present in FDM. For generic connectors, knowledge of data models is mandatory as at connector level generic connectors are not aware of data models.
-
setDataModelList
public void setDataModelList(java.util.List<? extends IDataModel> dataModelList)
-
-