com.waveset.adapter
Class ClearTrustResourceAdapter

java.lang.Object
  extended bycom.waveset.adapter.ResourceAdapterBase
      extended bycom.waveset.adapter.ClearTrustResourceAdapter
All Implemented Interfaces:
ResourceAdapter

public class ClearTrustResourceAdapter
extends ResourceAdapterBase


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
 
Fields inherited from interface com.waveset.adapter.ResourceAdapter
CHANGE_PASSWORD_LOCATION, DISABLE, ENABLE, EXPIRE_PASSWORD, GUID, IGNORE_ATTR, NEW_ACCOUNT_ID, OP_DAYS_INACTIVE, OP_DISABLED, OP_DORMANT, OP_EXPIRED, OP_EXPIREDPWD, OP_INACTIVE, OP_LOCKED, OP_NO_PASSWORD_SET, OP_NOOWNERSHIP, OP_NOPASSWORDREQ, OP_NUMINACTIVEDAYS, OP_NUMPWDAYS, OP_PWNUMDAYS, RA_BASE_CTX, RA_DISPLAY_NAME_ATTR, RA_NEW_OBJECT_ID, RA_NEW_OBJECT_NAME, RA_OBJECT_ATTRIBUTES, RA_OBJECT_CLASS, RA_OBJECT_ID, RA_OBJECT_TYPE, RA_OP_TYPE, RA_RENAME_OP, RA_REQUESTOR, RA_SAVEAS_OP, RA_SEARCH_ATTRIBUTE_NAMES, RA_SEARCH_ATTRS_TO_GET, RA_SEARCH_CONTEXT, RA_SEARCH_FILTER, RA_SEARCH_RUN_AS_PASSWORD, RA_SEARCH_RUN_AS_USER, RA_SEARCH_SCOPE, RA_SEARCH_SCOPE_OBJECT, RA_SEARCH_SCOPE_ONE_LEVEL, RA_SEARCH_SCOPE_SUBTREE, RA_SEARCH_TIME_LIMIT, RESET_PASSWORD, SYSTEM_ATTRIBUTES, UNLOCK, WS_USER_PASSWORD
 
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 com.waveset.adapter.ResourceAdapterBase
checkForNoPasswordInSchema, checkSyntax, createAccount, createAccounts, createIdentity, createObject, deleteAccount, deleteAccount, deleteAccounts, deleteObject, disableAccount, disableAccounts, dnsEqual, dnsEqual, enableAccount, enableAccounts, executeResourceAttributeJavascriptAction, fillInResourceInfo, fillInResourceInfo, getAccountIterator, getAccountIterator, getAction, getActionNotFoundErrorMessage, getActionNotFoundMessage, getActionRunAsPassword, getActionRunAsUser, getActionTimeout, getActionType, getAdapter, getAdapter, getAdapter, getAdapterProxy, getAdapterProxy, getAllAccounts, getAttrNameFromMapName, getAttrNameFromMapName, getAttrParse, getAttrTypeFromMapName, getAttrTypeFromMapName, getAUserName, getBaseContextAttrName, getBaseContextObject, getBaseContexts, getBlockSize, getContext, getExcludedAccountsRule, getFeatures, getIdentity, getListAllObjectsAttrParse, getListUserAttrParse, getListUserGroupsAttrParse, getObject, getOptionalBooleanResAttrVal, getOptionalBooleanResAttrVal, getOptionalEncryptedResAttrVal, getOptionalResAttrVal, getOptionalStringResAttrVal, getRequiredResAttr, getRequiredResAttr, getRequiredResAttrVal, getRequiredResAttrVal, getRequiredResAttrVals, getRequiredUserAttributeNames, getResAttrValActionOnUser, getResAttrVals, getResource, getResourceAccounts, getResourceInfo, getResourceObjectAttrValNameAttr, getResourceObjectClassAttr, getResourceObjectTypePrefix, getSchemaMap, getUser, getWSAttrByMapName, getWSAttrByMapName, getWSAttrFromMap, handleActionResult, handleJavascriptActionResult, isAccountAttributeSecret, isExcludedAccount, isExcludedAccount, isFeatureEnabled, isSupported, isTestMode, listAllObjects, listObjects, listObjects, listObjectsOfType, lookupAction, lookupAction, lookupActions, namesEqual, objectClassesMatchType, println, restoreResourceObjectClassAttr, run, run, runResourceAttributeJavascriptAction, scan, setCache, setContext, setDisabled, setFromResource, setResource, setResourceObjectClassAttr, setResourceOptionAttrs, startConnectionWrapper, supportsAccountActions, supportsActions, supportsCaseInsensitiveAccountIds, supportsContainerObjectTypes, supportsExcludedAccounts, supportsResourceAccount, supportsScanning, testConfiguration, updateAccount, updateAccounts, updateObject, updateResourceAccount, updateResourceIdentity, vmStoreBoot, vmStoreGet, vmStoreInit, vmStoreLatch, vmStorePut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

RA_HOST

public static final 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. For example, the GUI will show "host" and have a box next to it for the user to enter a host name. The name of the host used to communicate with the resource.

See Also:
Constant Field Values

RA_PORT

public static final java.lang.String RA_PORT
The port on which to communicate to the resource.

See Also:
Constant Field Values

RA_SSL

public static final java.lang.String RA_SSL
See Also:
Constant Field Values

RA_USER

public static final java.lang.String RA_USER
The account name, group and role used to connect to the resource.

See Also:
Constant Field Values

RA_PASSWORD

public static final java.lang.String RA_PASSWORD
See Also:
Constant Field Values

RA_ADMIN_GROUP

public static final java.lang.String RA_ADMIN_GROUP
See Also:
Constant Field Values

RA_ADMIN_ROLE

public static final java.lang.String RA_ADMIN_ROLE
See Also:
Constant Field Values

CT_IS_ADMIN_ACCOUNT

public static final java.lang.String CT_IS_ADMIN_ACCOUNT
Attributes for the user

See Also:
Constant Field Values

CT_IS_ADMIN_LOCKOUT

public static final java.lang.String CT_IS_ADMIN_LOCKOUT
See Also:
Constant Field Values

CT_IS_SUPERUSER

public static final java.lang.String CT_IS_SUPERUSER
See Also:
Constant Field Values

CT_IS_SUPER_HELP_DESK

public static final java.lang.String CT_IS_SUPER_HELP_DESK
See Also:
Constant Field Values

CT_EXTERNAL_DN

public static final java.lang.String CT_EXTERNAL_DN
See Also:
Constant Field Values

CT_EMAIL_ADDRESS

public static final java.lang.String CT_EMAIL_ADDRESS
See Also:
Constant Field Values

CT_END_DATE

public static final java.lang.String CT_END_DATE
See Also:
Constant Field Values

CT_START_DATE

public static final java.lang.String CT_START_DATE
See Also:
Constant Field Values

CT_CREATION_DATE

public static final java.lang.String CT_CREATION_DATE
See Also:
Constant Field Values

CT_FIRST_NAME

public static final java.lang.String CT_FIRST_NAME
See Also:
Constant Field Values

CT_LAST_NAME

public static final java.lang.String CT_LAST_NAME
See Also:
Constant Field Values

CT_ADMIN_GROUP_NAME

public static final java.lang.String CT_ADMIN_GROUP_NAME
See Also:
Constant Field Values

CT_ENTITLEMENTS

public static final java.lang.String CT_ENTITLEMENTS
See Also:
Constant Field Values

CT_USER_PROPERTIES

public static final java.lang.String CT_USER_PROPERTIES
See Also:
Constant Field Values

CT_USER_GROUPS

public static final java.lang.String CT_USER_GROUPS
See Also:
Constant Field Values

LOGIN_USER

public static final java.lang.String LOGIN_USER
Pass thru authentication variables. Pass thru authentication is a process where a user or administrator can provide an account name and password which will be sent to the resource to be validated. The variables below are used to define the names of the various pieces of the Lighthouse implementation.

See Also:
Constant Field Values

LOGIN_PASSWORD

public static final java.lang.String LOGIN_PASSWORD
See Also:
Constant Field Values

DISPLAY_USER

public static final java.lang.String DISPLAY_USER
See Also:
Constant Field Values

DISPLAY_PASSWORD

public static final java.lang.String DISPLAY_PASSWORD
See Also:
Constant Field Values

RESOURCE_NAME

public static final java.lang.String RESOURCE_NAME
See Also:
Constant Field Values

RESOURCE_USER_FORM

public static final java.lang.String RESOURCE_USER_FORM
See Also:
Constant Field Values
Constructor Detail

ClearTrustResourceAdapter

public ClearTrustResourceAdapter(Resource res,
                                 ObjectCache cache)

ClearTrustResourceAdapter

public ClearTrustResourceAdapter()
Method Detail

staticCreatePrototypeResource

public static Resource staticCreatePrototypeResource()
                                              throws WavesetException
Throws:
WavesetException

createPrototypeResource

public Resource createPrototypeResource()
                                 throws WavesetException
Specified by:
createPrototypeResource in interface ResourceAdapter
Specified by:
createPrototypeResource in class ResourceAdapterBase
Throws:
WavesetException

reverseMapAttr

protected WSAttribute reverseMapAttr(java.lang.String attr,
                                     java.lang.Object[] values)
Map from a resource attribute to a waveset attribute. Return null if there's no mapping.


reverseMapAttr

protected WSAttribute reverseMapAttr(java.lang.String attr,
                                     java.lang.Object value)
Map from a resource attribute to a waveset attribute. Return null if there's no mapping.


reverseMapMultiAttr

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.


getIntRequiredResAttrVal

protected int getIntRequiredResAttrVal(java.lang.String name)
                                throws WavesetException,
                                       java.lang.NumberFormatException
Throws:
WavesetException
java.lang.NumberFormatException

addAttrIfMapped

protected void addAttrIfMapped(WSUser user,
                               java.lang.String attrName,
                               java.lang.Object value)
Add the named attribute and value to the user. Handle null names and values. Also coerse the attribute value into the mapped type, or at least do the best that we can.


addAttrIfMapped

protected void addAttrIfMapped(WSUser user,
                               java.lang.String attrName,
                               java.lang.Object[] values)

makeWavesetUser

protected WSUser makeWavesetUser(IUser ctUser)
                          throws WavesetException
From a cleartrust user, build our waveset user based on the attributes in our schema map.

Throws:
WavesetException

getAdminGroup

protected IAdministrativeGroup getAdminGroup(java.lang.String name)
                                      throws WavesetException
translate an admin group name to the actual admin group object

Throws:
WavesetException

makeClearTrustUser

protected IUser makeClearTrustUser(WSUser wsUser,
                                   java.lang.String name,
                                   java.lang.String password,
                                   IUser ctUser)
                            throws WavesetException,
                                   APIException,
                                   java.io.IOException
From the attributes on the passed-in wsuser, create a ClearTrust user (the caller will then call ctUser.save()). Map any attributes over. This can also be used to update an existing ClearTrust user by passing one in. It will have it's attributes updated and merged, and will be returned (the passed-in instance will be MODIFIED).

Throws:
WavesetException
APIException
java.io.IOException

stringToBoolean

protected boolean stringToBoolean(java.lang.String s)

booleanToString

protected java.lang.String booleanToString(boolean b)

stringToDate

protected java.util.Date stringToDate(java.lang.String s)
                               throws WavesetException
Throws:
WavesetException

dateToString

protected java.lang.String dateToString(java.util.Date d)

startConnection

protected void startConnection()
                        throws WavesetException
Needs to be overridden by subclass if default createAccounts() implementation is used.

Overrides:
startConnection in class ResourceAdapterBase
Throws:
WavesetException

connect

protected void connect()
                throws WavesetException
Throws:
WavesetException

stopConnection

protected void stopConnection()
                       throws WavesetException
Needs to be overridden by subclass if default createAccounts() implementation is used.

Overrides:
stopConnection in class ResourceAdapterBase
Throws:
WavesetException

disconnect

protected void disconnect()

getUser

public WSUser getUser(WSUser user)
               throws WavesetException
Retrieve information about an account, and package it as a WSUser object.

Information required to identify the resource account is supplied in another WSUser object.

The returneduser 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.

Specified by:
getUser in interface ResourceAdapter
Overrides:
getUser in class ResourceAdapterBase
Throws:
WavesetException

checkCreateAccount

public WavesetResult checkCreateAccount(WSUser user)
                                 throws WavesetException
Checks to see if an account can be created. Some of the things that might be checked are as follows: - can basic connectivity to the resource be established? - Do the account attribute values comply with all (if any) resource specific restrictions or policies that haven't been checked at a higher level? Currently there are 3 check methods: checkCreateAccount, checkDeleteAccount and checkUpdate account. All three of these methods could be performing similar actions, such as ensuring that the resource is available. These common actions can be moved to a common function such as doBasicCheck() which any/all check methods could call. Then the individual check methods would do additional checks to ensure that user accounts can be added, modified or deleted. checkCreateAccount is not designed to ensure that the account creation will succeed, only that the likelyhood of success is good. checkCreateAccount does not need to check to see if the account already exists. The provisioner method will follow checkCreateAccount with a getUser call.

Specified by:
checkCreateAccount in interface ResourceAdapter
Specified by:
checkCreateAccount in class ResourceAdapterBase
Throws:
WavesetException

realCreate

protected void realCreate(WSUser user,
                          WavesetResult result)
                   throws WavesetException
Create a new user account on the resource This method is called by createAccounts (the multiuser create method). CreateAccounts will open a connection, call realCreate for each user being created, then close the connection.

Overrides:
realCreate in class ResourceAdapterBase
Throws:
WavesetException

checkUpdateAccount

public WavesetResult checkUpdateAccount(WSUser user)
                                 throws WavesetException
Specified by:
checkUpdateAccount in interface ResourceAdapter
Specified by:
checkUpdateAccount in class ResourceAdapterBase
Throws:
WavesetException

realUpdate

protected void realUpdate(WSUser user,
                          WavesetResult result)
                   throws WavesetException
Description copied from class: ResourceAdapterBase
Needs to be overridden by subclass if default updateAccounts() implementation is used.

Overrides:
realUpdate in class ResourceAdapterBase
Throws:
WavesetException

checkDeleteAccount

public WavesetResult checkDeleteAccount(WSUser user)
                                 throws WavesetException
Specified by:
checkDeleteAccount in interface ResourceAdapter
Specified by:
checkDeleteAccount in class ResourceAdapterBase
Throws:
WavesetException

realDelete

protected void realDelete(WSUser user,
                          WavesetResult result)
                   throws WavesetException
Description copied from class: ResourceAdapterBase
Needs to be overridden by subclass if default deleteAccounts() implementation is used.

Overrides:
realDelete in class ResourceAdapterBase
Throws:
WavesetException

getAccountAttributes

public WSAttributes getAccountAttributes(java.lang.String accountIdentity)
                                  throws WavesetException
Description copied from interface: ResourceAdapter
This method is obsolete. ResourceAdapterBase provides a default implementation that throws a "not implemented" WavesetException.

Specified by:
getAccountAttributes in interface ResourceAdapter
Overrides:
getAccountAttributes in class ResourceAdapterBase
Throws:
WavesetException

getAccountIterator

public AccountIterator getAccountIterator()
                                   throws WavesetException
Specified by:
getAccountIterator in interface ResourceAdapter
Overrides:
getAccountIterator in class ResourceAdapterBase
Throws:
WavesetException

authenticate

public WavesetResult authenticate(java.util.HashMap loginInfo)
                           throws WavesetException
Authenticates the user against the resource. Return the authenticated id if authentication succeeds. The authenticate method is used to verify a user account and password are valid. If the user account name does not exist on the resource, the password does not match, or multiple matches exist, then throw an exception. If the resource has multiple contexts (for example LDAP or NDS), the authenticate method should not stop when it finds the first match, instead it should continue through the entire list. If it finds more than one match, then an exception should be thrown.

Specified by:
authenticate in interface ResourceAdapter
Specified by:
authenticate in class ResourceAdapterBase
Throws:
WavesetException

getUserPropertyDefinitions

protected java.util.List getUserPropertyDefinitions()
                                             throws WavesetException
Throws:
WavesetException

listAllObjects

public java.util.ArrayList listAllObjects(java.lang.String resourceObjectType,
                                          java.util.Map options,
                                          java.lang.String runAsUser,
                                          EncryptedData runAsPassword)
                                   throws WavesetException
Description copied from interface: ResourceAdapter
This method will return a list of object names of the specified object type. If you need to be able to specify which attrs to return, use listObjects instead

Specified by:
listAllObjects in interface ResourceAdapter
Overrides:
listAllObjects in class ResourceAdapterBase
Parameters:
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 options
runAsUser - - (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.
Returns:
a list of all objects of a specified type.
Throws:
WavesetException

getNames

protected java.util.ArrayList getNames(ISparseData data)
                                throws java.lang.Throwable
Throws:
java.lang.Throwable

getGroups

protected java.util.ArrayList getGroups()
                                 throws WavesetException
Throws:
WavesetException

getApplications

protected java.util.ArrayList getApplications()
                                       throws WavesetException
Throws:
WavesetException

getUserProperties

protected java.util.ArrayList getUserProperties()
                                         throws WavesetException
Throws:
WavesetException

getAdminGroups

protected java.util.ArrayList getAdminGroups()
                                      throws WavesetException
Throws:
WavesetException

getAPIProxy

protected java.util.ArrayList getAPIProxy()
                                   throws WavesetException
A list of one item - the server proxy item. This is obviously a layer violation but will allow ANY customization...

Throws:
WavesetException

setUserGroups

protected void setUserGroups(IUser ctUser,
                             WSAttribute attr)
                      throws WavesetException
force this user's groups into sync with the attribute values, adding or removing as necessary.

Throws:
WavesetException

getCTGroups

protected java.util.Map getCTGroups()
                             throws java.lang.Throwable
Throws:
java.lang.Throwable

addGroupsToUser

protected void addGroupsToUser(IUser ctUser,
                               java.util.List groupsToAdd,
                               java.util.Map ctGroups)
                        throws java.lang.Throwable
Throws:
java.lang.Throwable

removeGroupsFromUser

protected void removeGroupsFromUser(IUser ctUser,
                                    java.util.List groupsToDelete,
                                    java.util.Map ctGroups)
                             throws java.lang.Throwable
Throws:
java.lang.Throwable

entitlementToString

protected java.lang.String entitlementToString(IExplicitEntitlement ie)
                                        throws java.lang.Throwable
Throws:
java.lang.Throwable

getEntitlementDescriptions

protected java.util.ArrayList getEntitlementDescriptions(ISparseData data)
                                                  throws java.lang.Throwable
Throws:
java.lang.Throwable

getCTEntitlements

protected java.util.ArrayList getCTEntitlements(ISparseData data)
                                         throws java.lang.Throwable
Throws:
java.lang.Throwable

getCTEntitlementsMap

protected java.util.Map getCTEntitlementsMap(ISparseData data)
                                      throws java.lang.Throwable
Return a map of entitlements, keyed by our description (see entitlementToString for the description format)

Throws:
java.lang.Throwable

getCTApplications

protected java.util.Map getCTApplications()
                                   throws java.lang.Throwable
Throws:
java.lang.Throwable

addEntitlement

protected void addEntitlement(IUser ctUser,
                              java.lang.String en,
                              java.util.Map ctApps)
                       throws java.lang.Throwable
parse out the pieces of the entitlement, set them on the user

Throws:
java.lang.Throwable

removeEntitlement

protected void removeEntitlement(IUser ctUser,
                                 java.lang.String en,
                                 java.util.Map ctApps,
                                 java.util.Map entitlements)
                          throws java.lang.Throwable
parse out the pieces of the entitlement, remove it from the user

Throws:
java.lang.Throwable

addEntitlementsToUser

protected void addEntitlementsToUser(IUser ctUser,
                                     java.util.List enToAdd,
                                     java.util.Map ctApps)
                              throws java.lang.Throwable
Throws:
java.lang.Throwable

removeEntitlementsFromUser

protected void removeEntitlementsFromUser(IUser ctUser,
                                          java.util.List enToDelete,
                                          java.util.Map ctApps,
                                          java.util.Map enMap)
                                   throws java.lang.Throwable
Throws:
java.lang.Throwable

setUserEntitlements

protected void setUserEntitlements(IUser ctUser,
                                   WSAttribute attr)
                            throws WavesetException
Throws:
WavesetException

supportsAccountDisable

public boolean supportsAccountDisable()
If true, must implement realDisable() and realEnable(). See below.

Specified by:
supportsAccountDisable in interface ResourceAdapter
Overrides:
supportsAccountDisable in class ResourceAdapterBase

realDisable

protected void realDisable(WSUser user,
                           WavesetResult result)
                    throws WavesetException
Disables a user, called within a connected context.

Overrides:
realDisable in class ResourceAdapterBase
Throws:
WavesetException

realEnable

protected void realEnable(WSUser user,
                          WavesetResult result)
                   throws WavesetException
Enables a user by setting adminLockout to false

Overrides:
realEnable in class ResourceAdapterBase
Throws:
WavesetException