Interface CopyMoveHandler

    • Method Detail

      • canCopy

        boolean canCopy​(CopyMoveContext context,
                        DavResource source,
                        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,
                     DavResource source,
                     DavResource destination)
              throws 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:
        DavException - If an error occurs.
      • canMove

        boolean canMove​(CopyMoveContext context,
                        DavResource source,
                        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,
                     DavResource source,
                     DavResource destination)
              throws 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:
        DavException - If an error occurs.