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.Object
Dermis 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 usingQuery
ExecutionContext(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.JSONObject
getArguments()
Get jsonObject representing the input of the operationIValueMap
getArgumentsValueMap()
Get IValueMap representing the input of the operationAuthenticationDetails
getAuthDetails()
Configuration
getConfiguration()
java.lang.String
getConfigurationId()
Get configuration identifier based on source detailsjava.lang.String
getEntityId()
Gets the name of entity on which operation is executing.java.lang.String
getOperationId()
Gets the name of operation to execute In case of Fetch query it will be operation associated with the root entityQuery
getQuery()
java.lang.String
getSchemaName()
void
setAuthDetails(AuthenticationDetails authDetails)
void
setConfiguration(Configuration configuration)
void
setQuery(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
JSONObject
format
-
getArgumentsValueMap
public IValueMap getArgumentsValueMap()
Get IValueMap representing the input of the operation- Returns:
- input in
IValueMap
format
-
getConfigurationId
public java.lang.String getConfigurationId() throws DermisException
Get configuration identifier based on source details- Returns:
- identifier of configuration
- Throws:
DermisException
-
getQuery
public Query getQuery()
-
setQuery
public void setQuery(Query query)
-
-