|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.adapter.ResourceAdapterBase
com.waveset.adapter.GenericScriptResourceAdapter
com.waveset.adapter.GCOSResourceAdapter
Title: Description: Copyright: Copyright (c) 2000 Company:
Nested Class Summary | |
protected class |
GCOSResourceAdapter.AcctIter
AccountIterator implementation that can be built by construction from the output of mast smc |
Nested classes inherited from class com.waveset.adapter.ResourceAdapterBase |
ResourceAdapterBase.SimpleAccountIterator |
Nested classes inherited from class com.waveset.adapter.ResourceAdapter |
ResourceAdapter.ActionResult, ResourceAdapter.Features, ResourceAdapter.ObjectType |
Field Summary | |
static java.lang.String |
code_id
|
static java.lang.String |
DISPLAY_PASSWORD
|
static java.lang.String |
DISPLAY_USER
|
static java.lang.String |
GCOS_ATTR_CARDIN
|
static java.lang.String |
GCOS_ATTR_LLINKS
|
static java.lang.String |
GCOS_ATTR_LLINKS_USED
|
static java.lang.String |
GCOS_ATTR_LODS
|
static java.lang.String |
GCOS_ATTR_LODX
|
static java.lang.String |
GCOS_ATTR_RESOURCES
|
static java.lang.String |
GCOS_ATTR_RESOURCES_USED
|
static java.lang.String |
GCOS_ATTR_TALK
|
static java.lang.String |
LOGIN_PASSWORD
|
static java.lang.String |
LOGIN_USER
|
static java.lang.String |
RA_CONN_TYPE
|
static java.lang.String |
RA_CREATE_BATCH_COMMANDS
|
static java.lang.String |
RA_FIRST_PASSWORD
|
static java.lang.String |
RA_HOST
|
static java.lang.String |
RA_LOGIN_SHELL_PROMPT
|
static java.lang.String |
RA_LOGIN_USER
|
static java.lang.String |
RA_MAST_PASSWORD
|
static java.lang.String |
RA_PASSWORD_PROMPT
|
static java.lang.String |
RA_PORT
|
static java.lang.String |
RA_SECOND_PASSWORD
|
static java.lang.String |
RA_SYSTEM_NAME
|
static java.lang.String |
RA_TRACE
|
static java.lang.String |
RA_TSS_COMMAND
|
static java.lang.String |
RA_VOLSET
|
static java.lang.String |
RESOURCE_LOGIN_MODULE
|
static java.lang.String |
RESOURCE_NAME
|
static java.lang.String |
RESOURCE_USER_FORM
|
Fields inherited from class com.waveset.adapter.GenericScriptResourceAdapter |
conn, RA_BLOCK_FETCH_TIMEOUT, RA_CONN_MAX, RA_CONN_TIMEOUT, RA_LOGIN_PASSWORD, RA_TERM |
Fields inherited from class com.waveset.adapter.ResourceAdapterBase |
_cache, _context, _excludedAccountsRule, _excludedAccountsRuleInited, _listAllObjectsAttrParse, _listAllObjectsAttrParseName, _listUserAttrParse, _listUserAttrParseName, _listUserGroupsAttrParse, _listUserGroupsAttrParseName, _resource, _thread, _trace, displayInfoCode, RA_BLOCKCOUNT, RA_LOGIN_ACTION, RA_LOGOFF_ACTION, RA_MULTI_VALUED_ATTRS, RA_TEST_MODE |
Constructor Summary | |
GCOSResourceAdapter()
|
|
GCOSResourceAdapter(Resource res,
ObjectCache cache)
Constructor |
Method Summary | |
protected void |
addAttribute(WSUser user,
java.lang.String attrName,
java.lang.Object attrValue)
|
protected void |
buildPriority(java.lang.String priStr,
WSUser user)
Give a priority string (see buildUser comment), add the CARDIN(maximum urgency of 10), LODS, LODX, TALK attributes if they are in the schema map. |
protected WSUser |
buildUser(java.lang.String userStr,
WSUser targetUser)
Build a WSUser from the output of the "smc uid" command. |
protected java.lang.String |
constructUserAttributeParameter(java.lang.String key,
java.lang.String value)
Builds up a single user attribute value suitable for shell commands, given the parameter key and value. |
Resource |
createPrototypeResource()
Non-static version of staticCreatePrototypeResource() |
protected AccountIterator |
getAccountIteratorResult(CaptureList captureList)
Generates an account iterator from the capture list that was built from running the getAccountIteratorScript generated script through the ScriptedConnection. |
protected Script |
getAccountIteratorScript()
Returns a script that can be run on an opened and logged in ScriptedConnection to pull a list of users out of the system. |
protected WavesetResult |
getAuthenticateResult(java.util.HashMap loginInfo,
CaptureList captureList)
Takes the capture list from running the authenticate script through the resource and validates it. |
protected Script |
getAuthenticateScript(java.util.HashMap loginInfo)
Generates a script for authenticating a user on the resource using the username and password in the loginInfo HashMap. |
protected java.lang.String |
getCardinMax(java.lang.String cardin)
Parse out the cardin string returning an appropriate string for stuffing in a resource attribute. |
protected WavesetResult |
getCheckCreateAccountResult(CaptureList captureList)
Validates the capture list returned from the check create account script execution. |
protected Script |
getCheckCreateAccountScript()
Returns a shell script to check the resource and determine if a create account request is likely to succeed. |
protected WavesetResult |
getCheckDeleteAccountResult(CaptureList captureList)
Validates the capture list returned from the delete create account script execution. |
protected Script |
getCheckDeleteAccountScript()
Returns a shell script to check the resource and determine if a delete account request is likely to succeed. |
protected WavesetResult |
getCheckUpdateAccountResult(CaptureList captureList)
Validates the capture list returned from the check update account script execution. |
protected Script |
getCheckUpdateAccountScript()
Returns a shell script to check the resource and determine if an update account request is likely to succeed. |
protected java.lang.String |
getConnectionType()
Returns the scripted connection type of the resource. |
protected void |
getCreateUserResult(CaptureList captureList,
WavesetResult result)
The capture list has three entries: - output from the immediate JRN command (abnornal or normal termination) - list output from JOUT (pretty useless) - details output from eprint 12 which seems to always be any errors |
protected Script |
getCreateUserScript(WSUser user)
Generates a script that will create an account for the passed user on the resource. |
protected void |
getDeleteUserResult(CaptureList captureList)
Analyzes the capture list generated by executing the delete user script on the scripted connection. |
protected Script |
getDeleteUserScript(WSUser user)
Generates a script that will delete the account of the passed user on the resource. |
protected boolean |
getDisableUserResult(CaptureList captureList)
Analyzes the capture list generated by executing the disable user script on the scripted connection. |
protected Script |
getDisableUserScript(WSUser user,
java.lang.String password)
Generates a script that will disable an account for the passed user on the resource. |
protected boolean |
getEnableUserResult(CaptureList captureList)
Analyzes the capture list generated by executing the enable user script on the scripted connection. |
protected Script |
getEnableUserScript(WSUser user,
java.lang.String password)
Generates a script that will enable an account for the passed user on the resource. |
GenericObject |
getFeatures()
Doesn't support listAllObjects of accounts. |
protected Script |
getLoginScript()
Returns a script that will log the administrative user into the system and set up the shell if necessary. |
protected Script |
getLogoutScript()
Returns a script that will log the administrative user out of the resource. |
protected ScriptedConnection |
getScriptedConnection()
Creates and returns a ScriptedConnection to the resource. |
protected WavesetResult |
getTestConnectionResult(CaptureList captureList)
Evaluates capture list from execution of generic test connection script. |
protected Script |
getTestConnectionScript()
Creates a script to test the connection, does NOT login or logout. |
protected void |
getUpdateUserResult(WSUser user,
CaptureList captureList,
WavesetResult result)
Analyzes the capture list generated by executing the update user script on the scripted connection. |
protected Script |
getUpdateUserScript(WSUser user,
java.lang.String password)
The user gets updated in two phases - the first is the systems access rights (LODX, LODS, CARDIN, TALK), called the "priority" in GCOS land. |
protected WSUser |
getUserResult(CaptureList captureList,
WSUser targetUser)
Analyzes the capture list generated by executing the get user script on the scripted connection. |
protected Script |
getUserScript(WSUser user)
Returns a script that sends commands to check for existence of the passed user on the resource. |
protected boolean |
isAllowableUserAttribute(java.lang.String name)
Tests whether a given attribute name is legal on the resource. |
static void |
main(java.lang.String[] args)
|
protected void |
startConnection()
Starts a scripted connection up and logs into it. |
static Resource |
staticCreatePrototypeResource()
Creates a resource based on the prototype xml. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String RA_CONN_TYPE
public static final java.lang.String RA_HOST
public static final java.lang.String RA_PORT
public static final java.lang.String RA_LOGIN_USER
public static final java.lang.String RA_FIRST_PASSWORD
public static final java.lang.String RA_SECOND_PASSWORD
public static final java.lang.String RA_MAST_PASSWORD
public static final java.lang.String RA_PASSWORD_PROMPT
public static final java.lang.String RA_TSS_COMMAND
public static final java.lang.String RA_SYSTEM_NAME
public static final java.lang.String RA_VOLSET
public static final java.lang.String GCOS_ATTR_LODX
public static final java.lang.String GCOS_ATTR_LODS
public static final java.lang.String GCOS_ATTR_CARDIN
public static final java.lang.String GCOS_ATTR_TALK
public static final java.lang.String GCOS_ATTR_LLINKS
public static final java.lang.String GCOS_ATTR_LLINKS_USED
public static final java.lang.String GCOS_ATTR_RESOURCES
public static final java.lang.String GCOS_ATTR_RESOURCES_USED
public static final java.lang.String RA_LOGIN_SHELL_PROMPT
public static final java.lang.String RA_CREATE_BATCH_COMMANDS
public static final java.lang.String RA_TRACE
public static final java.lang.String LOGIN_USER
public static final java.lang.String LOGIN_PASSWORD
public static final java.lang.String DISPLAY_USER
public static final java.lang.String DISPLAY_PASSWORD
public static final java.lang.String RESOURCE_NAME
public static final java.lang.String RESOURCE_USER_FORM
public static final java.lang.String RESOURCE_LOGIN_MODULE
Constructor Detail |
public GCOSResourceAdapter()
public GCOSResourceAdapter(Resource res, ObjectCache cache)
Method Detail |
public Resource createPrototypeResource() throws WavesetException
createPrototypeResource
in interface ResourceAdapter
createPrototypeResource
in class ResourceAdapterBase
WavesetException
public static Resource staticCreatePrototypeResource() throws WavesetException
WavesetException
protected Script getTestConnectionScript() throws WavesetException
WavesetException
protected WavesetResult getTestConnectionResult(CaptureList captureList) throws WavesetException
WavesetException
protected void getDeleteUserResult(CaptureList captureList) throws WavesetException
GenericScriptResourceAdapter
getDeleteUserResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getDeleteUserScript(WSUser user) throws WavesetException
GenericScriptResourceAdapter
getDeleteUserScript
in class GenericScriptResourceAdapter
WavesetException
protected Script getCreateUserScript(WSUser user) throws WavesetException
getCreateUserScript
in class GenericScriptResourceAdapter
WavesetException
protected void getCreateUserResult(CaptureList captureList, WavesetResult result) throws WavesetException
getCreateUserResult
in class GenericScriptResourceAdapter
WavesetException
protected WavesetResult getAuthenticateResult(java.util.HashMap loginInfo, CaptureList captureList) throws WavesetException
GenericScriptResourceAdapter
getAuthenticateResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getDisableUserScript(WSUser user, java.lang.String password) throws WavesetException
GenericScriptResourceAdapter
getDisableUserScript
in class GenericScriptResourceAdapter
WavesetException
protected void getUpdateUserResult(WSUser user, CaptureList captureList, WavesetResult result) throws WavesetException
GenericScriptResourceAdapter
getUpdateUserResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getLoginScript() throws WavesetException
getLoginScript
in class GenericScriptResourceAdapter
WavesetException
protected Script getAuthenticateScript(java.util.HashMap loginInfo) throws WavesetException
GenericScriptResourceAdapter
getAuthenticateScript
in class GenericScriptResourceAdapter
WavesetException
protected boolean getEnableUserResult(CaptureList captureList) throws WavesetException
GenericScriptResourceAdapter
getEnableUserResult
in class GenericScriptResourceAdapter
WavesetException
protected java.lang.String constructUserAttributeParameter(java.lang.String key, java.lang.String value)
GenericScriptResourceAdapter
constructUserAttributeParameter
in class GenericScriptResourceAdapter
protected Script getUserScript(WSUser user) throws WavesetException
GenericScriptResourceAdapter
getUserScript
in class GenericScriptResourceAdapter
WavesetException
protected void addAttribute(WSUser user, java.lang.String attrName, java.lang.Object attrValue)
protected java.lang.String getCardinMax(java.lang.String cardin)
protected void buildPriority(java.lang.String priStr, WSUser user)
protected WSUser buildUser(java.lang.String userStr, WSUser targetUser) throws WavesetException
WavesetException
protected WSUser getUserResult(CaptureList captureList, WSUser targetUser) throws WavesetException
getUserResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getLogoutScript() throws WavesetException
GenericScriptResourceAdapter
getLogoutScript
in class GenericScriptResourceAdapter
WavesetException
protected boolean isAllowableUserAttribute(java.lang.String name)
GenericScriptResourceAdapter
isAllowableUserAttribute
in class GenericScriptResourceAdapter
protected Script getAccountIteratorScript()
GenericScriptResourceAdapter
getAccountIteratorScript
in class GenericScriptResourceAdapter
protected WavesetResult getCheckDeleteAccountResult(CaptureList captureList) throws WavesetException
getCheckDeleteAccountResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getCheckDeleteAccountScript() throws WavesetException
getCheckDeleteAccountScript
in class GenericScriptResourceAdapter
WavesetException
protected WavesetResult getCheckUpdateAccountResult(CaptureList captureList) throws WavesetException
getCheckUpdateAccountResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getCheckUpdateAccountScript() throws WavesetException
getCheckUpdateAccountScript
in class GenericScriptResourceAdapter
WavesetException
protected java.lang.String getConnectionType() throws WavesetException
getConnectionType
in class GenericScriptResourceAdapter
WavesetException
protected WavesetResult getCheckCreateAccountResult(CaptureList captureList) throws WavesetException
getCheckCreateAccountResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getCheckCreateAccountScript() throws WavesetException
getCheckCreateAccountScript
in class GenericScriptResourceAdapter
WavesetException
protected AccountIterator getAccountIteratorResult(CaptureList captureList)
GenericScriptResourceAdapter
getAccountIteratorResult
in class GenericScriptResourceAdapter
protected Script getUpdateUserScript(WSUser user, java.lang.String password) throws WavesetException
getUpdateUserScript
in class GenericScriptResourceAdapter
WavesetException
protected boolean getDisableUserResult(CaptureList captureList) throws WavesetException
GenericScriptResourceAdapter
getDisableUserResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getEnableUserScript(WSUser user, java.lang.String password) throws WavesetException
GenericScriptResourceAdapter
getEnableUserScript
in class GenericScriptResourceAdapter
WavesetException
public GenericObject getFeatures()
getFeatures
in interface ResourceAdapter
getFeatures
in class GenericScriptResourceAdapter
protected ScriptedConnection getScriptedConnection() throws WavesetException
getScriptedConnection
in class GenericScriptResourceAdapter
WavesetException
protected void startConnection() throws WavesetException
startConnection
in class GenericScriptResourceAdapter
WavesetException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |