|
||||||||||
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.AccessManagerResourceAdapter
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 | |
static java.lang.String |
code_id
|
static java.lang.String |
RA_ADMIN
Resource attribute name for admin account. |
static java.lang.String |
RA_CONFIG_URL
Resource attribute name for the config URL. |
static java.lang.String |
RA_DELETE_FROM_RGY
|
static java.lang.String |
RA_LISTRGYNAME
|
static java.lang.String |
RA_MAXRETURN
|
static java.lang.String |
RA_PASSWORD
Resource attribute name for the admin password. |
static java.lang.String |
RA_PATTERN
|
static java.lang.String |
RA_SYNC_GSO_CREDS
Resource attribute name for syncing TAM GSO passwords |
static java.lang.String |
TAM_DELETE_FROM_RGY_ATTR_NAME
|
static java.lang.String |
TAM_DESCRIPTION_ATTR_NAME
description is not currently supported on create |
static java.lang.String |
TAM_EXPIRE_PWD_ATTR_NAME
|
static java.lang.String |
TAM_FIRST_NAME_ATTR_NAME
|
static java.lang.String |
TAM_GROUP_LIST_ATTR_NAME
|
static java.lang.String |
TAM_GSO_GROUP_CREDS_ATTR_NAME
|
static java.lang.String |
TAM_GSO_WEB_CREDS_ATTR_NAME
|
static java.lang.String |
TAM_IMPORT_FROM_RGY_ATTR_NAME
|
static java.lang.String |
TAM_LAST_NAME_ATTR_NAME
|
static java.lang.String |
TAM_NO_PWD_POLICY_ATTR_NAME
|
static java.lang.String |
TAM_REGISTRY_UID_ATTR_NAME
|
static java.lang.String |
TAM_SSO_USER_ATTR_NAME
|
static java.lang.String |
TAM_SYNC_GSO_CREDS_ATTR_NAME
|
static java.lang.String |
TAM_USER_LIST_ATTR_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 | |
AccessManagerResourceAdapter()
|
|
AccessManagerResourceAdapter(Resource res,
ObjectCache cache)
|
Method Summary | |
WavesetResult |
authenticate(java.util.HashMap loginInfo)
Authenticates the user against the resource. |
WavesetResult |
checkCreateAccount(WSUser user)
|
WavesetResult |
checkDeleteAccount(WSUser user)
|
WavesetResult |
checkUpdateAccount(WSUser user)
|
WavesetResult |
createObject(GenericObject object,
java.util.Map options)
Creates the specified objectId of type objectType using the list of attributes provided. |
Resource |
createPrototypeResource()
|
WavesetResult |
deleteObject(GenericObject object,
java.util.Map options)
Deletes the requested objectId of the requested objectType from the resource |
java.lang.String |
getCredKey(java.lang.String cred)
Gets cred key (cred resource name) |
java.util.ArrayList |
getCredKeys(java.util.ArrayList creds)
Returns array of cred keys (cred resource names) |
GenericObject |
getObject(java.lang.String objectType,
java.lang.String objectId,
java.util.List attrsToGet,
java.util.Map options)
Returns the requested objectId of the requested objectType from the resource |
WSUser |
getUser(WSUser user)
Retrieves account information from the resource for the specified WSUser and returns a new WSUser based on the information from the resource. |
protected void |
handlePDException(java.lang.Exception e)
Deprecated. see #handlePDException( PDException ) |
protected static void |
handlePDException(com.tivoli.pd.jutil.PDException pd)
|
java.util.ArrayList |
listAllObjects(java.lang.String resourceObjectType,
java.util.Map options,
java.lang.String runAsUser,
EncryptedData runAsPassword)
Return all objects of specific type. |
java.util.List |
listObjects(java.lang.String resourceObjectType,
java.util.Map options)
Return all objects of specific type. |
protected static WavesetResult |
processMessages(com.tivoli.pd.jutil.PDMessages msgs,
WavesetResult result)
|
protected WavesetResult |
processMsgs(java.lang.String method,
com.tivoli.pd.jutil.PDMessages msgs,
WavesetResult result)
|
protected void |
realCreate(WSUser user,
WavesetResult result)
Needs to be overridden by subclass if default createAccounts() implementation is used. |
protected void |
realDelete(WSUser user,
WavesetResult result)
Needs to be overridden by subclass if default deleteAccounts() implementation is used. |
protected void |
realDisable(WSUser user,
WavesetResult result)
Sets TAM Account Disabled and ResourceInfo Disabled 'true' |
protected void |
realEnable(WSUser user,
WavesetResult result)
Sets TAM Account Enabled and ResourceInfo Disabled 'false' |
protected void |
realUpdate(WSUser user,
WavesetResult result)
Needs to be overridden by subclass if default updateAccounts() implementation is used. |
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()
Whether the resource can enable and disable accounts. |
protected WavesetResult |
testConnection(WavesetResult result)
|
WavesetResult |
updateObject(GenericObject object,
java.util.Map options)
Updates the specified objectId of type objectType using the list of attributes provided. |
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_ADMIN
public static final java.lang.String RA_PASSWORD
public static final java.lang.String RA_CONFIG_URL
public static final java.lang.String RA_DELETE_FROM_RGY
public static final java.lang.String RA_SYNC_GSO_CREDS
public static final java.lang.String RA_PATTERN
public static final java.lang.String RA_MAXRETURN
public static final java.lang.String RA_LISTRGYNAME
public static final java.lang.String TAM_REGISTRY_UID_ATTR_NAME
public static final java.lang.String TAM_FIRST_NAME_ATTR_NAME
public static final java.lang.String TAM_LAST_NAME_ATTR_NAME
public static final java.lang.String TAM_DESCRIPTION_ATTR_NAME
public static final java.lang.String TAM_GROUP_LIST_ATTR_NAME
public static final java.lang.String TAM_USER_LIST_ATTR_NAME
public static final java.lang.String TAM_SSO_USER_ATTR_NAME
public static final java.lang.String TAM_NO_PWD_POLICY_ATTR_NAME
public static final java.lang.String TAM_EXPIRE_PWD_ATTR_NAME
public static final java.lang.String TAM_DELETE_FROM_RGY_ATTR_NAME
public static final java.lang.String TAM_SYNC_GSO_CREDS_ATTR_NAME
public static final java.lang.String TAM_IMPORT_FROM_RGY_ATTR_NAME
public static final java.lang.String TAM_GSO_WEB_CREDS_ATTR_NAME
public static final java.lang.String TAM_GSO_GROUP_CREDS_ATTR_NAME
Constructor Detail |
public AccessManagerResourceAdapter(Resource res, ObjectCache cache)
public AccessManagerResourceAdapter()
Method Detail |
public static Resource staticCreatePrototypeResource() throws WavesetException
WavesetException
public Resource createPrototypeResource() throws WavesetException
createPrototypeResource
in interface ResourceAdapter
createPrototypeResource
in class ResourceAdapterBase
WavesetException
public WSUser getUser(WSUser user) throws WavesetException
ResourceAdapter
getUser
in interface ResourceAdapter
getUser
in class ResourceAdapterBase
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
ResourceAdapterBase
realCreate
in class ResourceAdapterBase
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 java.util.ArrayList getCredKeys(java.util.ArrayList creds) throws WavesetException
creds
-
WavesetException
public java.lang.String getCredKey(java.lang.String cred) throws WavesetException
cred
-
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
public WavesetResult authenticate(java.util.HashMap loginInfo) throws WavesetException
ResourceAdapter
authenticate
in interface ResourceAdapter
authenticate
in class ResourceAdapterBase
WavesetException
protected WavesetResult testConnection(WavesetResult result) throws WavesetException
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 handlePDException(java.lang.Exception e) throws WavesetException
e
-
WavesetException
protected static void handlePDException(com.tivoli.pd.jutil.PDException pd) throws WavesetException
WavesetException
protected WavesetResult processMsgs(java.lang.String method, com.tivoli.pd.jutil.PDMessages msgs, WavesetResult result)
protected static WavesetResult processMessages(com.tivoli.pd.jutil.PDMessages msgs, WavesetResult result)
public java.util.ArrayList listAllObjects(java.lang.String resourceObjectType, java.util.Map options, java.lang.String runAsUser, EncryptedData runAsPassword) throws WavesetException
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(ObjectType.ACCOUNT, null, null, null)
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 java.util.List listObjects(java.lang.String resourceObjectType, java.util.Map options) throws WavesetException
listObjects
in interface ResourceAdapter
listObjects
in class ResourceAdapterBase
WavesetException
public GenericObject getObject(java.lang.String objectType, java.lang.String objectId, java.util.List attrsToGet, java.util.Map options) throws WavesetException
getObject
in interface ResourceAdapter
getObject
in class ResourceAdapterBase
objectId
- - a valid fully qualified object identifier on this resource
(e.g. "dn")attrsToGet
- - a list of attribute names supported by the specified objectType
to be returned with the objectoptions
- - not currently used since the objectId/objectType provide a unique
identifier of the object being requestedobjectType
- - a valid object type defined in the resource's
WavesetException
public WavesetResult createObject(GenericObject object, java.util.Map options) throws WavesetException
createObject
in interface ResourceAdapter
createObject
in class ResourceAdapterBase
options
- - several options can be specified which control the behavior of the search
for referenced objects (e.g. group members)
They include:
object
- - a GenericObject containing the objectType, objectId, and
list of attributes to be set on the new object
WavesetException
public WavesetResult deleteObject(GenericObject object, java.util.Map options) throws WavesetException
deleteObject
in interface ResourceAdapter
deleteObject
in class ResourceAdapterBase
options
- - not currently used since the objectId/objectType provide a unique
identifier of the object being deleted
WavesetException
public WavesetResult updateObject(GenericObject object, java.util.Map options) throws WavesetException
updateObject
in interface ResourceAdapter
updateObject
in class ResourceAdapterBase
options
- - several options can be specified which control the behavior of the search
for referenced objects (e.g. group members)
They include:
object
- - a GenericObject containing the objectType, objectId, and
list of new and changed attributes to be set on the object
WavesetException
public boolean supportsAccountDisable()
supportsAccountDisable
in interface ResourceAdapter
supportsAccountDisable
in class ResourceAdapterBase
protected void realEnable(WSUser user, WavesetResult result) throws WavesetException
realEnable
in class ResourceAdapterBase
user
- the user to Enable
WavesetException
- if ENABLED failsprotected void realDisable(WSUser user, WavesetResult result) throws WavesetException
realDisable
in class ResourceAdapterBase
user
- the user to Disable
WavesetException
- if DISABLED fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |