|
||||||||||
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.ClearTrustResourceAdapter
Nested Class Summary | |
protected class |
ClearTrustResourceAdapter.AcctIter
AccountIterator implementation that can be built by construction from the output of mast smc |
static interface |
ClearTrustResourceAdapter.ObjectType
|
Nested classes inherited from class com.waveset.adapter.ResourceAdapterBase |
ResourceAdapterBase.SimpleAccountIterator |
Nested classes inherited from class com.waveset.adapter.ResourceAdapter |
ResourceAdapter.ActionResult, ResourceAdapter.Features |
Field Summary | |
static java.lang.String |
code_id
|
static java.lang.String |
CT_ADMIN_GROUP_NAME
|
static java.lang.String |
CT_CREATION_DATE
|
static java.lang.String |
CT_EMAIL_ADDRESS
|
static java.lang.String |
CT_END_DATE
|
static java.lang.String |
CT_ENTITLEMENTS
|
static java.lang.String |
CT_EXTERNAL_DN
|
static java.lang.String |
CT_FIRST_NAME
|
static java.lang.String |
CT_IS_ADMIN_ACCOUNT
Attributes for the user |
static java.lang.String |
CT_IS_ADMIN_LOCKOUT
|
static java.lang.String |
CT_IS_SUPER_HELP_DESK
|
static java.lang.String |
CT_IS_SUPERUSER
|
static java.lang.String |
CT_LAST_NAME
|
static java.lang.String |
CT_START_DATE
|
static java.lang.String |
CT_USER_GROUPS
|
static java.lang.String |
CT_USER_PROPERTIES
|
static java.lang.String |
DISPLAY_PASSWORD
|
static java.lang.String |
DISPLAY_USER
|
static java.lang.String |
LOGIN_PASSWORD
|
static java.lang.String |
LOGIN_USER
Pass thru authentication variables. |
static java.lang.String |
RA_ADMIN_GROUP
|
static java.lang.String |
RA_ADMIN_ROLE
|
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_PASSWORD
|
static java.lang.String |
RA_PORT
The port on which to communicate to the resource. |
static java.lang.String |
RA_SSL
|
static java.lang.String |
RA_USER
The account name, group and role used to connect to the resource. |
static java.lang.String |
RESOURCE_NAME
|
static java.lang.String |
RESOURCE_USER_FORM
|
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 | |
ClearTrustResourceAdapter()
|
|
ClearTrustResourceAdapter(Resource res,
ObjectCache cache)
|
Method Summary | |
protected void |
addAttrIfMapped(WSUser user,
java.lang.String attrName,
java.lang.Object value)
Add the named attribute and value to the user. |
protected void |
addAttrIfMapped(WSUser user,
java.lang.String attrName,
java.lang.Object[] values)
|
protected void |
addEntitlement(IUser ctUser,
java.lang.String en,
java.util.Map ctApps)
parse out the pieces of the entitlement, set them on the user |
protected void |
addEntitlementsToUser(IUser ctUser,
java.util.List enToAdd,
java.util.Map ctApps)
|
protected void |
addGroupsToUser(IUser ctUser,
java.util.List groupsToAdd,
java.util.Map ctGroups)
|
WavesetResult |
authenticate(java.util.HashMap loginInfo)
Authenticates the user against the resource. |
protected java.lang.String |
booleanToString(boolean b)
|
WavesetResult |
checkCreateAccount(WSUser user)
Checks to see if an account can be created. |
WavesetResult |
checkDeleteAccount(WSUser user)
|
WavesetResult |
checkUpdateAccount(WSUser user)
|
protected void |
connect()
|
Resource |
createPrototypeResource()
|
protected java.lang.String |
dateToString(java.util.Date d)
|
protected void |
disconnect()
|
protected java.lang.String |
entitlementToString(IExplicitEntitlement ie)
|
WSAttributes |
getAccountAttributes(java.lang.String accountIdentity)
This method is obsolete. |
AccountIterator |
getAccountIterator()
|
protected IAdministrativeGroup |
getAdminGroup(java.lang.String name)
translate an admin group name to the actual admin group object |
protected java.util.ArrayList |
getAdminGroups()
|
protected java.util.ArrayList |
getAPIProxy()
A list of one item - the server proxy item. |
protected java.util.ArrayList |
getApplications()
|
protected java.util.Map |
getCTApplications()
|
protected java.util.ArrayList |
getCTEntitlements(ISparseData data)
|
protected java.util.Map |
getCTEntitlementsMap(ISparseData data)
Return a map of entitlements, keyed by our description (see entitlementToString for the description format) |
protected java.util.Map |
getCTGroups()
|
protected java.util.ArrayList |
getEntitlementDescriptions(ISparseData data)
|
protected java.util.ArrayList |
getGroups()
|
protected int |
getIntRequiredResAttrVal(java.lang.String name)
|
protected java.util.ArrayList |
getNames(ISparseData data)
|
WSUser |
getUser(WSUser user)
Retrieve information about an account, and package it as a WSUser object. |
protected java.util.ArrayList |
getUserProperties()
|
protected java.util.List |
getUserPropertyDefinitions()
|
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. |
protected IUser |
makeClearTrustUser(WSUser wsUser,
java.lang.String name,
java.lang.String password,
IUser ctUser)
From the attributes on the passed-in wsuser, create a ClearTrust user (the caller will then call ctUser.save()). |
protected WSUser |
makeWavesetUser(IUser ctUser)
From a cleartrust user, build our waveset user based on the attributes in our schema map. |
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. |
protected void |
realDisable(WSUser user,
WavesetResult result)
Disables a user, called within a connected context. |
protected void |
realEnable(WSUser user,
WavesetResult result)
Enables a user by setting adminLockout to false |
protected void |
realUpdate(WSUser user,
WavesetResult result)
Needs to be overridden by subclass if default updateAccounts() implementation is used. |
protected void |
removeEntitlement(IUser ctUser,
java.lang.String en,
java.util.Map ctApps,
java.util.Map entitlements)
parse out the pieces of the entitlement, remove it from the user |
protected void |
removeEntitlementsFromUser(IUser ctUser,
java.util.List enToDelete,
java.util.Map ctApps,
java.util.Map enMap)
|
protected void |
removeGroupsFromUser(IUser ctUser,
java.util.List groupsToDelete,
java.util.Map ctGroups)
|
protected WSAttribute |
reverseMapAttr(java.lang.String attr,
java.lang.Object value)
Map from a resource attribute to a waveset attribute. |
protected WSAttribute |
reverseMapAttr(java.lang.String attr,
java.lang.Object[] values)
Map from a resource attribute to a waveset attribute. |
protected void |
reverseMapMultiAttr(java.lang.String attr,
java.lang.Object value,
WSUser user)
Map from a resource attribute to multiple waveset attributes and add them to the user. |
protected void |
setUserEntitlements(IUser ctUser,
WSAttribute attr)
|
protected void |
setUserGroups(IUser ctUser,
WSAttribute attr)
force this user's groups into sync with the attribute values, adding or removing as necessary. |
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. |
protected boolean |
stringToBoolean(java.lang.String s)
|
protected java.util.Date |
stringToDate(java.lang.String s)
|
boolean |
supportsAccountDisable()
If true, must implement realDisable() and realEnable(). |
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_HOST
public static final java.lang.String RA_PORT
public static final java.lang.String RA_SSL
public static final java.lang.String RA_USER
public static final java.lang.String RA_PASSWORD
public static final java.lang.String RA_ADMIN_GROUP
public static final java.lang.String RA_ADMIN_ROLE
public static final java.lang.String CT_IS_ADMIN_ACCOUNT
public static final java.lang.String CT_IS_ADMIN_LOCKOUT
public static final java.lang.String CT_IS_SUPERUSER
public static final java.lang.String CT_IS_SUPER_HELP_DESK
public static final java.lang.String CT_EXTERNAL_DN
public static final java.lang.String CT_EMAIL_ADDRESS
public static final java.lang.String CT_END_DATE
public static final java.lang.String CT_START_DATE
public static final java.lang.String CT_CREATION_DATE
public static final java.lang.String CT_FIRST_NAME
public static final java.lang.String CT_LAST_NAME
public static final java.lang.String CT_ADMIN_GROUP_NAME
public static final java.lang.String CT_ENTITLEMENTS
public static final java.lang.String CT_USER_PROPERTIES
public static final java.lang.String CT_USER_GROUPS
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
Constructor Detail |
public ClearTrustResourceAdapter(Resource res, ObjectCache cache)
public ClearTrustResourceAdapter()
Method Detail |
public static Resource staticCreatePrototypeResource() throws WavesetException
WavesetException
public Resource createPrototypeResource() throws WavesetException
createPrototypeResource
in interface ResourceAdapter
createPrototypeResource
in class ResourceAdapterBase
WavesetException
protected WSAttribute reverseMapAttr(java.lang.String attr, java.lang.Object[] values)
protected WSAttribute reverseMapAttr(java.lang.String attr, java.lang.Object value)
protected void reverseMapMultiAttr(java.lang.String attr, java.lang.Object value, WSUser user)
protected int getIntRequiredResAttrVal(java.lang.String name) throws WavesetException, java.lang.NumberFormatException
WavesetException
java.lang.NumberFormatException
protected void addAttrIfMapped(WSUser user, java.lang.String attrName, java.lang.Object value)
protected void addAttrIfMapped(WSUser user, java.lang.String attrName, java.lang.Object[] values)
protected WSUser makeWavesetUser(IUser ctUser) throws WavesetException
WavesetException
protected IAdministrativeGroup getAdminGroup(java.lang.String name) throws WavesetException
WavesetException
protected IUser makeClearTrustUser(WSUser wsUser, java.lang.String name, java.lang.String password, IUser ctUser) throws WavesetException, APIException, java.io.IOException
WavesetException
APIException
java.io.IOException
protected boolean stringToBoolean(java.lang.String s)
protected java.lang.String booleanToString(boolean b)
protected java.util.Date stringToDate(java.lang.String s) throws WavesetException
WavesetException
protected java.lang.String dateToString(java.util.Date d)
protected void startConnection() throws WavesetException
startConnection
in class ResourceAdapterBase
WavesetException
protected void connect() throws WavesetException
WavesetException
protected void stopConnection() throws WavesetException
stopConnection
in class ResourceAdapterBase
WavesetException
protected void disconnect()
public WSUser getUser(WSUser user) throws WavesetException
Information required to identify the resource account is supplied in another WSUser object.
The returne duser 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
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
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
public WSAttributes getAccountAttributes(java.lang.String accountIdentity) throws WavesetException
ResourceAdapter
getAccountAttributes
in interface ResourceAdapter
getAccountAttributes
in class ResourceAdapterBase
WavesetException
public AccountIterator getAccountIterator() throws WavesetException
getAccountIterator
in interface ResourceAdapter
getAccountIterator
in class ResourceAdapterBase
WavesetException
public WavesetResult authenticate(java.util.HashMap loginInfo) throws WavesetException
authenticate
in interface ResourceAdapter
authenticate
in class ResourceAdapterBase
WavesetException
protected java.util.List getUserPropertyDefinitions() throws WavesetException
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
protected java.util.ArrayList getNames(ISparseData data) throws java.lang.Throwable
java.lang.Throwable
protected java.util.ArrayList getGroups() throws WavesetException
WavesetException
protected java.util.ArrayList getApplications() throws WavesetException
WavesetException
protected java.util.ArrayList getUserProperties() throws WavesetException
WavesetException
protected java.util.ArrayList getAdminGroups() throws WavesetException
WavesetException
protected java.util.ArrayList getAPIProxy() throws WavesetException
WavesetException
protected void setUserGroups(IUser ctUser, WSAttribute attr) throws WavesetException
WavesetException
protected java.util.Map getCTGroups() throws java.lang.Throwable
java.lang.Throwable
protected void addGroupsToUser(IUser ctUser, java.util.List groupsToAdd, java.util.Map ctGroups) throws java.lang.Throwable
java.lang.Throwable
protected void removeGroupsFromUser(IUser ctUser, java.util.List groupsToDelete, java.util.Map ctGroups) throws java.lang.Throwable
java.lang.Throwable
protected java.lang.String entitlementToString(IExplicitEntitlement ie) throws java.lang.Throwable
java.lang.Throwable
protected java.util.ArrayList getEntitlementDescriptions(ISparseData data) throws java.lang.Throwable
java.lang.Throwable
protected java.util.ArrayList getCTEntitlements(ISparseData data) throws java.lang.Throwable
java.lang.Throwable
protected java.util.Map getCTEntitlementsMap(ISparseData data) throws java.lang.Throwable
java.lang.Throwable
protected java.util.Map getCTApplications() throws java.lang.Throwable
java.lang.Throwable
protected void addEntitlement(IUser ctUser, java.lang.String en, java.util.Map ctApps) throws java.lang.Throwable
java.lang.Throwable
protected void removeEntitlement(IUser ctUser, java.lang.String en, java.util.Map ctApps, java.util.Map entitlements) throws java.lang.Throwable
java.lang.Throwable
protected void addEntitlementsToUser(IUser ctUser, java.util.List enToAdd, java.util.Map ctApps) throws java.lang.Throwable
java.lang.Throwable
protected void removeEntitlementsFromUser(IUser ctUser, java.util.List enToDelete, java.util.Map ctApps, java.util.Map enMap) throws java.lang.Throwable
java.lang.Throwable
protected void setUserEntitlements(IUser ctUser, WSAttribute attr) throws WavesetException
WavesetException
public boolean supportsAccountDisable()
supportsAccountDisable
in interface ResourceAdapter
supportsAccountDisable
in class ResourceAdapterBase
protected void realDisable(WSUser user, WavesetResult result) throws WavesetException
realDisable
in class ResourceAdapterBase
WavesetException
protected void realEnable(WSUser user, WavesetResult result) throws WavesetException
realEnable
in class ResourceAdapterBase
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |