|
||||||||||
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.JdbcResourceAdapter
com.waveset.adapter.OracleERPResourceAdapter10_7
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 | |
int |
adminUserId
|
static java.lang.String |
APP
|
static java.lang.String |
APPS
|
static java.lang.String |
code_id
|
static java.lang.String |
DESCR
|
static java.lang.String |
EMAIL
|
static java.lang.String |
EMP_ID
|
static java.lang.String |
EMP_NUM
|
static java.lang.String |
END_DATE
|
static java.lang.String |
EXP_PWD
|
static java.lang.String |
FAX
|
static java.lang.String |
LAST_LOGON_DATE
|
static java.lang.String |
OWNER
|
static java.lang.String |
PATTERN
|
static java.lang.String |
PERSON_TYPE
|
static java.lang.String |
PWD_ACCESSES_LEFT
|
static java.lang.String |
PWD_DATE
|
static java.lang.String |
PWD_LIFE_ACCESSES
|
static java.lang.String |
PWD_LIFE_DAYS
|
static java.lang.String |
RESP
|
static java.lang.String |
RESP_NAME
|
static java.lang.String |
RESP_NAMES
|
static java.lang.String |
RESPKEYS
|
static java.lang.String |
SEC_ATTRS
|
static java.lang.String |
SEC_GROUPS
|
static java.lang.String |
SESS_NUM
|
static java.lang.String |
START_DATE
|
static java.lang.String |
UNENCRYPT_PWD
|
Fields inherited from class com.waveset.adapter.JdbcResourceAdapter |
RA_DATABASE, RA_DRIVER, RA_HOST, RA_PASSWORD, RA_PORT, RA_QUOTING, RA_URL_PREFIX, RA_URL_TEMPLATE, RA_USER |
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 | |
OracleERPResourceAdapter10_7()
Create an adapater instance, without a resource. |
|
OracleERPResourceAdapter10_7(Resource res,
ObjectCache cache)
Create an adapter instance for a resource. |
Method Summary | |
WavesetResult |
authenticate(java.util.HashMap loginInfo)
Check to see if a user account and password is valid. |
WSUser |
buildUser(java.lang.String id)
Build the base user object given an id. |
WavesetResult |
checkCreateAccount(WSUser user)
Checks connection to DB |
WavesetResult |
checkDeleteAccount(WSUser user)
Check account deletion. |
WavesetResult |
checkUpdateAccount(WSUser user)
Check the ability to perform an account update. |
void |
close()
Close the account iterator, and clean up resources. |
Resource |
createPrototypeResource()
Create the prototype instance. |
protected void |
finalize()
The finalizer helps prevent Oracle connection leakage. |
AccountIterator |
getAccountIterator()
|
java.lang.String |
getColumn(java.sql.ResultSet result,
int col)
Get a string from a result set, trimming trailing blanks. |
GenericObject |
getFeatures()
Read-Only Adapter |
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 |
java.lang.String |
getRespKey(java.lang.String resp)
get responsibility keys (resp_name, app_name, sec_group) |
java.util.ArrayList |
getRespKeys(java.util.ArrayList resps)
get responsibility keys (resp_name, app_name, sec_group) |
WSUser |
getUser(WSUser idUser)
Public adapter method to get the current user information. |
boolean |
hasNext()
Do most of the work. |
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)
listObjects |
WSUser |
next()
|
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)
|
protected void |
realEnable(WSUser user,
WavesetResult result)
|
protected void |
realUpdate(WSUser user,
WavesetResult result)
Unsupported Features |
protected void |
startConnection()
Needs to be overridden by subclass if default createAccounts() implementation is used. |
static Resource |
staticCreatePrototypeResource()
Create the prototype instance. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public int adminUserId
public static final java.lang.String OWNER
public static final java.lang.String UNENCRYPT_PWD
public static final java.lang.String SESS_NUM
public static final java.lang.String START_DATE
public static final java.lang.String END_DATE
public static final java.lang.String LAST_LOGON_DATE
public static final java.lang.String DESCR
public static final java.lang.String PWD_DATE
public static final java.lang.String PWD_ACCESSES_LEFT
public static final java.lang.String PWD_LIFE_ACCESSES
public static final java.lang.String PWD_LIFE_DAYS
public static final java.lang.String EMP_ID
public static final java.lang.String EMP_NUM
public static final java.lang.String EMAIL
public static final java.lang.String FAX
public static final java.lang.String PERSON_TYPE
public static final java.lang.String EXP_PWD
public static final java.lang.String RESP
public static final java.lang.String RESPKEYS
public static final java.lang.String RESP_NAMES
public static final java.lang.String RESP_NAME
public static final java.lang.String APPS
public static final java.lang.String APP
public static final java.lang.String SEC_GROUPS
public static final java.lang.String SEC_ATTRS
public static final java.lang.String PATTERN
Constructor Detail |
public OracleERPResourceAdapter10_7(Resource res, ObjectCache cache)
public OracleERPResourceAdapter10_7()
Method Detail |
public static Resource staticCreatePrototypeResource() throws WavesetException
WavesetException
public Resource createPrototypeResource() throws WavesetException
createPrototypeResource
in interface ResourceAdapter
createPrototypeResource
in class ResourceAdapterBase
WavesetException
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
protected void startConnection() throws WavesetException
ResourceAdapterBase
startConnection
in class ResourceAdapterBase
WavesetException
protected void stopConnection() throws WavesetException
ResourceAdapterBase
stopConnection
in class ResourceAdapterBase
WavesetException
public AccountIterator getAccountIterator() throws WavesetException
getAccountIterator
in interface ResourceAdapter
getAccountIterator
in class ResourceAdapterBase
WavesetException
public void close()
close
in interface AccountIterator
public boolean hasNext() throws WavesetException
hasNext
in interface AccountIterator
WavesetException
public WSUser next() throws java.util.NoSuchElementException, WavesetException
next
in interface AccountIterator
java.util.NoSuchElementException
WavesetException
public WavesetResult checkCreateAccount(WSUser user) throws WavesetException
checkCreateAccount
in interface ResourceAdapter
checkCreateAccount
in class ResourceAdapterBase
WavesetException
public WavesetResult checkUpdateAccount(WSUser user) throws WavesetException
checkUpdateAccount
in interface ResourceAdapter
checkUpdateAccount
in class ResourceAdapterBase
WavesetException
public WavesetResult checkDeleteAccount(WSUser user) throws WavesetException
checkDeleteAccount
in interface ResourceAdapter
checkDeleteAccount
in class ResourceAdapterBase
WavesetException
public boolean supportsAccountDisable()
supportsAccountDisable
in interface ResourceAdapter
supportsAccountDisable
in class ResourceAdapterBase
public WSUser getUser(WSUser idUser) throws WavesetException
getUser
in interface ResourceAdapter
getUser
in class ResourceAdapterBase
WavesetException
public WSUser buildUser(java.lang.String id)
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
ResourceAdapterBase
getObject
in interface ResourceAdapter
getObject
in class ResourceAdapterBase
objectId
- - a valid fully qualified object identifier on this resource
Name of responsibility in the form Responsibility||ApplicationattrsToGet
- - a list of attribute names supported by the specified objectType
to be returned with the object
Valid Attributes are:
name
formIds
formNames
readOnlyFormIds
readWriteOnlyFormIds
readOnlyFormNames
readWriteOnlyFormNames
activeRespsOnly - return attributes of active responsibilities on useroptions
- - Not currently supportedobjectType
- - a valid object type defined in the resource's
WavesetException
public java.lang.String getColumn(java.sql.ResultSet result, int col) throws java.sql.SQLException
java.sql.SQLException
public java.util.ArrayList getRespKeys(java.util.ArrayList resps) throws WavesetException
WavesetException
public java.lang.String getRespKey(java.lang.String resp) throws WavesetException
WavesetException
public WavesetResult authenticate(java.util.HashMap loginInfo) throws WavesetException
authenticate
in interface ResourceAdapter
authenticate
in class ResourceAdapterBase
WavesetException
public GenericObject getFeatures()
getFeatures
in interface ResourceAdapter
getFeatures
in class ResourceAdapterBase
ResourceAdapter.Features
protected void realUpdate(WSUser user, WavesetResult result) throws WavesetException
realUpdate
in class ResourceAdapterBase
WavesetException
protected void realCreate(WSUser user, WavesetResult result) throws WavesetException
ResourceAdapterBase
realCreate
in class ResourceAdapterBase
WavesetException
protected void realDelete(WSUser user, WavesetResult result) throws WavesetException
ResourceAdapterBase
realDelete
in class ResourceAdapterBase
WavesetException
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 |