Class DeletePageAction

  • All Implemented Interfaces:
    Action

    public class DeletePageAction
    extends Object
    implements Action
    Deletes the page of a given resource.
    Author:
    Roland Gruber
    • Constructor Detail

      • DeletePageAction

        public DeletePageAction​(BindingContext context)
        Constructor
        Parameters:
        context - binding context
    • Method Detail

      • doAction

        public String doAction​(org.apache.sling.api.resource.Resource resource)
                        throws org.apache.sling.api.resource.PersistenceException
        Description copied from interface: Action
        Runs an action.
        Specified by:
        doAction in interface Action
        Parameters:
        resource - resource to run action on
        Returns:
        output message
        Throws:
        org.apache.sling.api.resource.PersistenceException - error saving to JCR