Class ExecutionContext


  • public class ExecutionContext
    extends java.lang.Object
    An instance of this class provides the context for the execution of a query, which in essence captures a stable state of the content tree from the time the execution context was created.
    • Method Detail

      • getBaseState

        @NotNull
        public @NotNull NodeState getBaseState()
        Used to evaluate the query (ie. read the existing node types, index definitions), doesn't need to be a secured version of a node state
        Returns:
        base state of the content tree against which the query runs.
      • getNodeTypeInfoProvider

        public NodeTypeInfoProvider getNodeTypeInfoProvider()
        Get the nodetype info provider.
        Returns:
        the provider
      • getRoot

        @NotNull
        public @NotNull Root getRoot()
        Used to create the actual query results from the indexed paths, needs to be a secured version of a tree to take into account ACLs
        Returns:
        root of the content tree against which the query runs.
      • getIndexProvider

        @NotNull
        public @NotNull QueryIndexProvider getIndexProvider()
        Returns:
        Index provider for indexes matching the state of the content tree as returned from getBaseState().
      • getPermissionProvider

        @Nullable
        public @Nullable PermissionProvider getPermissionProvider()