Class MoveResourceToRelativePath

  • All Implemented Interfaces:
    Action

    public class MoveResourceToRelativePath
    extends Object
    implements Action
    Author:
    Roxana Muresan
    • Constructor Detail

      • MoveResourceToRelativePath

        public MoveResourceToRelativePath​(@Nonnull
                                          String relativePath,
                                          @Nonnull
                                          BindingContext context)
        Constructor
        Parameters:
        relativePath - relative path
        context - binding context
    • Method Detail

      • doAction

        public String doAction​(@Nonnull
                               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