|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.jsdt.support.SupportHelper
com.ibm.jsdt.support.SupportOS400Helper
public class SupportOS400Helper
OS/400 specific helper functionality.
Field Summary |
---|
Fields inherited from class com.ibm.jsdt.support.SupportHelper |
---|
sNEWLN, theSupportBase |
Constructor Summary | |
---|---|
SupportOS400Helper()
Deprecated. Sole constructor. |
Method Summary | |
---|---|
boolean |
arePtfsApplied(SupportOS400Base s)
Deprecated. Checks to see if each PTF in a specified list has been applied(PERM or TEMP) to the system. |
void |
chmodDirPermissions(SupportBase s)
Deprecated. Changes the permissions on a directory. |
void |
chmodFilePermissions(SupportBase s)
Deprecated. Changes the permissions on a file. |
boolean |
createSecOfrUser(SupportBase s)
Deprecated. Creates an administrative user on the i5/OS machine. |
boolean |
createUser(SupportBase s)
Deprecated. Creates a user on the i5/OS machine. |
boolean |
deleteUser(SupportBase s)
Deprecated. Deletes a user on the i5/OS machine. |
boolean |
doesHaveSecOfrAuthority(SupportBase s)
Deprecated. Determines whether or not the given user has "secofr" administrative authority. |
boolean |
doesUserExist(SupportBase s)
Deprecated. Determines whether or not the specified user exists on the system. |
com.ibm.as400.access.AS400Message[] |
getArePtfsAppliedMessageList(SupportOS400Base s)
Deprecated. Retrieves an array of messages that are associated with a failed program call in the arePtfsApplied method. |
com.ibm.as400.access.AS400 |
getAS400()
Deprecated. Retrieves the AS400 system object. |
java.lang.String |
getLastCommandOutput(SupportBase s)
Deprecated. Retrieves the output of the last invoked CL command. |
java.lang.String |
getLastCommandOutputFromInvoke()
Deprecated. Retrieves the output of the last invoked command from the invokeCommandLogOutput method. |
java.lang.String |
getOSLevel(SupportBase s)
Deprecated. Returns the current level of the i5/OS operating system in the form of "version.release.modification". |
int |
getOSRelease(SupportBase s)
Deprecated. Obtains the current i5/OS release. |
int |
getOSVersion(SupportBase s)
Deprecated. Obtains the current i5/OS version. |
java.lang.String |
getSystemCommandOutput(java.lang.String command,
java.lang.String commandToLog)
Deprecated. Run a QSH command. |
int |
invokeCommandLogOutput(java.lang.String command,
java.lang.String logCommand,
boolean convertFromEBCDIC,
java.lang.String workingDir)
Deprecated. Run a QSH command. |
boolean |
isCurrentReleaseEqualOrGreater(SupportOS400Base s)
Deprecated. Indicates whether or not the versoin and release of the current OS/400 computer is greater than or equal to a specified expected value. |
boolean |
isProductInstall(java.lang.String productId,
java.lang.String release,
java.lang.String option)
Deprecated. Checks the system to see if the product and option are install on the machine for a specific version. |
boolean |
isProductInstalled(SupportOS400Base s)
Deprecated. Checks the system to see if a product and option are installed on the machine for a specific os version. |
boolean |
isProductInstalled(SupportOS400Base s,
boolean useProductClass)
Deprecated. Checks the system to see if a product and option are installed on the machine for a specific OS version. |
boolean |
isUserPasswordValid(SupportBase s)
Deprecated. Determines the validity of the given user/password combination. |
void |
reboot(SupportBase s)
Deprecated. Reboots the i5/OS machine. |
boolean |
runCLCommand(SupportBase s)
Deprecated. Runs a CL command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SupportOS400Helper()
Method Detail |
---|
public void chmodDirPermissions(SupportBase s)
The SupportBase
to be queried must invoke
SupportBase.setPath
and SupportBase.setChmodValue
before calling this method.
s
- the SupportBase
to be queried String
path SupportBase.getPath
String
valid chmod argument SupportBase.getChmodValue
public void chmodFilePermissions(SupportBase s)
The SupportBase
to be queried must invoke
SupportBase.setFileName
and SupportBase.setChmodValue
before calling this method.
s
- the SupportBase
to be queried String
file name SupportBase.getFileName
String
valid chmod argument SupportBase.getChmodValue
public boolean createSecOfrUser(SupportBase s)
The SupportBase
to be queried must invoke
SupportBase.setUserName
and SupportBase.setPassword
before calling this method.
s
- the SupportBase
to be queried String
user name SupportBase.getUserName
String
password SupportBase.getPassword
boolean
true
if successfully created
false
otherwise public boolean createUser(SupportBase s)
The SupportBase
to be queried must invoke
SupportBase.setUserName
and SupportBase.setPassword
before calling this method.
s
- the SupportBase
to be queried String
user name SupportBase.getUserName
String
password SupportBase.getPassword
boolean
true
if successfully created
false
otherwisepublic boolean deleteUser(SupportBase s)
The SupportBase
to be queried must invoke
SupportBase.setUserName
before calling this method.
s
- the SupportBase
to be queried String
user name SupportBase.getUserName
boolean
true
if successfully deleted
false
otherwisepublic void reboot(SupportBase s)
public boolean doesHaveSecOfrAuthority(SupportBase s)
The SupportBase
to be queried must invoke
SupportBase.setUserName
before calling this method.
s
- the SupportBase
to be queried String
user name SupportBase.getUserName
boolean
true
if user has authority
false
otherwisepublic boolean isUserPasswordValid(SupportBase s)
The SupportBase
to be queried must invoke
SupportBase.setUserName
and SupportBase.setPassword
before calling this method.
s
- the SupportBase
to be queried String
user name SupportBase.getUserName
String
password SupportBase.getPassword
boolean
true
if password is valid for user
false
otherwisepublic boolean doesUserExist(SupportBase s)
The SupportBase
to be queried must invoke
SupportBase.setUserName
before calling this method.
s
- the SupportBase
to be queried String
user name SupportBase.getUserName
boolean
true
if user has authority
false
otherwise public boolean runCLCommand(SupportBase s)
The SupportBase
to be queried must invoke
SupportBase.setCommand
before calling this method.
s
- the SupportBase
to be queried String
CL command line SupportBase.getCommand
boolean
true
if command returns true
false
otherwisepublic java.lang.String getLastCommandOutput(SupportBase s)
getLastCommandOutput
in class SupportHelper
s
- SupportBase
to be queried
public java.lang.String getOSLevel(SupportBase s)
public int getOSVersion(SupportBase s)
public int getOSRelease(SupportBase s)
public boolean isProductInstalled(SupportOS400Base s, boolean useProductClass)
The SupportOS400Base
to be queried must invoke
SupportOS400Base.setOs400ProductId
and
SupportOS400Base.setOs400ProductOption
and
SupportOS400Base.setOs400Release
before calling this method.
SupportOS400Base.setOs400ProductId sets a Product ID to check for. For example 5722DG1. SSupportOS400Base.setOs400ProductOption sets a specific option to check for. SupportOS400Base.setOs400Release sets a i5/OS release to check for..
See Product Javadoc for constant values.
code
- SupportOS400Base
boolean
True
if the product
and option are correctly installed for the release specified.
false
if the product is not installed, or if
it is on the system, but not in a fully installed state.public boolean isProductInstalled(SupportOS400Base s)
The SupportOS400Base
to be queried must invoke
SupportOS400Base.setOs400ProductId
and
SupportOS400Base.setOs400ProductOption
and
SupportOS400Base.setOs400Release
before calling this method.
SupportOS400Base.setOs400ProductId sets a Product ID to check for. For example 5722DG1. SSupportOS400Base.setOs400ProductOption sets a specific option to check for. SupportOS400Base.setOs400Release sets a i5/OS release to check for..
See RSoftwareResource Javadoc for constant values.
code
- SupportOS400Base
boolean
True
if the product
and option are correctly installed for the release specified.
false
if the product is not installed, or if
it is on the system, but not in a fully installed state.public boolean arePtfsApplied(SupportOS400Base s)
Applied is defined as temporary applied, permantly applied, or superseded. If a PTF is loaded or has a SAVF it is NOT considered applied.
The ptfList must contain String[3] arrays
for each entry. Each entry(String[3]) must contain
{
The
SupportOS400Base
to be queried must invoke
SupportOS400Base.setPtfList()
prior to invoking
this method.
code
- SupportOS400Base
boolean
false
if one or more
PTFs in the list is not applied, true
if
every PTF in the list has been applied.
public com.ibm.as400.access.AS400 getAS400()
AS400
system object.
AS400
public com.ibm.as400.access.AS400Message[] getArePtfsAppliedMessageList(SupportOS400Base s)
arePtfsApplied
method.
The arePtfsApplied
method must be invoked prior
to calling this method.
Nothing needs to be set into the SupportOS400Base
prior to calling this mehtod.
code
- SupportOS400Base
AS400Message[]
public boolean isCurrentReleaseEqualOrGreater(SupportOS400Base s)
For example, if a release of V5R2M0 was passed, and the current machine is V5R1M0, then a false would be returned. If the release of the current machine is V5R2M0 or later, true is returned.
The SupportOS400Base
to be queried must invoke
SupportOS400Base.setOS400Release()
prior to invoking
this method.
code
- SupportOS400Base
boolean true
if the current machine's
release is the same or higher than the specified release,
false
otherwise.
public boolean isProductInstall(java.lang.String productId, java.lang.String release, java.lang.String option)
productId
- Product ID to check for. For example 5722DG1.release
- i5/OS Release to check for. See RSoftwareResource Javadoc for constant values.option
- Specific option to check for. See RSoftwareResource Javadoc for constant values.
public int invokeCommandLogOutput(java.lang.String command, java.lang.String logCommand, boolean convertFromEBCDIC, java.lang.String workingDir)
command
- the command to run.command
- to write to the log. Can be used if the original contains
secure information such as userid and/or password.boolean
- if the output of the command to should be logged as well.boolean
- if the output needs to be converted from EBCDIC to ASCII.String
- The working directory the command should be invoked from.
If null is specified, the current working directory is used.
public java.lang.String getLastCommandOutputFromInvoke()
String
the output.public java.lang.String getSystemCommandOutput(java.lang.String command, java.lang.String commandToLog)
getSystemCommandOutput
in class SupportHelper
command
- - the command to run.commadToLog
- - the comamnd to log. If null or empty string is specified, a command will be logged.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |