Interface CopyMoveHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean canCopy​(CopyMoveContext context, org.apache.jackrabbit.webdav.DavResource source, org.apache.jackrabbit.webdav.DavResource destination)
      Validates if this handler is able to execute a copy with the given parameters.
      boolean canMove​(CopyMoveContext context, org.apache.jackrabbit.webdav.DavResource source, org.apache.jackrabbit.webdav.DavResource destination)
      Validates if this handler is able to execute a move with the given parameters.
      boolean copy​(CopyMoveContext context, org.apache.jackrabbit.webdav.DavResource source, org.apache.jackrabbit.webdav.DavResource destination)
      Executes the copy with the given parameters.
      boolean move​(CopyMoveContext context, org.apache.jackrabbit.webdav.DavResource source, org.apache.jackrabbit.webdav.DavResource destination)
      Executes the move with the given parameters.
    • Method Detail

      • canCopy

        boolean canCopy​(CopyMoveContext context,
                        org.apache.jackrabbit.webdav.DavResource source,
                        org.apache.jackrabbit.webdav.DavResource destination)
        Validates if this handler is able to execute a copy with the given parameters.
        Parameters:
        context - The context of the copy.
        source - The source of the copy.
        destination - The destination of the copy.
        Returns:
        true if this instance can handle a copy with the given parameters; false otherwise.
      • copy

        boolean copy​(CopyMoveContext context,
                     org.apache.jackrabbit.webdav.DavResource source,
                     org.apache.jackrabbit.webdav.DavResource destination)
              throws org.apache.jackrabbit.webdav.DavException
        Executes the copy with the given parameters.
        Parameters:
        context - The context of the copy.
        source - The source of the copy.
        destination - The destination of the copy.
        Returns:
        true if this instance successfully executed the copy operation with the given parameters; false otherwise.
        Throws:
        org.apache.jackrabbit.webdav.DavException - If an error occurs.
      • canMove

        boolean canMove​(CopyMoveContext context,
                        org.apache.jackrabbit.webdav.DavResource source,
                        org.apache.jackrabbit.webdav.DavResource destination)
        Validates if this handler is able to execute a move with the given parameters.
        Parameters:
        context - The context of the move.
        source - The source of the move.
        destination - The destination of the move.
        Returns:
        true if this instance successfully executed the move operation with the given parameters; false otherwise.
      • move

        boolean move​(CopyMoveContext context,
                     org.apache.jackrabbit.webdav.DavResource source,
                     org.apache.jackrabbit.webdav.DavResource destination)
              throws org.apache.jackrabbit.webdav.DavException
        Executes the move with the given parameters.
        Parameters:
        context - The context of the move.
        source - The source of the move.
        destination - The destination of the move.
        Returns:
        true if this instance successfully executed the move operation with the given parameters; false otherwise.
        Throws:
        org.apache.jackrabbit.webdav.DavException - If an error occurs.