Package org.apache.jackrabbit.server.io
Interface CopyMoveManager
-
- All Known Implementing Classes:
CopyMoveManagerImpl
public interface CopyMoveManager
CopyMoveManager
...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addCopyMoveHandler(CopyMoveHandler copyMoveHandler)
Adds the specified handler to the list of handlers.boolean
copy(CopyMoveContext context, DavResource source, DavResource destination)
Handles the copy commandCopyMoveHandler[]
getCopyMoveHandlers()
Returns all handlers that have been added to this manager.boolean
move(CopyMoveContext context, DavResource source, DavResource destination)
Handles the move command
-
-
-
Method Detail
-
copy
boolean copy(CopyMoveContext context, DavResource source, DavResource destination) throws DavException
Handles the copy command- Parameters:
context
- The context used for this copy operation.source
- The source of the copy.destination
- The destination of the copy.- Returns:
- true if the copy succeeded.
- Throws:
DavException
- If an error occurs.
-
move
boolean move(CopyMoveContext context, DavResource source, DavResource destination) throws DavException
Handles the move command- Parameters:
context
- The context used for this move operation.source
- The source of the move.destination
- The destination of the move.- Returns:
- true if the move succeeded.
- Throws:
DavException
- If an error occurs.
-
addCopyMoveHandler
void addCopyMoveHandler(CopyMoveHandler copyMoveHandler)
Adds the specified handler to the list of handlers.- Parameters:
copyMoveHandler
- handler to be added
-
getCopyMoveHandlers
CopyMoveHandler[] getCopyMoveHandlers()
Returns all handlers that have been added to this manager.- Returns:
- Array of all handlers
-
-