Interface ActionManager


  • @Deprecated
    public interface ActionManager
    Deprecated.
    since 5.3 use ActionManager instead
    Provides a service to manage live actions
    • Method Detail

      • registerAcion

        void registerAcion​(LiveAction action)
        Deprecated.
        Registers a LiveAction in the ActionManager. This step is required to enable action is the rollout process.
        Parameters:
        action - action to regiter
      • unregisterAcion

        void unregisterAcion​(LiveAction action)
        Deprecated.
        Unregisters a LiveAction from the ActionManager.
        Parameters:
        action - action to unregiter
      • getActionConfig

        ActionConfig getActionConfig​(Resource resource,
                                     boolean inherited)
                              throws RepositoryException
        Deprecated.
        Returns an ActionConfig object from a resource.
        Parameters:
        resource - base to generate an action config
        inherited - Mark action config as inherited
        Returns:
        constructed ActionConfig, null if construction is not possible
        Throws:
        RepositoryException - occurs while reading the repository
      • getActionConfig

        ActionConfig getActionConfig​(Node node,
                                     boolean inherited)
                              throws RepositoryException
        Deprecated.
        Returns an ActionConfig object from a resource node.
        Parameters:
        node - base to generate an action config
        inherited - Mark action config as inherited
        Returns:
        constructed ActionConfig, null if construction is not possible
        Throws:
        RepositoryException - occurs while reading the repository
      • getActionsConfig

        Set<ActionConfig> getActionsConfig​(Resource resource,
                                           String resourceNodeType,
                                           String actionNodeName,
                                           boolean inherited)
                                    throws RepositoryException
        Deprecated.
        Returns all ActionConfig objects from a resource. Checks if resource is from resourceNodeType resource type and reads actions under actionNodeName child node.
        Parameters:
        resource - base to generate an action config
        resourceNodeType - node type to check on the resource
        actionNodeName - name of node containing actions
        inherited - Mark action config as inherited
        Returns:
        constructed ActionConfig, null if construction is not possible
        Throws:
        RepositoryException - occurs while reading the repository
      • getActionsConfig

        Set<ActionConfig> getActionsConfig​(Node node,
                                           String resourceNodeType,
                                           String actionNodeName,
                                           boolean inherited)
                                    throws RepositoryException
        Deprecated.
        Returns all ActionConfig objects from a node. Checks if node is from resourceNodeType resource type and reads actions under actionNodeName child node.
        Parameters:
        node - base to generate an action config
        resourceNodeType - node type to check on the resource
        actionNodeName - name of node containing actions
        inherited - Mark action config as inherited
        Returns:
        constructed ActionConfig, null if construction is not possible
        Throws:
        RepositoryException - occurs while reading the repository
      • writeConfigFromRequest

        void writeConfigFromRequest​(SlingHttpServletRequest request,
                                    Node actionsNode)
                             throws WCMException
        Deprecated.
        Write config from request to a node. Reads action config in request and writes it in action node.
        Parameters:
        request - the request
        actionsNode - the action node to write
        Throws:
        WCMException - if an error occurs
      • isActionUpdated

        boolean isActionUpdated​(SlingHttpServletRequest request,
                                LiveRelationship relation)
                         throws WCMException
        Deprecated.
        Determines if at least one action config defined in relation has been updated in request.
        Parameters:
        request - the request
        relation - live relationship
        Returns:
        true if updated, false otherwise
        Throws:
        WCMException - if an error occurs