|
||||||||||
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.HostAccessResourceAdapter
com.waveset.adapter.RACFResourceAdapter
Nested Class Summary |
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 HostAccess |
_hostAccess
|
protected static java.util.Set |
_quotedAttributeValues
Set of attributes whose values are always quoted. |
protected static java.util.Map |
_supportedSegments
|
protected java.lang.String[] |
_warnMessagesUpdate
|
static java.lang.String |
ATTRIBUTES
|
static java.lang.String |
CATALOG_ALIAS
|
static java.lang.String |
code_id
|
static java.lang.String |
EXPIRED
|
static java.lang.String |
GROUP_CONN_OWNERS
|
static java.lang.String |
GROUPS
|
static java.lang.String |
MASTER_CATALOG
|
static java.lang.String |
PASSWORD_INTERVAL
|
static java.lang.String |
PASSWORD_INTERVAL_DEFAULT
|
static java.lang.String |
PASSWORD_NOINTERVAL
|
static java.lang.String |
RA_AFFINITY_LIST
The account name used to connect to the resource. |
static java.lang.String |
RA_CICS_SEGMENT_ATTR_PARSE
|
static java.lang.String |
RA_HOST
Resource attributes are the common names that will be visible in the GUI that will prompt the user for values. |
static java.lang.String |
RA_IDLETIMEOUT
|
static java.lang.String |
RA_LIST_TIMEOUT
|
static java.lang.String |
RA_LISTUSER_ATTR_PARSE
|
static java.lang.String |
RA_NETVIEW_SEGMENT_ATTR_PARSE
|
static java.lang.String |
RA_OMVS_SEGMENT_ATTR_PARSE
|
static java.lang.String |
RA_PORT
The port on which to communicate to the resource. |
static java.lang.String |
RA_TIMEOUT
|
static java.lang.String |
RA_TSO_SEGMENT_ATTR_PARSE
|
protected static java.lang.String |
RACF_MORE
|
protected static java.lang.String |
RACF_PROMPT
|
protected static java.lang.String |
SEGMENT_SEPARATOR
|
protected static java.lang.String |
TSO_MORE
|
protected static java.lang.String |
TSO_PROMPT
|
static java.lang.String |
USER_CATALOG
|
protected static java.lang.String |
USER_TYPE
|
static java.lang.String |
USERID
|
Fields inherited from class com.waveset.adapter.HostAccessResourceAdapter |
HOST_ACCESS_GLOBAL_NAME, JAVASCRIPT_GLOBALS_ACTION_PROPERTY, USER_ATTRS_GLOBAL_NAME, USER_IDENTITY_GLOBAL_NAME |
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 | |
RACFResourceAdapter()
|
|
RACFResourceAdapter(Resource res,
ObjectCache cache)
|
Method Summary | |
protected void |
addCatalogAliasAndDSRules(WSUser user)
|
protected void |
addDatasetRules(WSUser user)
|
protected java.lang.String |
addEol(java.lang.String s,
java.lang.String eol,
int width)
|
protected void |
addUserToGroup(WSUser user,
java.lang.String group,
java.lang.String groupOwner)
|
protected void |
addUserToGroups(WSUser user,
java.util.Set groups,
WavesetResult result)
|
protected void |
addUserToGroups(WSUser user,
java.util.TreeMap groups,
WavesetResult result)
|
protected void |
addUserToGroups(WSUser user,
WavesetResult result)
|
WavesetResult |
authenticate(java.util.HashMap loginInfo)
Authenticates the user against the resource. |
WavesetResult |
checkCreateAccount(WSUser user)
Checks to see if an account can be created. |
WavesetResult |
checkDeleteAccount(WSUser user)
|
WavesetResult |
checkUpdateAccount(WSUser user)
|
java.lang.String |
createIdentity(WSUser user)
Override base class' createIdentity to always uppercase the identity since RACF will upper case the user ID anyway. |
Resource |
createPrototypeResource()
|
protected void |
deleteCatalogAlias(java.lang.String identity,
WavesetResult result)
|
protected void |
deleteDatasetProfile(java.lang.String identity,
WavesetResult result)
|
WSAttributes |
getAccountAttributes(java.lang.String accountIdentity)
This method is obsolete. |
java.util.List |
getAffinityList()
|
protected void |
getCatalogAttr(java.lang.String resp,
java.lang.String label,
java.lang.String attr,
java.util.Map map)
|
protected void |
getCatalogAttrs(java.lang.String identity,
java.util.Map map)
|
protected java.lang.String |
getDefaultGroup(WSUser user)
|
GenericObject |
getFeatures()
Indicates what functionality the resource adapter supports. |
protected java.util.TreeMap |
getGroups(WSUser user)
Get the GROUPS and GROUP_CONN_OWNERS from the user and build a map with the group name as the key and the owner as the value. |
java.lang.String |
getHost()
|
protected HostAccess |
getHostAccess()
|
int |
getIdleTimeout()
|
java.lang.String |
getKey()
|
int |
getMaxConnections()
|
java.lang.String |
getPort()
|
java.util.Properties |
getProperties()
|
int |
getRequestTimeout()
|
protected void |
getSegmentAttrs(java.lang.String identity,
java.util.Map map)
|
java.lang.String |
getUser()
|
WSUser |
getUser(WSUser user)
Retrieve information about an account, and package it as a WSUser object. |
protected void |
initSupportedSegments()
|
protected static boolean |
isValidTsoAccountName(java.lang.String name)
|
java.util.ArrayList |
listAllObjects(java.lang.String resourceObjectType,
java.util.Map options,
java.lang.String runAsUser,
EncryptedData runAsPassword)
This method will return a list of object names of the specified object type. |
void |
login(HostAccess hostAccess)
|
void |
login(HostAccess hostAccess,
ServerAffinity affinity)
|
void |
logoff(HostAccess hostAccess)
|
static void |
main(java.lang.String[] args)
|
protected java.lang.String |
processResponse(java.lang.String resp,
java.lang.String[] warnMessages,
WavesetResult result)
|
protected void |
quoteValue(java.lang.StringBuffer b,
java.lang.String attrName,
java.lang.String value)
|
protected void |
realCreate(WSUser user,
WavesetResult result)
Create a new user account on the resource This method is called by createAccounts (the multiuser create method). |
protected void |
realDelete(WSUser user,
WavesetResult result)
Needs to be overridden by subclass if default deleteAccounts() implementation is used. |
void |
realDisable(WSUser user,
WavesetResult result)
|
void |
realEnable(WSUser user,
WavesetResult result)
|
protected WSUser |
realGetUser(WSUser user)
|
protected void |
realUpdate(WSUser user,
WavesetResult result)
Needs to be overridden by subclass if default updateAccounts() implementation is used. |
protected void |
removeUserFromGroup(WSUser user,
java.lang.String group)
|
protected void |
removeUserFromGroups(WSUser user,
java.util.Set groups,
WavesetResult result)
|
protected WSAttributes |
reverseMap(java.util.Map map)
|
protected void |
setFromResource()
|
protected void |
startConnection()
Needs to be overridden by subclass if default createAccounts() implementation is used. |
static Resource |
staticCreatePrototypeResource()
|
protected void |
stopConnection()
Needs to be overridden by subclass if default createAccounts() implementation is used. |
boolean |
supportsAccountDisable()
Indicates whether or not this resource supports account disable. |
protected java.lang.String |
updateGroups(WSUser newUser,
WavesetResult result)
Updates the user's groups. |
Methods inherited from class com.waveset.adapter.HostAccessResourceAdapter |
filterAndParseData, formatOutputStr, getResourceId, lookupAndRunJavascriptAction, parseDataFromFile, readDataFile, run, runAfterJavascriptAction, runBeforeJavascriptAction, runJavascript, runJavascriptAction, runResourceAttributeJavascriptAction, supportsActions, verifyUsers |
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
protected static java.lang.String RACF_PROMPT
protected static java.lang.String RACF_MORE
protected static java.lang.String TSO_PROMPT
protected static java.lang.String TSO_MORE
protected static final java.lang.String SEGMENT_SEPARATOR
protected static final java.lang.String USER_TYPE
protected HostAccess _hostAccess
protected java.lang.String[] _warnMessagesUpdate
protected static java.util.Set _quotedAttributeValues
public static final java.lang.String RA_HOST
public static final java.lang.String RA_PORT
public static final java.lang.String RA_AFFINITY_LIST
public static final java.lang.String RA_TIMEOUT
public static final java.lang.String RA_IDLETIMEOUT
public static final java.lang.String RA_LIST_TIMEOUT
public static final java.lang.String RA_LISTUSER_ATTR_PARSE
public static final java.lang.String RA_TSO_SEGMENT_ATTR_PARSE
public static final java.lang.String RA_OMVS_SEGMENT_ATTR_PARSE
public static final java.lang.String RA_CICS_SEGMENT_ATTR_PARSE
public static final java.lang.String RA_NETVIEW_SEGMENT_ATTR_PARSE
public static final java.lang.String USER_CATALOG
public static final java.lang.String MASTER_CATALOG
public static final java.lang.String CATALOG_ALIAS
public static final java.lang.String ATTRIBUTES
public static final java.lang.String GROUPS
public static final java.lang.String GROUP_CONN_OWNERS
public static final java.lang.String USERID
public static final java.lang.String EXPIRED
public static final java.lang.String PASSWORD_INTERVAL
public static final java.lang.String PASSWORD_INTERVAL_DEFAULT
public static final java.lang.String PASSWORD_NOINTERVAL
protected static java.util.Map _supportedSegments
Constructor Detail |
public RACFResourceAdapter(Resource res, ObjectCache cache) throws WavesetException
public RACFResourceAdapter() throws WavesetException
Method Detail |
protected void initSupportedSegments() throws WavesetException
WavesetException
public static Resource staticCreatePrototypeResource() throws WavesetException
WavesetException
public Resource createPrototypeResource() throws WavesetException
createPrototypeResource
in interface ResourceAdapter
createPrototypeResource
in class ResourceAdapterBase
WavesetException
protected void setFromResource()
setFromResource
in class ResourceAdapterBase
public java.lang.String createIdentity(WSUser user) throws WavesetException
createIdentity
in interface ResourceAdapter
createIdentity
in class ResourceAdapterBase
WavesetException
protected WSUser realGetUser(WSUser user) throws WavesetException
WavesetException
public WSUser getUser(WSUser user) throws WavesetException
Information required to identify the resource account is supplied in another WSUser object.
The returned user object will resemble the source object, but will have its account attribute list filled in.
Returns "null" if there is no account that corresponds to the user.
getUser
in interface ResourceAdapter
getUser
in class ResourceAdapterBase
WavesetException
protected void getSegmentAttrs(java.lang.String identity, java.util.Map map) throws WavesetException
WavesetException
protected void getCatalogAttrs(java.lang.String identity, java.util.Map map)
protected static boolean isValidTsoAccountName(java.lang.String name)
name
-
protected void getCatalogAttr(java.lang.String resp, java.lang.String label, java.lang.String attr, java.util.Map map)
protected WSAttributes reverseMap(java.util.Map map) throws WavesetException
WavesetException
public WavesetResult checkCreateAccount(WSUser user) throws WavesetException
checkCreateAccount
in interface ResourceAdapter
checkCreateAccount
in class ResourceAdapterBase
WavesetException
protected void realCreate(WSUser user, WavesetResult result) throws WavesetException
realCreate
in class ResourceAdapterBase
WavesetException
protected java.lang.String processResponse(java.lang.String resp, java.lang.String[] warnMessages, WavesetResult result)
protected void addCatalogAliasAndDSRules(WSUser user) throws WavesetException
WavesetException
protected void addDatasetRules(WSUser user) throws WavesetException
WavesetException
protected java.util.TreeMap getGroups(WSUser user) throws WavesetException
WavesetException
protected java.lang.String getDefaultGroup(WSUser user)
protected java.lang.String updateGroups(WSUser newUser, WavesetResult result) throws WavesetException
WavesetException
protected void removeUserFromGroups(WSUser user, java.util.Set groups, WavesetResult result) throws WavesetException
WavesetException
protected void removeUserFromGroup(WSUser user, java.lang.String group) throws WavesetException
WavesetException
protected void addUserToGroups(WSUser user, WavesetResult result) throws WavesetException
WavesetException
protected void addUserToGroups(WSUser user, java.util.TreeMap groups, WavesetResult result) throws WavesetException
WavesetException
protected void addUserToGroups(WSUser user, java.util.Set groups, WavesetResult result) throws WavesetException
WavesetException
protected void addUserToGroup(WSUser user, java.lang.String group, java.lang.String groupOwner) throws WavesetException
WavesetException
public WavesetResult checkUpdateAccount(WSUser user) throws WavesetException
checkUpdateAccount
in interface ResourceAdapter
checkUpdateAccount
in class ResourceAdapterBase
WavesetException
protected void realUpdate(WSUser user, WavesetResult result) throws WavesetException
ResourceAdapterBase
realUpdate
in class ResourceAdapterBase
WavesetException
public WavesetResult checkDeleteAccount(WSUser user) throws WavesetException
checkDeleteAccount
in interface ResourceAdapter
checkDeleteAccount
in class ResourceAdapterBase
WavesetException
protected void realDelete(WSUser user, WavesetResult result) throws WavesetException
ResourceAdapterBase
realDelete
in class ResourceAdapterBase
WavesetException
protected void deleteCatalogAlias(java.lang.String identity, WavesetResult result) throws WavesetException
WavesetException
protected void deleteDatasetProfile(java.lang.String identity, WavesetResult result) throws WavesetException
WavesetException
public WSAttributes getAccountAttributes(java.lang.String accountIdentity) throws WavesetException
ResourceAdapter
getAccountAttributes
in interface ResourceAdapter
getAccountAttributes
in class ResourceAdapterBase
WavesetException
public WavesetResult authenticate(java.util.HashMap loginInfo) throws WavesetException
ResourceAdapter
authenticate
in interface ResourceAdapter
authenticate
in class ResourceAdapterBase
WavesetException
protected void startConnection() throws WavesetException
ResourceAdapterBase
startConnection
in class ResourceAdapterBase
WavesetException
protected void stopConnection() throws WavesetException
ResourceAdapterBase
stopConnection
in class ResourceAdapterBase
WavesetException
protected void quoteValue(java.lang.StringBuffer b, java.lang.String attrName, java.lang.String value)
protected java.lang.String addEol(java.lang.String s, java.lang.String eol, int width)
public boolean supportsAccountDisable()
ResourceAdapter
supportsAccountDisable
in interface ResourceAdapter
supportsAccountDisable
in class ResourceAdapterBase
public void realDisable(WSUser user, WavesetResult result) throws WavesetException
realDisable
in class ResourceAdapterBase
WavesetException
public void realEnable(WSUser user, WavesetResult result) throws WavesetException
realEnable
in class ResourceAdapterBase
WavesetException
public java.util.ArrayList listAllObjects(java.lang.String resourceObjectType, java.util.Map options, java.lang.String runAsUser, EncryptedData runAsPassword) throws WavesetException
ResourceAdapter
listAllObjects
in interface ResourceAdapter
listAllObjects
in class ResourceAdapterBase
resourceObjectType
- -
a type of object that is either well-known or is meaningful to
the resource. Every resource is expected to recognize certain
values. For example, listAllObjects(ACCOUNT)
should return a list of all account names.options
- -
a map of optionsrunAsUser
- -
(optional) if specified, connect as this user to list all
objects of the specified type.runAsPassword
- -
(optional) if specified, connect with this password to list
all objects of the specified type.
WavesetException
public void login(HostAccess hostAccess) throws java.lang.Exception
login
in interface HostAccessLogin
java.lang.Exception
public void login(HostAccess hostAccess, ServerAffinity affinity) throws java.lang.Exception
login
in interface HostAccessLogin
java.lang.Exception
public void logoff(HostAccess hostAccess) throws java.lang.Exception
logoff
in interface HostAccessLogin
java.lang.Exception
public java.lang.String getHost() throws java.lang.Exception
getHost
in interface HostAccessLogin
java.lang.Exception
public java.lang.String getPort() throws java.lang.Exception
getPort
in interface HostAccessLogin
java.lang.Exception
public java.lang.String getUser() throws java.lang.Exception
getUser
in interface HostAccessLogin
java.lang.Exception
public java.util.List getAffinityList() throws java.lang.Exception
getAffinityList
in interface HostAccessLogin
java.lang.Exception
public java.lang.String getKey() throws java.lang.Exception
getKey
in interface HostAccessLogin
java.lang.Exception
public int getRequestTimeout() throws java.lang.Exception
getRequestTimeout
in interface HostAccessLogin
java.lang.Exception
public int getIdleTimeout() throws java.lang.Exception
getIdleTimeout
in interface HostAccessLogin
java.lang.Exception
public java.util.Properties getProperties()
getProperties
in interface HostAccessLogin
public int getMaxConnections()
getMaxConnections
in interface HostAccessLogin
public GenericObject getFeatures()
getFeatures
in interface ResourceAdapter
getFeatures
in class ResourceAdapterBase
ResourceAdapter.Features
protected HostAccess getHostAccess()
getHostAccess
in class HostAccessResourceAdapter
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 |