Package com.adobe.aem.dermis.model
Class ExecutionContext
- java.lang.Object
-
- com.adobe.aem.dermis.model.ExecutionContext
-
- Direct Known Subclasses:
RequestExecutionContext
public class ExecutionContext extends java.lang.ObjectDermis Environment provides all the context required for an operationName to be pre processed, executed and post processed
-
-
Constructor Summary
Constructors Constructor Description ExecutionContext(Query query)Create Execution Context usingQueryExecutionContext(Query query, AuthenticationDetails authDetails)Create Execution context using query and authentication detailsExecutionContext(Query query, AuthenticationDetails authDetails, Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.sling.commons.json.JSONObjectgetArguments()Get jsonObject representing the input of the operationIValueMapgetArgumentsValueMap()Get IValueMap representing the input of the operationAuthenticationDetailsgetAuthDetails()ConfigurationgetConfiguration()java.lang.StringgetConfigurationId()Get configuration identifier based on source detailsjava.lang.StringgetEntityId()Gets the name of entity on which operation is executing.java.lang.StringgetOperationId()Gets the name of operation to execute In case of Fetch query it will be operation associated with the root entityQuerygetQuery()java.lang.StringgetSchemaName()voidsetAuthDetails(AuthenticationDetails authDetails)voidsetConfiguration(Configuration configuration)voidsetQuery(Query query)
-
-
-
Constructor Detail
-
ExecutionContext
public ExecutionContext(Query query)
Create Execution Context usingQuery- Parameters:
query-
-
ExecutionContext
public ExecutionContext(Query query, AuthenticationDetails authDetails)
Create Execution context using query and authentication details- Parameters:
query-authDetails-
-
ExecutionContext
public ExecutionContext(Query query, AuthenticationDetails authDetails, Configuration configuration)
-
-
Method Detail
-
getConfiguration
public Configuration getConfiguration()
-
setConfiguration
public void setConfiguration(Configuration configuration)
-
getAuthDetails
public AuthenticationDetails getAuthDetails()
-
setAuthDetails
public void setAuthDetails(AuthenticationDetails authDetails)
-
getOperationId
public java.lang.String getOperationId()
Gets the name of operation to execute In case of Fetch query it will be operation associated with the root entity- Returns:
- the name of operation
-
getEntityId
public java.lang.String getEntityId()
Gets the name of entity on which operation is executing.- Returns:
- - identifier of entity
-
getSchemaName
public java.lang.String getSchemaName()
-
getArguments
public org.apache.sling.commons.json.JSONObject getArguments()
Get jsonObject representing the input of the operation- Returns:
- input in
JSONObjectformat
-
getArgumentsValueMap
public IValueMap getArgumentsValueMap()
Get IValueMap representing the input of the operation- Returns:
- input in
IValueMapformat
-
getConfigurationId
public java.lang.String getConfigurationId() throws DermisExceptionGet configuration identifier based on source details- Returns:
- identifier of configuration
- Throws:
DermisException
-
getQuery
public Query getQuery()
-
setQuery
public void setQuery(Query query)
-
-