|
||||||||||
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.UnixResourceAdapter
Nested Class Summary |
Nested classes inherited from class com.waveset.adapter.GenericScriptResourceAdapter |
GenericScriptResourceAdapter.AcctIter |
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 | |
protected static java.lang.String |
CMD_AWK
|
protected static java.lang.String |
CMD_CAT
|
protected static java.lang.String |
CMD_CHMOD
|
protected static java.lang.String |
CMD_CHOWN
|
protected static java.lang.String |
CMD_CP
|
protected static java.lang.String |
CMD_CUT
|
protected static java.lang.String |
CMD_DIFF
|
protected static java.lang.String |
CMD_ECHO
|
protected static java.lang.String |
CMD_GREP
|
protected static java.lang.String |
CMD_GROUPADD
|
protected static java.lang.String |
CMD_GROUPDEL
|
protected static java.lang.String |
CMD_GROUPMOD
|
protected static java.lang.String |
CMD_LAST
|
protected static java.lang.String |
CMD_LISTUSERS
|
protected static java.lang.String |
CMD_LOGINS
|
protected static java.lang.String |
CMD_LS
|
protected static java.lang.String |
CMD_MAKE
|
protected static java.lang.String |
CMD_MV
|
protected static java.lang.String |
CMD_PASSWD
|
protected static java.lang.String |
CMD_RM
|
protected static java.lang.String |
CMD_SED
|
protected static java.lang.String |
CMD_SLEEP
|
protected static java.lang.String |
CMD_SORT
|
protected static java.lang.String |
CMD_SUDO
|
protected static java.lang.String |
CMD_TAIL
|
protected static java.lang.String |
CMD_TOUCH
|
protected static java.lang.String |
CMD_USERADD
|
protected static java.lang.String |
CMD_USERDEL
|
protected static java.lang.String |
CMD_USERMOD
|
protected static java.lang.String |
CMD_WHICH
|
protected static java.lang.String |
CMD_YPCAT
|
protected static java.lang.String |
CMD_YPMATCH
|
protected static java.lang.String |
CMD_YPPASSWD
|
static java.lang.String |
code_id
|
protected java.lang.String |
loginPass
|
protected java.lang.String |
loginShellPrompt
|
protected java.lang.String |
loginUser
|
protected static java.lang.String |
ONE_TAIL
|
static java.lang.String |
RA_ALT_ROOT_SHELL_PROMPT
|
static java.lang.String |
RA_DEL_HOME_DIR
|
static java.lang.String |
RA_HOME_BASEDIR
|
static java.lang.String |
RA_LOGIN_SHELL_PROMPT
|
static java.lang.String |
RA_NISDIR
|
static java.lang.String |
RA_NISPWDDIR
|
static java.lang.String |
RA_NISSRCDIR
|
static java.lang.String |
RA_ROOT_PASSWORD
|
static java.lang.String |
RA_ROOT_SHELL_PROMPT
|
static java.lang.String |
RA_ROOT_USER
|
static java.lang.String |
RA_SUDO_AUTH
|
static java.lang.String |
RA_SYS_DB_TYPE
|
protected static boolean |
removeAction
|
protected java.lang.String |
rootPass
|
protected ScriptToken.Capture |
rootPromptCaptureToken
|
protected ScriptToken.Capture |
rootPromptCaptureTokenOrig
|
protected ScriptToken.WaitFor |
rootPromptWaitToken
|
protected ScriptToken.WaitFor |
rootPromptWaitTokenOrig
|
protected java.lang.String |
rootShellPrompt
|
protected java.lang.String |
rootShellPromptOrig
|
protected java.lang.String |
rootUser
|
protected java.lang.String |
sudoResetCmd
|
protected ScriptToken.Send |
sudoResetToken
|
protected java.lang.String |
sudoStartCmd
|
protected ScriptToken.Send |
sudoStartToken
|
protected static java.lang.String |
wavesetRootPrompt
|
protected ScriptToken.Capture |
wavesetRootPromptCaptureToken
Deprecated. use new ScriptToken.Capture(wavesetRootPrompt.trim(), getCapture().getTimeout()) instead |
protected ScriptToken.WaitFor |
wavesetRootPromptWaitToken
Deprecated. use new ScriptToken.WaitFor(wavesetRootPrompt.trim(), getWaitFor().getTimeout()) instead |
Fields inherited from class com.waveset.adapter.GenericScriptResourceAdapter |
conn, RA_BLOCK_FETCH_TIMEOUT, RA_CONN_MAX, RA_CONN_TIMEOUT, RA_CONN_TYPE, RA_HOST, RA_LOGIN_PASSWORD, RA_LOGIN_USER, RA_PORT, 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 | |
UnixResourceAdapter()
No argument constructor. |
|
UnixResourceAdapter(Resource res,
ObjectCache cache)
Constructor. |
Method Summary | |
protected void |
addActionScript(java.lang.String action,
Script script,
int timeout,
java.util.Map args)
|
protected void |
addResultItem(WavesetResult result,
java.lang.String type,
java.lang.Object value)
|
protected void |
addScriptArguments(Script script,
java.util.Map args)
|
protected Script |
addSudoReset(Script script)
|
protected Script |
addSudoStart(Script script)
|
WavesetResult |
authenticate(java.util.HashMap loginInfo)
Authenticates the user represented in the loginInfo. |
protected static ResourceAttribute |
createResourceAttr(java.lang.String attrName,
java.lang.String displayName,
java.lang.String desc,
java.lang.String type,
boolean multi,
java.lang.Object value)
Generates a ResourceAttribute suitable for insertion into the prototype XML structure. |
static java.util.Collection |
divideString(java.lang.String stringToDivide,
char delim,
boolean trimTokens)
A utility method that breaks up a String into an Collection of Strings by cutting at each delimiter. |
protected java.lang.String |
escape(java.lang.String s)
|
protected void |
getAccountActionResult(CaptureList captureList,
WavesetResult result)
|
Script |
getAccountActionScript(java.lang.String action,
WSUser user,
java.lang.String operation,
int timeout)
|
AccountIterator |
getAccountIterator()
Override the GenericScriptResourceAdapter method Returns an account iterator containing all of the users on the resource. |
AccountIterator |
getAccountIterator(long timeout)
Note: Overrides the method in GenericScriptAdapter. |
protected void |
getActionResult(CaptureList captureList,
WavesetResult result)
|
protected Script |
getActionScript(java.lang.String action,
int timeout,
java.util.Map args)
|
protected void |
getCaptureItem(CaptureList captureList,
int index,
WavesetResult result,
java.lang.String type)
|
protected abstract WavesetResult |
getConnectionTestResult(CaptureList captureList)
|
protected abstract Script |
getConnectionTestScript()
|
protected java.lang.String |
getConnectionType()
Returns the scripted connection type of the resource. |
protected WavesetResult |
getCreateGroupResult(CaptureList captureList)
|
protected Script |
getCreateGroupScript(java.lang.String groupName,
GenericObject attrs,
java.util.Map options,
boolean isSaveAs)
Returns a script which will create a group. |
protected Script |
getCreateNativeGroupScript(java.lang.String groupName,
GenericObject attrs,
java.util.Map options,
boolean isSaveAs)
|
protected Script |
getCreateNativeUserScript(WSUser user,
java.lang.String accountID,
java.lang.String password)
|
protected Script |
getCreateNISGroupScript(java.lang.String groupName,
GenericObject attrs,
java.util.Map options,
boolean isSaveAs)
|
protected Script |
getCreateNISUserScript(WSUser user,
java.lang.String accountID,
java.lang.String password)
|
protected WavesetResult |
getCreateObjectResult(GenericObject object,
java.util.Map options,
CaptureList captureList)
Analyzes the captuure list generated by executing the listObjects script on the scripted connection. |
protected Script |
getCreateObjectScript(GenericObject object,
java.util.Map options)
Returns a script which will create an object of a specified type from the scriptedConnection. |
protected WavesetResult |
getCreateUserResult(CaptureList captureList)
|
protected Script |
getCreateUserScript(java.lang.String userName,
GenericObject attrs,
java.util.Map options,
boolean isSaveAs)
Returns a script which will create an user account. |
protected Script |
getCreateUserScript(WSUser user)
Generates a script that will create an account for the passed user on the resource. |
protected java.util.List |
getDefaultShellsList()
|
protected Script |
getDeleteGroupScript(GenericObject object,
java.util.Map options)
Generates a script that will delete a group on the resource. |
protected Script |
getDeleteNativeGroupScript(GenericObject object,
java.util.Map options)
|
protected Script |
getDeleteNativeUserScript(WSUser user,
java.lang.String accountID)
|
protected Script |
getDeleteNISGroupScript(GenericObject object,
java.util.Map options)
|
protected Script |
getDeleteNISUserScript(WSUser user,
java.lang.String accountID)
|
protected Script |
getDeleteObjectScript(GenericObject object,
java.util.Map options)
Returns a script which will delete an object of a specified type from the scriptedConnection. |
protected Script |
getDeleteUserScript(GenericObject object,
java.util.Map options)
Returns a script which will delete an user account. |
protected Script |
getDeleteUserScript(WSUser user)
Generates a script that will delete the account of the passed user on the resource. |
protected GenericObject |
getGetGroupResult(java.lang.String objectName,
java.util.List attrsToGet,
CaptureList captureList)
|
protected Script |
getGetGroupScript(java.lang.String objectId,
java.util.List attrsToGet,
java.util.Map options)
Returns a script which will retrieve a group's attributes. |
protected GenericObject |
getGetObjectResult(java.lang.String objectType,
java.lang.String objectId,
java.util.List attrsToGet,
CaptureList captureList)
Analyzes the capture list generated by executing the getObject script on the scripted connection. |
protected Script |
getGetObjectScript(java.lang.String objectType,
java.lang.String objectId,
java.util.List attrsToGet,
java.util.Map options)
Returns a script which will retrieve the attributes of an object of the specified type from the scriptedConnection. |
protected GenericObject |
getGetUserResult(java.lang.String objectName,
java.util.List attrsToGet,
CaptureList captureList)
|
protected Script |
getGetUserScript(java.lang.String objectId,
java.util.List attrsToGet,
java.util.Map options)
Returns a script which will retrieve a user's account attributes. |
protected java.util.List |
getListObjectsResult(java.lang.String objectType,
java.util.Map options,
CaptureList captureList)
Analyzes the capture list generated by executing the listObjects script on the scripted connection. |
protected Script |
getListObjectsScript(java.lang.String resObjType,
java.util.Map options)
Returns a script which will return a list of objects of a specified type from the scriptedConnection. |
protected java.util.ArrayList |
getReadOnlyNISTestCmds()
|
protected java.util.ArrayList |
getReadOnlyTestCmds()
Dynamic list of commands to test for permissions to execute. |
protected WavesetResult |
getRenameGroupResult(GenericObject object,
CaptureList captureList)
|
protected Script |
getRenameGroupScript(GenericObject object)
Returns a script which will rename a group. |
protected WavesetResult |
getRenameObjectResult(GenericObject object,
CaptureList captureList)
Analyzes the capture list generated by executing the renameObject script on the scripted connection. |
protected Script |
getRenameObjectScript(GenericObject object)
Returns a script which will rename an object with the specified changes from the scriptedConnection. |
protected WavesetResult |
getRenameUserResult(GenericObject object,
CaptureList captureList)
|
protected Script |
getRenameUserScript(GenericObject object)
Returns a script which will rename a user account. |
protected java.util.ArrayList |
getRequiredCmds()
Creates a list of required commands for the resource. |
protected java.util.ArrayList |
getRequiredFileCmds()
The list of required file commands for all unix adapters. |
protected java.util.ArrayList |
getRequiredGroupCmds()
The list of required group commands for all unix adapters. |
protected java.util.ArrayList |
getRequiredNISCmds()
The list of required file commands for all unix adapters. |
protected java.util.ArrayList |
getRequiredUserCmds()
The list of required user commands for all unix adapters. |
java.util.List |
getResourceAccounts(java.util.List attributes)
|
protected ScriptedConnection |
getScriptedConnection()
Creates and returns a ScriptedConnection to the resource. |
protected Script |
getShellsScript(Script script)
|
protected WavesetResult |
getTestConfigurationResult(CaptureList list)
Validates the configuration provided to the resource. |
protected Script |
getTestConfigurationScript()
Returns a shell script to check the resource and determine if the configuration information is correct. |
protected WavesetResult |
getUpdateGroupResult(GenericObject object,
CaptureList captureList)
|
protected Script |
getUpdateGroupScript(GenericObject object)
Returns a script which will update a group. |
protected Script |
getUpdateNativeGroupScript(GenericObject object)
Returns a script which will update a group. |
protected Script |
getUpdateNativeUserScript(WSUser user,
java.lang.String accountID,
java.lang.String newName,
java.lang.String password)
|
protected Script |
getUpdateNISGroupScript(GenericObject object)
Returns a script which will update a group. |
protected Script |
getUpdateNISUserScript(WSUser user,
java.lang.String accountID,
java.lang.String newName,
java.lang.String password)
|
protected WavesetResult |
getUpdateObjectResult(GenericObject object,
java.util.Map options,
CaptureList captureList)
Analyzes the capture list generated by executing the updateObject script on the scripted connection. |
protected Script |
getUpdateObjectScript(GenericObject object,
java.util.Map options)
Returns a script which will update an object with the specified changes from the scriptedConnection. |
protected WavesetResult |
getUpdateUserResult(GenericObject object,
CaptureList captureList)
|
protected Script |
getUpdateUserScript(GenericObject object)
Returns a script which will update a user account. |
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 java.lang.String |
getWhichScript(java.util.ArrayList req)
Returns the actual which command statement used to send to the resource to determine the existance of the required commands. |
protected void |
init()
Initialize the resource fields. |
boolean |
isNIS()
|
protected java.lang.String |
quoteString(java.lang.String s)
Quote strings with single quotes. |
protected java.lang.String |
replaceSpaces(java.lang.String s,
java.lang.String replacement)
|
protected void |
setWavesetPrompt()
|
protected void |
startConnection()
Starts a scripted connection up and logs into it. |
protected void |
stopConnection()
Logs out of a scripted connection and disconnects. |
protected void |
stopConnection(boolean force)
|
protected boolean |
sudoAuthorization()
|
boolean |
supportsActions()
|
boolean |
supportsCaseInsensitiveAccountIds()
This method will return whether the resource adapter supports case insensitive account Ids or not. |
boolean |
supportsExcludedAccounts()
|
protected WavesetResult |
testConnection(ScriptedConnection connection)
|
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_LOGIN_SHELL_PROMPT
public static final java.lang.String RA_ROOT_PASSWORD
public static final java.lang.String RA_ROOT_SHELL_PROMPT
public static final java.lang.String RA_ALT_ROOT_SHELL_PROMPT
public static final java.lang.String RA_ROOT_USER
public static final java.lang.String RA_SUDO_AUTH
public static final java.lang.String RA_HOME_BASEDIR
public static final java.lang.String RA_DEL_HOME_DIR
public static final java.lang.String RA_SYS_DB_TYPE
public static final java.lang.String RA_NISDIR
public static final java.lang.String RA_NISSRCDIR
public static final java.lang.String RA_NISPWDDIR
protected java.lang.String loginUser
protected java.lang.String loginPass
protected java.lang.String loginShellPrompt
protected java.lang.String rootUser
protected java.lang.String rootPass
protected java.lang.String rootShellPrompt
protected java.lang.String rootShellPromptOrig
protected ScriptToken.WaitFor rootPromptWaitToken
protected ScriptToken.WaitFor rootPromptWaitTokenOrig
protected ScriptToken.Capture rootPromptCaptureToken
protected ScriptToken.Capture rootPromptCaptureTokenOrig
protected static final java.lang.String wavesetRootPrompt
protected ScriptToken.WaitFor wavesetRootPromptWaitToken
protected ScriptToken.Capture wavesetRootPromptCaptureToken
protected static boolean removeAction
protected ScriptToken.Send sudoResetToken
protected ScriptToken.Send sudoStartToken
protected final java.lang.String sudoResetCmd
protected final java.lang.String sudoStartCmd
protected static final java.lang.String CMD_WHICH
protected static final java.lang.String CMD_SUDO
protected static final java.lang.String CMD_USERADD
protected static final java.lang.String CMD_USERMOD
protected static final java.lang.String CMD_USERDEL
protected static final java.lang.String CMD_GROUPADD
protected static final java.lang.String CMD_GROUPMOD
protected static final java.lang.String CMD_GROUPDEL
protected static final java.lang.String CMD_PASSWD
protected static final java.lang.String CMD_LOGINS
protected static final java.lang.String CMD_LISTUSERS
protected static final java.lang.String CMD_LS
protected static final java.lang.String CMD_CP
protected static final java.lang.String CMD_MV
protected static final java.lang.String CMD_RM
protected static final java.lang.String CMD_AWK
protected static final java.lang.String CMD_SED
protected static final java.lang.String CMD_CAT
protected static final java.lang.String CMD_TOUCH
protected static final java.lang.String CMD_GREP
protected static final java.lang.String CMD_CHOWN
protected static final java.lang.String CMD_CHMOD
protected static final java.lang.String CMD_LAST
protected static final java.lang.String CMD_TAIL
protected static final java.lang.String CMD_ECHO
protected static final java.lang.String CMD_DIFF
protected static final java.lang.String CMD_SORT
protected static final java.lang.String CMD_CUT
protected static final java.lang.String CMD_SLEEP
protected static final java.lang.String CMD_MAKE
protected static final java.lang.String ONE_TAIL
protected static final java.lang.String CMD_YPCAT
protected static final java.lang.String CMD_YPMATCH
protected static final java.lang.String CMD_YPPASSWD
Constructor Detail |
public UnixResourceAdapter(Resource res, ObjectCache cache)
public UnixResourceAdapter()
Method Detail |
protected void init() throws WavesetException
WavesetException
protected void setWavesetPrompt()
public boolean supportsActions()
supportsActions
in interface ResourceAdapter
supportsActions
in class ResourceAdapterBase
public boolean supportsCaseInsensitiveAccountIds()
ResourceAdapterBase
supportsCaseInsensitiveAccountIds
in interface ResourceAdapter
supportsCaseInsensitiveAccountIds
in class ResourceAdapterBase
public boolean supportsExcludedAccounts()
supportsExcludedAccounts
in interface ResourceAdapter
supportsExcludedAccounts
in class ResourceAdapterBase
protected void addResultItem(WavesetResult result, java.lang.String type, java.lang.Object value)
protected java.lang.String getConnectionType() throws WavesetException
getConnectionType
in class GenericScriptResourceAdapter
WavesetException
protected ScriptedConnection getScriptedConnection() throws WavesetException
getScriptedConnection
in class GenericScriptResourceAdapter
WavesetException
protected void startConnection() throws WavesetException
GenericScriptResourceAdapter
startConnection
in class GenericScriptResourceAdapter
WavesetException
protected void stopConnection(boolean force) throws WavesetException
WavesetException
protected void stopConnection() throws WavesetException
GenericScriptResourceAdapter
stopConnection
in class GenericScriptResourceAdapter
WavesetException
protected boolean sudoAuthorization()
protected Script addSudoStart(Script script)
protected Script addSudoReset(Script script)
public boolean isNIS()
public WavesetResult authenticate(java.util.HashMap loginInfo) throws WavesetException
authenticate
in interface ResourceAdapter
authenticate
in class GenericScriptResourceAdapter
WavesetException
protected abstract Script getConnectionTestScript() throws WavesetException
WavesetException
protected abstract WavesetResult getConnectionTestResult(CaptureList captureList) throws WavesetException
WavesetException
protected WavesetResult testConnection(ScriptedConnection connection) throws WavesetException
WavesetException
protected void getCaptureItem(CaptureList captureList, int index, WavesetResult result, java.lang.String type)
protected void getActionResult(CaptureList captureList, WavesetResult result)
getActionResult
in class GenericScriptResourceAdapter
protected Script getActionScript(java.lang.String action, int timeout, java.util.Map args)
getActionScript
in class GenericScriptResourceAdapter
protected void addScriptArguments(Script script, java.util.Map args)
protected void addActionScript(java.lang.String action, Script script, int timeout, java.util.Map args)
protected java.lang.String escape(java.lang.String s)
protected void getAccountActionResult(CaptureList captureList, WavesetResult result)
getAccountActionResult
in class GenericScriptResourceAdapter
public Script getAccountActionScript(java.lang.String action, WSUser user, java.lang.String operation, int timeout) throws WavesetException
getAccountActionScript
in class GenericScriptResourceAdapter
WavesetException
protected java.lang.String replaceSpaces(java.lang.String s, java.lang.String replacement)
protected java.lang.String quoteString(java.lang.String s)
public static java.util.Collection divideString(java.lang.String stringToDivide, char delim, boolean trimTokens)
protected Script getListObjectsScript(java.lang.String resObjType, java.util.Map options) throws WavesetException
GenericScriptResourceAdapter
getListObjectsScript
in class GenericScriptResourceAdapter
WavesetException
protected java.util.List getListObjectsResult(java.lang.String objectType, java.util.Map options, CaptureList captureList) throws WavesetException
getListObjectsResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getGetGroupScript(java.lang.String objectId, java.util.List attrsToGet, java.util.Map options) throws WavesetException
WavesetException
protected Script getGetUserScript(java.lang.String objectId, java.util.List attrsToGet, java.util.Map options) throws WavesetException
WavesetException
protected Script getGetObjectScript(java.lang.String objectType, java.lang.String objectId, java.util.List attrsToGet, java.util.Map options) throws WavesetException
getGetObjectScript
in class GenericScriptResourceAdapter
WavesetException
protected GenericObject getGetUserResult(java.lang.String objectName, java.util.List attrsToGet, CaptureList captureList) throws WavesetException
WavesetException
protected GenericObject getGetGroupResult(java.lang.String objectName, java.util.List attrsToGet, CaptureList captureList) throws WavesetException
WavesetException
protected GenericObject getGetObjectResult(java.lang.String objectType, java.lang.String objectId, java.util.List attrsToGet, CaptureList captureList) throws WavesetException
getGetObjectResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getCreateGroupScript(java.lang.String groupName, GenericObject attrs, java.util.Map options, boolean isSaveAs) throws WavesetException
WavesetException
protected Script getCreateNativeGroupScript(java.lang.String groupName, GenericObject attrs, java.util.Map options, boolean isSaveAs) throws WavesetException
WavesetException
protected Script getCreateNISGroupScript(java.lang.String groupName, GenericObject attrs, java.util.Map options, boolean isSaveAs) throws WavesetException
WavesetException
protected Script getCreateUserScript(java.lang.String userName, GenericObject attrs, java.util.Map options, boolean isSaveAs) throws WavesetException
WavesetException
protected Script getCreateUserScript(WSUser user) throws WavesetException
getCreateUserScript
in class GenericScriptResourceAdapter
WavesetException
protected Script getCreateNativeUserScript(WSUser user, java.lang.String accountID, java.lang.String password) throws WavesetException
WavesetException
protected Script getCreateNISUserScript(WSUser user, java.lang.String accountID, java.lang.String password) throws WavesetException
WavesetException
protected Script getCreateObjectScript(GenericObject object, java.util.Map options) throws WavesetException
getCreateObjectScript
in class GenericScriptResourceAdapter
WavesetException
protected WavesetResult getCreateGroupResult(CaptureList captureList) throws WavesetException
WavesetException
protected WavesetResult getCreateUserResult(CaptureList captureList) throws WavesetException
WavesetException
protected WavesetResult getCreateObjectResult(GenericObject object, java.util.Map options, CaptureList captureList) throws WavesetException
getCreateObjectResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getDeleteGroupScript(GenericObject object, java.util.Map options) throws WavesetException
WavesetException
protected Script getDeleteNativeGroupScript(GenericObject object, java.util.Map options) throws WavesetException
WavesetException
protected Script getDeleteNISGroupScript(GenericObject object, java.util.Map options) throws WavesetException
WavesetException
protected Script getDeleteUserScript(WSUser user) throws WavesetException
getDeleteUserScript
in class GenericScriptResourceAdapter
WavesetException
protected Script getDeleteNativeUserScript(WSUser user, java.lang.String accountID) throws WavesetException
WavesetException
protected Script getDeleteNISUserScript(WSUser user, java.lang.String accountID) throws WavesetException
WavesetException
protected Script getDeleteUserScript(GenericObject object, java.util.Map options) throws WavesetException
WavesetException
protected Script getDeleteObjectScript(GenericObject object, java.util.Map options) throws WavesetException
getDeleteObjectScript
in class GenericScriptResourceAdapter
WavesetException
protected Script getUpdateGroupScript(GenericObject object) throws WavesetException
WavesetException
protected Script getUpdateNativeGroupScript(GenericObject object) throws WavesetException
WavesetException
protected Script getUpdateNISGroupScript(GenericObject object) throws WavesetException
WavesetException
protected Script getUpdateUserScript(GenericObject object) throws WavesetException
WavesetException
protected Script getUpdateUserScript(WSUser user, java.lang.String password) throws WavesetException
getUpdateUserScript
in class GenericScriptResourceAdapter
WavesetException
protected Script getUpdateNativeUserScript(WSUser user, java.lang.String accountID, java.lang.String newName, java.lang.String password) throws WavesetException
WavesetException
protected Script getUpdateNISUserScript(WSUser user, java.lang.String accountID, java.lang.String newName, java.lang.String password) throws WavesetException
WavesetException
protected Script getUpdateObjectScript(GenericObject object, java.util.Map options) throws WavesetException
getUpdateObjectScript
in class GenericScriptResourceAdapter
WavesetException
protected WavesetResult getUpdateGroupResult(GenericObject object, CaptureList captureList) throws WavesetException
WavesetException
protected WavesetResult getUpdateUserResult(GenericObject object, CaptureList captureList) throws WavesetException
WavesetException
protected WavesetResult getUpdateObjectResult(GenericObject object, java.util.Map options, CaptureList captureList) throws WavesetException
getUpdateObjectResult
in class GenericScriptResourceAdapter
WavesetException
protected Script getRenameGroupScript(GenericObject object) throws WavesetException
WavesetException
protected Script getRenameUserScript(GenericObject object) throws WavesetException
WavesetException
protected Script getRenameObjectScript(GenericObject object) throws WavesetException
getRenameObjectScript
in class GenericScriptResourceAdapter
WavesetException
protected WavesetResult getRenameGroupResult(GenericObject object, CaptureList captureList) throws WavesetException
WavesetException
protected WavesetResult getRenameUserResult(GenericObject object, CaptureList captureList) throws WavesetException
WavesetException
protected WavesetResult getRenameObjectResult(GenericObject object, CaptureList captureList) throws WavesetException
getRenameObjectResult
in class GenericScriptResourceAdapter
WavesetException
public java.util.List getResourceAccounts(java.util.List attributes) throws WavesetException
getResourceAccounts
in interface ResourceAdapter
getResourceAccounts
in class GenericScriptResourceAdapter
attributes
- a list of attribute names whose values are to
be returned with the account object.
WavesetException
protected static ResourceAttribute createResourceAttr(java.lang.String attrName, java.lang.String displayName, java.lang.String desc, java.lang.String type, boolean multi, java.lang.Object value)
protected java.util.ArrayList getRequiredUserCmds()
protected java.util.ArrayList getRequiredGroupCmds()
protected java.util.ArrayList getRequiredFileCmds()
protected java.util.ArrayList getRequiredNISCmds()
protected java.util.ArrayList getRequiredCmds()
protected java.util.ArrayList getReadOnlyTestCmds()
protected java.util.ArrayList getReadOnlyNISTestCmds()
protected java.lang.String getWhichScript(java.util.ArrayList req)
req
- List of required commands
protected Script getTestConfigurationScript() throws WavesetException
GenericScriptResourceAdapter
getTestConfigurationScript
in class GenericScriptResourceAdapter
WavesetException
protected WavesetResult getTestConfigurationResult(CaptureList list) throws WavesetException
GenericScriptResourceAdapter
getTestConfigurationResult
in class GenericScriptResourceAdapter
WavesetException
public AccountIterator getAccountIterator() throws WavesetException
getAccountIterator
in interface ResourceAdapter
getAccountIterator
in class GenericScriptResourceAdapter
WavesetException
public AccountIterator getAccountIterator(long timeout) throws WavesetException
getAccountIterator
in interface ResourceAdapter
getAccountIterator
in class GenericScriptResourceAdapter
WavesetException
protected Script getShellsScript(Script script)
protected java.util.List getDefaultShellsList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |