|
||||||||||
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.RequestResourceAdapter
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 boolean |
debug
|
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 | |
RequestResourceAdapter()
|
|
RequestResourceAdapter(Resource res,
ObjectCache cache)
|
Method Summary | |
void |
addUserAttributes(WSUser user,
AccountAttributeType[] attrTypes,
java.util.Map map)
|
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 |
createAccounts(WSUser[] users)
|
java.lang.String |
createIdentity(WSUser user)
Overide ResourceAdapterBase's createIdentity to just return the user name as the identity. |
Resource |
createPrototypeResource()
|
WavesetResult |
deleteAccounts(WSUser[] users)
|
WSAttributes |
getAccountAttributes(java.lang.String accountIdentity)
This method is obsolete. |
WSUser |
getAccountAttributes(WSUser src)
Return a user object containing the known state of an existing user account, if any. |
java.util.List |
getAllAccounts()
Get all of the accounts in this resource. |
GenericObject |
getFeatures()
Expose features supported by the Resource Adapter. |
java.lang.String |
getIdentity(WSUser user)
Return the account id for the user, fetched from the resource info. |
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 |
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 |
realUpdate(WSUser user,
WavesetResult result)
Needs to be overridden by subclass if default updateAccounts() implementation is used. |
static Resource |
staticCreatePrototypeResource()
|
WavesetResult |
updateAccounts(WSUser[] users)
|
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 boolean debug
Constructor Detail |
public RequestResourceAdapter(Resource res, ObjectCache cache)
public RequestResourceAdapter()
Method Detail |
public static Resource staticCreatePrototypeResource() throws WavesetException
WavesetException
public Resource createPrototypeResource() throws WavesetException
createPrototypeResource
in interface ResourceAdapter
createPrototypeResource
in class ResourceAdapterBase
WavesetException
public GenericObject getFeatures()
getFeatures
in interface ResourceAdapter
getFeatures
in class ResourceAdapterBase
ResourceAdapter.Features
public WavesetResult checkCreateAccount(WSUser user) throws WavesetException
checkCreateAccount
in interface ResourceAdapter
checkCreateAccount
in class ResourceAdapterBase
WavesetException
public WSUser getUser(WSUser user) throws WavesetException
ResourceAdapter
getUser
in interface ResourceAdapter
getUser
in class ResourceAdapterBase
WavesetException
public java.lang.String getIdentity(WSUser user) throws WavesetException
ResourceAdapterBase
getIdentity
in class ResourceAdapterBase
WavesetException
protected void realCreate(WSUser user, WavesetResult result) throws WavesetException
ResourceAdapterBase
realCreate
in class ResourceAdapterBase
WavesetException
public WavesetResult createAccounts(WSUser[] users) throws WavesetException
createAccounts
in interface ResourceAdapter
createAccounts
in class ResourceAdapterBase
WavesetException
public void addUserAttributes(WSUser user, AccountAttributeType[] attrTypes, java.util.Map map)
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 updateAccounts(WSUser[] users) throws WavesetException
updateAccounts
in interface ResourceAdapter
updateAccounts
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 WavesetResult deleteAccounts(WSUser[] users) throws WavesetException
deleteAccounts
in interface ResourceAdapter
deleteAccounts
in class ResourceAdapterBase
WavesetException
public WSAttributes getAccountAttributes(java.lang.String accountIdentity) throws WavesetException
ResourceAdapter
getAccountAttributes
in interface ResourceAdapter
getAccountAttributes
in class ResourceAdapterBase
WavesetException
public WSUser getAccountAttributes(WSUser src) throws WavesetException
WavesetException
public java.util.List getAllAccounts() throws WavesetException
This is a temporary testing method for the extractor/loader, will be eventually replaced with some sort of iteration mechanism.
Here, we just read in our file of objects and return them in a list. The easiest thing would be to call loadResourceFile and then iterate over the hash table, but the users then get processed in an unspecified order which makes unit tests using golden files harder. Instead, we duplicate some of the logic in parseXml so that the list returned is in the same order as the file.
jsl - lobotomized this when we switched to the new static user caches. Could resurect it, but its not supposed to be used any more.
getAllAccounts
in interface ResourceAdapter
getAllAccounts
in class ResourceAdapterBase
WavesetException
public java.lang.String createIdentity(WSUser user) throws WavesetException
createIdentity
in interface ResourceAdapter
createIdentity
in class ResourceAdapterBase
WavesetException
public WavesetResult authenticate(java.util.HashMap loginInfo) throws WavesetException
ResourceAdapter
authenticate
in interface ResourceAdapter
authenticate
in class ResourceAdapterBase
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |