Package org.apache.jackrabbit.server.io
Interface CopyMoveHandler
- 
- All Known Implementing Classes:
 DefaultHandler,VersionHandler,XmlHandler,ZipHandler
public interface CopyMoveHandlerCopyMoveHandler... 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanCopy(CopyMoveContext context, DavResource source, DavResource destination)Validates if this handler is able to execute a copy with the given parameters.booleancanMove(CopyMoveContext context, DavResource source, DavResource destination)Validates if this handler is able to execute a move with the given parameters.booleancopy(CopyMoveContext context, DavResource source, DavResource destination)Executes the copy with the given parameters.booleanmove(CopyMoveContext context, DavResource source, DavResource destination)Executes the move with the given parameters. 
 - 
 
- 
- 
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.
 
 - 
 
 -