public class IfsMvContext extends IfsCommandContext implements MvContext
Command specification for IfsMvCommand Inputs :
Constructor and Description |
---|
IfsMvContext()
Default constructor.
|
IfsMvContext(LibrarySession session,
PublicObject po,
Folder source,
Folder destination,
String newName)
Constructor that takes all parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the Context.
|
Folder |
getDestinationFolder()
Gets the destination folder of the public object.
|
LibrarySession |
getLibrarySession()
Gets the LibrarySession.
|
String |
getNewName()
Gets the new name of the public object.
|
PublicObject |
getPublicObject()
Gets the public object which needs to be moved.
|
Folder |
getSourceFolder()
Gets the source folder of the public object.
|
void |
setDestinationFolder(Folder destination)
Sets the destination folder of this context.
|
void |
setLibrarySession(LibrarySession session)
Sets the LibrarySession.
|
void |
setNewName(String name)
Sets the new name of the public object.
|
void |
setPublicObject(PublicObject po)
Sets the public object that needs to be moved.
|
void |
setSourceFolder(Folder source)
Sets the source folder of this context.
|
public IfsMvContext() throws IfsException
IfsException
- if the operation fails.public IfsMvContext(LibrarySession session, PublicObject po, Folder source, Folder destination, String newName) throws IfsException
session
- instance of LibrarySessionpo
- Public Object for this commandsource
- source folderdestination
- destination foldernewName
- new name of the public objectIfsException
- if the operation fails.public void clear()
clear
in interface MvContext
clear
in interface CommandContext
clear
in class IfsCommandContext
public PublicObject getPublicObject() throws IfsException
getPublicObject
in interface MvContext
IfsException
- if the operation failspublic void setPublicObject(PublicObject po) throws IfsException
setPublicObject
in interface MvContext
po
- public object for this contextIfsException
- if the operation failspublic Folder getSourceFolder() throws IfsException
getSourceFolder
in interface MvContext
IfsException
- if the operation failspublic void setSourceFolder(Folder source) throws IfsException
setSourceFolder
in interface MvContext
source
- source folder of the public objectIfsException
- if the operation failspublic Folder getDestinationFolder() throws IfsException
getDestinationFolder
in interface MvContext
IfsException
- if the operation failspublic void setDestinationFolder(Folder destination) throws IfsException
setDestinationFolder
in interface MvContext
destination
- destination folder for the public objectIfsException
- if the operation failspublic String getNewName() throws IfsException
getNewName
in interface MvContext
IfsException
- if the operation failspublic void setNewName(String name) throws IfsException
setNewName
in interface MvContext
name
- new name for the public objectIfsException
- if the operation failspublic LibrarySession getLibrarySession() throws IfsException
getLibrarySession
in interface MvContext
IfsException
- if the operation failspublic void setLibrarySession(LibrarySession session) throws IfsException
setLibrarySession
in interface MvContext
session
- instance of LibrarySession to be used in this command contextIfsException
- if the operation failsCopyright © 2023. All rights reserved.