Package org.apache.jackrabbit.server.io
Class CopyMoveManagerImpl
- java.lang.Object
-
- org.apache.jackrabbit.server.io.CopyMoveManagerImpl
-
- All Implemented Interfaces:
CopyMoveManager
public class CopyMoveManagerImpl extends Object implements CopyMoveManager
CopyMoveManagerImpl...
-
-
Constructor Summary
Constructors Constructor Description CopyMoveManagerImpl()Create a newCopyMoveManagerImpl.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCopyMoveHandler(CopyMoveHandler copyMoveHandler)Adds the specified handler to the list of handlers.booleancopy(CopyMoveContext context, DavResource source, DavResource destination)Handles the copy commandCopyMoveHandler[]getCopyMoveHandlers()Returns all handlers that have been added to this manager.static CopyMoveManagergetDefaultManager()booleanmove(CopyMoveContext context, DavResource source, DavResource destination)Handles the move command
-
-
-
Method Detail
-
copy
public boolean copy(CopyMoveContext context, DavResource source, DavResource destination) throws DavException
Description copied from interface:CopyMoveManagerHandles the copy command- Specified by:
copyin interfaceCopyMoveManager- 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.- See Also:
CopyMoveManager.copy(CopyMoveContext,org.apache.jackrabbit.webdav.DavResource,org.apache.jackrabbit.webdav.DavResource)
-
move
public boolean move(CopyMoveContext context, DavResource source, DavResource destination) throws DavException
Description copied from interface:CopyMoveManagerHandles the move command- Specified by:
movein interfaceCopyMoveManager- 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.- See Also:
CopyMoveManager.move(CopyMoveContext,org.apache.jackrabbit.webdav.DavResource,org.apache.jackrabbit.webdav.DavResource)
-
addCopyMoveHandler
public void addCopyMoveHandler(CopyMoveHandler copyMoveHandler)
Description copied from interface:CopyMoveManagerAdds the specified handler to the list of handlers.- Specified by:
addCopyMoveHandlerin interfaceCopyMoveManager- Parameters:
copyMoveHandler- handler to be added- See Also:
CopyMoveManager.addCopyMoveHandler(CopyMoveHandler)
-
getCopyMoveHandlers
public CopyMoveHandler[] getCopyMoveHandlers()
Description copied from interface:CopyMoveManagerReturns all handlers that have been added to this manager.- Specified by:
getCopyMoveHandlersin interfaceCopyMoveManager- Returns:
- Array of all handlers
- See Also:
CopyMoveManager.getCopyMoveHandlers()
-
getDefaultManager
public static CopyMoveManager getDefaultManager()
- Returns:
- an instance of CopyMoveManager populated with default handlers.
-
-