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 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.static CopyMoveManager
getDefaultManager()
boolean
move(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:CopyMoveManager
Handles the copy command- Specified by:
copy
in 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:CopyMoveManager
Handles the move command- Specified by:
move
in 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:CopyMoveManager
Adds the specified handler to the list of handlers.- Specified by:
addCopyMoveHandler
in interfaceCopyMoveManager
- Parameters:
copyMoveHandler
- handler to be added- See Also:
CopyMoveManager.addCopyMoveHandler(CopyMoveHandler)
-
getCopyMoveHandlers
public CopyMoveHandler[] getCopyMoveHandlers()
Description copied from interface:CopyMoveManager
Returns all handlers that have been added to this manager.- Specified by:
getCopyMoveHandlers
in interfaceCopyMoveManager
- Returns:
- Array of all handlers
- See Also:
CopyMoveManager.getCopyMoveHandlers()
-
getDefaultManager
public static CopyMoveManager getDefaultManager()
- Returns:
- an instance of CopyMoveManager populated with default handlers.
-
-