Class 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 Detail

      • ExecutionContext

        public ExecutionContext​(Query query)
        Create Execution Context using Query
        Parameters:
        query -
      • ExecutionContext

        public ExecutionContext​(Query query,
                                AuthenticationDetails authDetails)
        Create Execution context using query and authentication details
        Parameters:
        query -
        authDetails -
    • Method Detail

      • setConfiguration

        public void setConfiguration​(Configuration configuration)
      • 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)