|
||||||||||
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.NSKResourceAdapter
Resource adapter for a Compaq (Tandem) NonStop Kernel Operating System. The hardware platform is Himalaya, although I think that NSK will run on other Compaq (Tandem) platforms. There are 2 OS interfaces/personalities that are available on NSK: Guardian and Open System Services (OSS). Guardian is the native environment and OSS is a Unix like environment that supports POSIX in compliance with XPG4. There is also a security tool (SafeGuard) that provides extra security features for the NSK. These features are available on both Guardian and OSS interfaces. Supports two sets of user attributes. 1. Native Guardian 2. Safeguard
Nested Class Summary | |
protected class |
NSKResourceAdapter.AcctIter
AccountIterator implementation that can be built by construction from the output of "safecom info user". |
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 |
ACCOUNT_ID_MAPNAME
|
static java.lang.String |
ACCOUNT_ID_NAME
|
static java.lang.String |
ADMIN_GROUP_MAPNAME
|
static java.lang.String |
ADMIN_GROUP_NAME
|
static java.lang.String |
code_id
|
static java.lang.String |
GROUP_ID_MAPNAME
|
static java.lang.String |
GROUP_ID_NAME
|
static java.lang.String |
OWNER_GROUP_NUM_MAPNAME
|
static java.lang.String |
OWNER_GROUP_NUM_NAME
|
static java.lang.String |
OWNER_USER_NUM_MAPNAME
|
static java.lang.String |
OWNER_USER_NUM_NAME
|
static java.lang.String |
RA_ADMIN_PASSWORD
Resource attribute name of the admin user's password variable. |
static java.lang.String |
RA_ADMIN_USER
Resource attribute name of the account name used to connect to the resource. |
static java.lang.String |
RA_CONN_TYPE
Resource attribute name of the scripted connection type variable. |
static java.lang.String |
RA_CREATE_DIR
Resource attribute name of the variable asking whether to make a users home directory when creating a user. |
static java.lang.String |
RA_HOST
Resource attribute name of the host used to communicate with the resource. |
static java.lang.String |
RA_PORT
Resource attribute name of the variable holding the port on which to communicate to the resource. |
static java.lang.String |
RA_TACL_PROMPT
Resource attribute name of the shell prompt character. |
static java.lang.String |
RESOURCE_NAME
|
static java.lang.String |
USER_ID_MAPNAME
|
static java.lang.String |
USER_ID_NAME
|
static java.lang.String |
USER_MAPNAME
|
static java.lang.String |
USER_NAME
|
Fields inherited from class com.waveset.adapter.GenericScriptResourceAdapter |
CLASS, conn, RA_BLOCK_FETCH_TIMEOUT, RA_CONN_MAX, RA_CONN_TIMEOUT, RA_LOGIN_PASSWORD, RA_LOGIN_USER, 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 | |
NSKResourceAdapter()
No argument constructor. |
|
NSKResourceAdapter(Resource res,
ObjectCache cache)
Constructor. |
Method Summary | |
protected java.lang.String |
constructUserAttributeParameter(java.lang.String key,
java.lang.String value)
Builds up a single user attribute value suitable for shell commands. |
protected java.lang.String |
constructUserAttributeParameters(WSUser user)
Builds a list of parameters appropriate for the resource to either create or update users. |
Resource |
createPrototypeResource()
|
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 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 check delete 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 update create 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)
Analyzes the capture list generated by executing the create user script on the scripted connection. |
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. |
java.lang.String |
getLoginPasswordAttrName()
|
protected Script |
getLoginScript()
Returns a script that will log the administrative user into the system and set up the shell if necessary. |
java.lang.String |
getLoginUserAttrName()
|
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)
Generates a script that will create an account for the passed user on the resource. |
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)
Reports whether a given attribute name is legal on the resource. |
protected void |
startConnection()
Starts a scripted connection up and logs into it. |
static Resource |
staticCreatePrototypeResource()
Creates a resource based on the prototype xml. |
boolean |
supportsAccountDisable()
Whether we support account enable and disable through the resource. |
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_TACL_PROMPT
public static final java.lang.String RA_ADMIN_USER
public static final java.lang.String RA_ADMIN_PASSWORD
public static final java.lang.String RA_CREATE_DIR
public static final java.lang.String RESOURCE_NAME
public static final java.lang.String ACCOUNT_ID_NAME
public static final java.lang.String ACCOUNT_ID_MAPNAME
public static final java.lang.String USER_ID_NAME
public static final java.lang.String USER_ID_MAPNAME
public static final java.lang.String GROUP_ID_NAME
public static final java.lang.String GROUP_ID_MAPNAME
public static final java.lang.String OWNER_GROUP_NUM_NAME
public static final java.lang.String OWNER_GROUP_NUM_MAPNAME
public static final java.lang.String OWNER_USER_NUM_NAME
public static final java.lang.String OWNER_USER_NUM_MAPNAME
public static final java.lang.String ADMIN_GROUP_NAME
public static final java.lang.String ADMIN_GROUP_MAPNAME
public static final java.lang.String USER_MAPNAME
public static final java.lang.String USER_NAME
Constructor Detail |
public NSKResourceAdapter()
public NSKResourceAdapter(Resource res, ObjectCache cache)
Method Detail |
public static Resource staticCreatePrototypeResource() throws WavesetException
WavesetException
public Resource createPrototypeResource() throws WavesetException
createPrototypeResource
in interface ResourceAdapter
createPrototypeResource
in class ResourceAdapterBase
WavesetException
public java.lang.String getLoginUserAttrName()
public java.lang.String getLoginPasswordAttrName()
protected java.lang.String constructUserAttributeParameter(java.lang.String key, java.lang.String value)
constructUserAttributeParameter
in class GenericScriptResourceAdapter
key
- - the account attribute name (not the map name)value
- - attribute value
protected java.lang.String constructUserAttributeParameters(WSUser user)
constructUserAttributeParameters
in class GenericScriptResourceAdapter
protected AccountIterator getAccountIteratorResult(CaptureList captureList)
getAccountIteratorResult
in class GenericScriptResourceAdapter
protected Script getAccountIteratorScript()
getAccountIteratorScript
in class GenericScriptResourceAdapter
protected WavesetResult getAuthenticateResult(java.util.HashMap loginInfo, CaptureList captureList) throws WavesetException
getAuthenticateResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getAuthenticateScript(java.util.HashMap loginInfo) throws WavesetException
getAuthenticateScript
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 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 void getCreateUserResult(CaptureList captureList, WavesetResult result) throws WavesetException
getCreateUserResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getCreateUserScript(WSUser user) throws WavesetException
getCreateUserScript
in class GenericScriptResourceAdapter
WavesetException
protected void getDeleteUserResult(CaptureList captureList) throws WavesetException
getDeleteUserResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getDeleteUserScript(WSUser user) throws WavesetException
getDeleteUserScript
in class GenericScriptResourceAdapter
WavesetException
protected boolean getDisableUserResult(CaptureList captureList) throws WavesetException
getDisableUserResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getDisableUserScript(WSUser user, java.lang.String password) throws WavesetException
getDisableUserScript
in class GenericScriptResourceAdapter
WavesetException
protected boolean getEnableUserResult(CaptureList captureList) throws WavesetException
getEnableUserResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getEnableUserScript(WSUser user, java.lang.String password) throws WavesetException
getEnableUserScript
in class GenericScriptResourceAdapter
WavesetException
protected Script getLoginScript() throws WavesetException
getLoginScript
in class GenericScriptResourceAdapter
WavesetException
protected Script getLogoutScript() throws WavesetException
getLogoutScript
in class GenericScriptResourceAdapter
WavesetException
protected ScriptedConnection getScriptedConnection() throws WavesetException
getScriptedConnection
in class GenericScriptResourceAdapter
WavesetException
protected WavesetResult getTestConnectionResult(CaptureList captureList) throws WavesetException
WavesetException
protected Script getTestConnectionScript() throws WavesetException
WavesetException
protected void getUpdateUserResult(WSUser user, CaptureList captureList, WavesetResult result) throws WavesetException
getUpdateUserResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getUpdateUserScript(WSUser user, java.lang.String password) throws WavesetException
getUpdateUserScript
in class GenericScriptResourceAdapter
WavesetException
protected WSUser getUserResult(CaptureList captureList, WSUser targetUser) throws WavesetException
getUserResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getUserScript(WSUser user) throws WavesetException
getUserScript
in class GenericScriptResourceAdapter
WavesetException
protected boolean isAllowableUserAttribute(java.lang.String name)
isAllowableUserAttribute
in class GenericScriptResourceAdapter
protected void startConnection() throws WavesetException
startConnection
in class GenericScriptResourceAdapter
WavesetException
public boolean supportsAccountDisable()
supportsAccountDisable
in interface ResourceAdapter
supportsAccountDisable
in class ResourceAdapterBase
public GenericObject getFeatures()
getFeatures
in interface ResourceAdapter
getFeatures
in class GenericScriptResourceAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |