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
IfsException
public IfsCopyContext(LibrarySession session, PublicObject srcPO, Folder destFolder, String newName, boolean overwrite) throws IfsException
IfsException
public void clear()
clear
in interface CopyContext
clear
in interface CommandContext
clear
in class IfsCommandContext
public LibrarySession getLibrarySession() throws IfsException
getLibrarySession
in interface CopyContext
IfsException
- if the operation failspublic void setLibrarySession(LibrarySession session) throws IfsException
setLibrarySession
in interface CopyContext
session
- instance of LibrarySession to be used in this command contextIfsException
- if the operation failspublic Folder getDestinationParentFolder() throws IfsException
getDestinationParentFolder
in interface CopyContext
IfsException
- if the operation failspublic void setDestinationParentFolder(Folder dest) throws IfsException
setDestinationParentFolder
in interface CopyContext
dest
- parent folderIfsException
- if the operation failspublic PublicObject getSourcePublicObject() throws IfsException
getSourcePublicObject
in interface CopyContext
IfsException
- if the operation failspublic void setSourcePublicObject(PublicObject src) throws IfsException
setSourcePublicObject
in interface CopyContext
src
- source objectIfsException
- if the operation failspublic String getNewName() throws IfsException
getNewName
in interface CopyContext
IfsException
- if the operation failspublic void setNewName(String name) throws IfsException
setNewName
in interface CopyContext
name
- new copy nameIfsException
- if the operation failspublic boolean getOverwriteFlag() throws IfsException
getOverwriteFlag
in interface CopyContext
IfsException
- if the operation failspublic void setOverwriteFlag(boolean flag) throws IfsException
setOverwriteFlag
in interface CopyContext
flag
- true or falseIfsException
- if the operation failsCopyright © 2023. All rights reserved.