public interface CopyContext extends CommandContext
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the Context.
|
Folder |
getDestinationParentFolder()
Gets the parent folder of the new object.
|
LibrarySession |
getLibrarySession()
Gets the LibrarySession.
|
String |
getNewName()
Gets the name of the new object.
|
boolean |
getOverwriteFlag()
Gets the overwrite flag.
|
PublicObject |
getSourcePublicObject()
Gets the PublicObject from which the new object is copied.
|
void |
setDestinationParentFolder(Folder dest)
Sets the parent folder of the new object.
|
void |
setLibrarySession(LibrarySession session)
Sets the LibrarySession.
|
void |
setNewName(String name)
Sets the name of the new object.
|
void |
setOverwriteFlag(boolean flag)
Sets the overwrite flag
|
void |
setSourcePublicObject(PublicObject src)
Sets the PublicObject from which the new object is copied.
|
void clear()
clear
in interface CommandContext
LibrarySession getLibrarySession() throws IfsException
IfsException
- if the operation failsvoid setLibrarySession(LibrarySession session) throws IfsException
session
- instance of LibrarySession to be used in this command contextIfsException
- if the operation failsFolder getDestinationParentFolder() throws IfsException
IfsException
- if the operation failsvoid setDestinationParentFolder(Folder dest) throws IfsException
dest
- parent folderIfsException
- if the operation failsPublicObject getSourcePublicObject() throws IfsException
IfsException
- if the operation failsvoid setSourcePublicObject(PublicObject src) throws IfsException
src
- source objectIfsException
- if the operation failsString getNewName() throws IfsException
IfsException
- if the operation failsvoid setNewName(String name) throws IfsException
name
- new copy nameIfsException
- if the operation failsboolean getOverwriteFlag() throws IfsException
IfsException
- if the operation failsvoid setOverwriteFlag(boolean flag) throws IfsException
flag
- true or falseIfsException
- if the operation failsCopyright © 2023. All rights reserved.