public interface CopyMoveHandler
CopyMoveHandler
...Modifier and Type | Method and Description |
---|---|
boolean |
canCopy(CopyMoveContext context,
DavResource source,
DavResource destination)
Validates if this handler is able to execute a copy with the given
parameters.
|
boolean |
canMove(CopyMoveContext context,
DavResource source,
DavResource destination)
Validates if this handler is able to execute a move with the given
parameters.
|
boolean |
copy(CopyMoveContext context,
DavResource source,
DavResource destination)
Executes the copy with the given parameters.
|
boolean |
move(CopyMoveContext context,
DavResource source,
DavResource destination)
Executes the move with the given parameters.
|
boolean canCopy(CopyMoveContext context, DavResource source, DavResource destination)
context
- The context of the copy.source
- The source of the copy.destination
- The destination of the copy.boolean copy(CopyMoveContext context, DavResource source, DavResource destination) throws DavException
context
- The context of the copy.source
- The source of the copy.destination
- The destination of the copy.DavException
- If an error occurs.boolean canMove(CopyMoveContext context, DavResource source, DavResource destination)
context
- The context of the move.source
- The source of the move.destination
- The destination of the move.boolean move(CopyMoveContext context, DavResource source, DavResource destination) throws DavException
context
- The context of the move.source
- The source of the move.destination
- The destination of the move.DavException
- If an error occurs.Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.