Class CustomAction

  • All Implemented Interfaces:
    Action

    public class CustomAction
    extends Object
    implements Action
    Generic action based on a Lambda.
    Author:
    Roland Gruber
    • Constructor Detail

      • CustomAction

        public CustomAction​(de.valtech.aecu.api.groovy.console.bindings.CustomResourceAction action)
        Constructor
        Parameters:
        action - action to perform
    • 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