public class CopyMoveManagerImpl extends Object implements CopyMoveManager
CopyMoveManagerImpl
...Constructor and Description |
---|
CopyMoveManagerImpl()
Create a new
CopyMoveManagerImpl . |
Modifier and Type | Method and 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 command
|
CopyMoveHandler[] |
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
|
public CopyMoveManagerImpl()
CopyMoveManagerImpl
.public boolean copy(CopyMoveContext context, DavResource source, DavResource destination) throws DavException
CopyMoveManager
copy
in interface CopyMoveManager
context
- The context used for this copy operation.source
- The source of the copy.destination
- The destination of the copy.DavException
- If an error occurs.CopyMoveManager.copy(CopyMoveContext,org.apache.jackrabbit.webdav.DavResource,org.apache.jackrabbit.webdav.DavResource)
public boolean move(CopyMoveContext context, DavResource source, DavResource destination) throws DavException
CopyMoveManager
move
in interface CopyMoveManager
context
- The context used for this move operation.source
- The source of the move.destination
- The destination of the move.DavException
- If an error occurs.CopyMoveManager.move(CopyMoveContext,org.apache.jackrabbit.webdav.DavResource,org.apache.jackrabbit.webdav.DavResource)
public void addCopyMoveHandler(CopyMoveHandler copyMoveHandler)
CopyMoveManager
addCopyMoveHandler
in interface CopyMoveManager
copyMoveHandler
- handler to be addedCopyMoveManager.addCopyMoveHandler(CopyMoveHandler)
public CopyMoveHandler[] getCopyMoveHandlers()
CopyMoveManager
getCopyMoveHandlers
in interface CopyMoveManager
CopyMoveManager.getCopyMoveHandlers()
public static CopyMoveManager getDefaultManager()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.