public class IfsCopyContext extends IfsCommandContext implements CopyContext
| Constructor and Description |
|---|
IfsCopyContext()
The Constructor.
|
IfsCopyContext(LibrarySession session,
PublicObject srcPO,
Folder destFolder,
String newName,
boolean overwrite)
Other Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the CommandState. does not throw.
|
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.
|
public IfsCopyContext()
throws IfsException
IfsExceptionpublic IfsCopyContext(LibrarySession session, PublicObject srcPO, Folder destFolder, String newName, boolean overwrite) throws IfsException
IfsExceptionpublic void clear()
clear in interface CopyContextclear in interface CommandContextclear in class IfsCommandContextpublic LibrarySession getLibrarySession() throws IfsException
getLibrarySession in interface CopyContextIfsException - if the operation failspublic void setLibrarySession(LibrarySession session) throws IfsException
setLibrarySession in interface CopyContextsession - instance of LibrarySession to be used in this command contextIfsException - if the operation failspublic Folder getDestinationParentFolder() throws IfsException
getDestinationParentFolder in interface CopyContextIfsException - if the operation failspublic void setDestinationParentFolder(Folder dest) throws IfsException
setDestinationParentFolder in interface CopyContextdest - parent folderIfsException - if the operation failspublic PublicObject getSourcePublicObject() throws IfsException
getSourcePublicObject in interface CopyContextIfsException - if the operation failspublic void setSourcePublicObject(PublicObject src) throws IfsException
setSourcePublicObject in interface CopyContextsrc - source objectIfsException - if the operation failspublic String getNewName() throws IfsException
getNewName in interface CopyContextIfsException - if the operation failspublic void setNewName(String name) throws IfsException
setNewName in interface CopyContextname - new copy nameIfsException - if the operation failspublic boolean getOverwriteFlag()
throws IfsException
getOverwriteFlag in interface CopyContextIfsException - if the operation failspublic void setOverwriteFlag(boolean flag)
throws IfsException
setOverwriteFlag in interface CopyContextflag - true or falseIfsException - if the operation failsCopyright © 2025. All rights reserved.