|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.iseries.core.ISeriesNfsCommandHandler
Helper class for running remote commands and refreshing the tree or table views if required.
Field Summary | |
---|---|
static int |
CMD_CANCELED
|
static String |
Copyright
|
Fields inherited from interface com.ibm.etools.iseries.core.descriptors.IISeriesDataElementDescriptorTypes |
---|
DSPF_FILE_TYPE, DTA_FILE_TYPE, FILE_TYPE, LF_FILE_TYPE, LIB_TYPE, MBR_TYPE, MESSAGE_DESCRIPTION_TYPE, MODULE_TYPE, MSG_FILE_TYPE, OBJ_TYPE, PGM_MODULE_TYPE, PGM_TYPE, PROCEDURE_TYPE, QRYDFN_TYPE, SAVF_FILE_TYPE, SRC_FILE_TYPE, SRC_MBR_TYPE, SRVPGM_TYPE, UNKNOWN_TYPE |
Constructor Summary | |
---|---|
ISeriesNfsCommandHandler(Shell shell)
Constructor. |
|
ISeriesNfsCommandHandler(Shell shell,
boolean bUpdateTreeView)
Constructor that explicitly specifying whether to update the tree view. |
|
ISeriesNfsCommandHandler(Shell shell,
boolean bUpdateTreeView,
boolean bUpdateTableView)
Constructor that explicitly specifying whether to update the tree view and table view. |
|
ISeriesNfsCommandHandler(Shell shell,
CmdSubSystem cmdSubsystem)
Constructor when you set the command subsystem to use for running remote commands. |
Method Summary | |
---|---|
int |
changeDescription(com.ibm.etools.systems.dstore.core.model.DataElement deElement,
String sNewDescription)
Change description of an object on a remote iseries. |
int |
changeLibraryList(String cmd,
String newLib,
com.ibm.etools.systems.core.ui.view.ISystemTree tree,
com.ibm.etools.systems.filters.SystemFilterReference selectedFilter)
Make a change to the library list: add, change curlib, remove a library, etc Unlike other methods in here, you supply the ADDLIBLE command string. |
int |
changeMessageDescription(ISeriesMessageDescription msgd)
Change an existing message description. |
int |
changeObject(com.ibm.etools.systems.dstore.core.model.DataElement deElement,
boolean processCmdLineParm)
Prompt the user for the appropriate Change XXX command on the iseries, based on the type of the given iseries object. |
int |
changeType(com.ibm.etools.systems.dstore.core.model.DataElement deElement,
String sNewType)
Change type of a library or member on a remote iseries. |
int |
copyFile(com.ibm.etools.systems.dstore.core.model.DataElement deElement,
boolean processCmdLineParm)
Run Copy file. |
int |
copyLib(String sSourceLib,
String sTargetLib,
boolean processCmdLineParm)
Copy a library on the iSeries. |
int |
copyMbr(String sSourceLib,
String sSourceFile,
String sSourceMbr,
String sTargetLib,
String sTargetFile,
String sTargetName,
boolean isSourceFile,
boolean processCmdLineParm,
boolean withPrompt)
Copy a data or source file member on the iSeries. |
int |
copyObj(String sSourceLib,
String sSourceName,
String sSourceType,
String sTargetLib,
String sTargetName,
boolean processCmdLineParm,
IProgressMonitor monitor)
Copy an object on the iSeries. |
int |
createMessageDescription(com.ibm.etools.systems.dstore.core.model.DataElement parent,
String library,
String msgFileName)
Create a new message file in the specified library with the specified name. |
int |
crtRemoteObject(Object parentObject,
String parentObjectName,
com.ibm.etools.systems.core.ui.view.ISystemTree tree,
String newObjectName,
String sCmdString)
Create a remote object, such as a library, file or member. |
int |
delete(com.ibm.etools.systems.dstore.core.model.DataElement deElement,
boolean processCmdLineParm)
Physically delete the iSeries object represented by the given data element. |
static String |
getMemberType(String sFileName)
Attempt to intelligently default a member type based on the name of the file. |
int |
getNumberOfReturnMessages()
Return the number of messages issued by last remote command |
ISeriesMessage[] |
getReturnMessages()
Return all the messages issued by the last remote command |
ISeriesMessage |
getReturnMsg()
Get the first last message issued by running a remote command |
int |
mergeSource(com.ibm.etools.systems.dstore.core.model.DataElement deElement,
boolean processCmdLineParm)
Run Mrgsrc. |
int |
moveMbr(String sSourceLib,
String sSourceFile,
String sSourceMbr,
String sTargetLib,
String sTargetFile,
String sTargetName,
boolean isSourceFile,
boolean processCmdLineParm)
Move a member from one file to another on the iSeries. |
int |
moveObj(String sSourceLib,
String sSourceName,
String sSourceType,
String sTargetLib,
String sTargetName,
boolean processCmdLineParm,
IProgressMonitor monitor)
Move an object from one library to another on the iSeries. |
int |
rename(com.ibm.etools.systems.dstore.core.model.DataElement deElement,
String sNewName,
boolean processCmdLineParm)
Rename a remote object on the iseries. |
int |
reorderLibraryList(String[] cmds,
String movedLib,
com.ibm.etools.systems.core.ui.view.ISystemTree tree,
com.ibm.etools.systems.filters.SystemFilterReference parentFilter)
Make a change to reorder the library list: move a library up or down or to a new position All these actions require multiple commands to achieve |
int |
restore(com.ibm.etools.systems.dstore.core.model.DataElement deElement,
boolean processCmdLineParm)
Run Restore. |
int |
restoreLib(com.ibm.etools.systems.dstore.core.model.DataElement deElement,
boolean processCmdLineParm)
Run RSTLIB command for SAVF |
int |
restoreObj(com.ibm.etools.systems.dstore.core.model.DataElement deElement,
boolean processCmdLineParm)
Run RSTOBJ command for SAVF |
int |
runCommand(String sCmdString,
com.ibm.etools.systems.dstore.core.model.DataElement deElement)
Run a command using the subsystem from the dataElement |
int |
save(com.ibm.etools.systems.dstore.core.model.DataElement deElement,
boolean processCmdLineParm)
Run Save. |
void |
setCommandSubSystem(CmdSubSystem cmdSubSystem)
Set the command subsystem in which to run commands. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
public static final int CMD_CANCELED
Constructor Detail |
public ISeriesNfsCommandHandler(Shell shell)
public ISeriesNfsCommandHandler(Shell shell, CmdSubSystem cmdSubsystem)
public ISeriesNfsCommandHandler(Shell shell, boolean bUpdateTreeView)
public ISeriesNfsCommandHandler(Shell shell, boolean bUpdateTreeView, boolean bUpdateTableView)
Method Detail |
public void setCommandSubSystem(CmdSubSystem cmdSubSystem)
public int changeLibraryList(String cmd, String newLib, com.ibm.etools.systems.core.ui.view.ISystemTree tree, com.ibm.etools.systems.filters.SystemFilterReference selectedFilter)
cmd
- The ADDLIBLE, RMVLIBLE or CHGCURLIB command to runnewLib
- The name of the library being added (so we can select it)tree
- The RSE view from which this was run. OptionalselectedFilter
- The selected libl filter this was run from. Optional.
public int reorderLibraryList(String[] cmds, String movedLib, com.ibm.etools.systems.core.ui.view.ISystemTree tree, com.ibm.etools.systems.filters.SystemFilterReference parentFilter)
cmds
- The RMVLIBLE and ADDLIBLE commands to runtree
- The RSE view from which this was run. OptionalparentFilter
- The parent libl filter this was run from children of. Optional.
public int copyMbr(String sSourceLib, String sSourceFile, String sSourceMbr, String sTargetLib, String sTargetFile, String sTargetName, boolean isSourceFile, boolean processCmdLineParm, boolean withPrompt)
sSourceLib
- - name of library containing member to be copied.sSourceFile
- - name of file containing member to be copied.sSourceMbr
- - name of member to be copied.sTargetLib
- - name of library to copy member into.sTargetFile
- - name to file to copy member into.sTargetName
- - new name to assign to the new copy of the member.isSourceFile
- - true if the member is a source member, false if it is a data member.processCmdLineParm
- - true if the command line input should be treated as parameters.withPrompt
- - Prompt the command first. If true, caller should check for cancel return.
public int copyObj(String sSourceLib, String sSourceName, String sSourceType, String sTargetLib, String sTargetName, boolean processCmdLineParm, IProgressMonitor monitor)
sSourceLib
- - name of library containing object to be copied.sSourceName
- - name of object to be copied.sSourceType
- - type of object to be copied.sTargetLib
- - name of library to copy object into.sTargetName
- - new name to assign to the new copy of the object.
public int copyLib(String sSourceLib, String sTargetLib, boolean processCmdLineParm)
sSourceLib
- - name of library to be copied.sTargetLib
- - new name for the new library copy.
public int moveMbr(String sSourceLib, String sSourceFile, String sSourceMbr, String sTargetLib, String sTargetFile, String sTargetName, boolean isSourceFile, boolean processCmdLineParm)
copyMbr
,
then issuing a RMVM remote command.
sSourceLib
- - name of library containing member to be moved.sSourceFile
- - name of file containing member to be moved.sSourceMbr
- - name of member to be moved.sTargetLib
- - name of library to move member into.sTargetFile
- - name to file to move member into.sTargetName
- - new name to assign to the moved member.isSourceFile
- - true if the member is a source member, false if it is a data member.
public int moveObj(String sSourceLib, String sSourceName, String sSourceType, String sTargetLib, String sTargetName, boolean processCmdLineParm, IProgressMonitor monitor)
sSourceLib
- - name of library containing object to be moved.sSourceName
- - name of object to be moved.sSourceType
- - type of object to be moved.sTargetLib
- - name of library to move object into.sTargetName
- - new name to assign to the moved object.
public int crtRemoteObject(Object parentObject, String parentObjectName, com.ibm.etools.systems.core.ui.view.ISystemTree tree, String newObjectName, String sCmdString)
parentObject
- The actual object selected when this request happenedparentObjectName
- The fully qualified name of the parent container for this new object. Is used to refresh all occurrences of that parent.tree
- The RSE view from which this was run. Optional
public int delete(com.ibm.etools.systems.dstore.core.model.DataElement deElement, boolean processCmdLineParm)
public int rename(com.ibm.etools.systems.dstore.core.model.DataElement deElement, String sNewName, boolean processCmdLineParm)
public int changeDescription(com.ibm.etools.systems.dstore.core.model.DataElement deElement, String sNewDescription)
public int changeType(com.ibm.etools.systems.dstore.core.model.DataElement deElement, String sNewType)
public int changeObject(com.ibm.etools.systems.dstore.core.model.DataElement deElement, boolean processCmdLineParm)
public int changeMessageDescription(ISeriesMessageDescription msgd)
public int createMessageDescription(com.ibm.etools.systems.dstore.core.model.DataElement parent, String library, String msgFileName)
public ISeriesMessage[] getReturnMessages()
public ISeriesMessage getReturnMsg()
public int getNumberOfReturnMessages()
public int runCommand(String sCmdString, com.ibm.etools.systems.dstore.core.model.DataElement deElement)
public static String getMemberType(String sFileName)
sFileName
- - the name of the file. Eg QRPGLESRCpublic int restore(com.ibm.etools.systems.dstore.core.model.DataElement deElement, boolean processCmdLineParm)
public int restoreLib(com.ibm.etools.systems.dstore.core.model.DataElement deElement, boolean processCmdLineParm)
public int restoreObj(com.ibm.etools.systems.dstore.core.model.DataElement deElement, boolean processCmdLineParm)
public int save(com.ibm.etools.systems.dstore.core.model.DataElement deElement, boolean processCmdLineParm)
public int mergeSource(com.ibm.etools.systems.dstore.core.model.DataElement deElement, boolean processCmdLineParm)
public int copyFile(com.ibm.etools.systems.dstore.core.model.DataElement deElement, boolean processCmdLineParm)
|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |