|
||||||||||
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.OracleResourceAdapter
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 |
NO_CASCADE
|
static java.lang.String |
ORACLE_AUTH_EXTERNAL
|
static java.lang.String |
ORACLE_AUTH_GLOBAL
|
static java.lang.String |
ORACLE_AUTH_LOCAL
|
static java.lang.String |
ORACLE_AUTHENTICATION_ATTR_NAME
|
static java.lang.String |
ORACLE_DEF_TS_ATTR_NAME
|
static java.lang.String |
ORACLE_DEF_TS_QUOTA_ATTR_NAME
|
static java.lang.String |
ORACLE_EXPIRE_PASSWORD
|
static java.lang.String |
ORACLE_GLOBAL_ATTR_NAME
|
static java.lang.String |
ORACLE_PRIVS_ATTR_NAME
|
static java.lang.String |
ORACLE_PROFILES_ATTR_NAME
|
static java.lang.String |
ORACLE_ROLES_ATTR_NAME
|
static java.lang.String |
ORACLE_TEMP_TS_ATTR_NAME
|
static java.lang.String |
ORACLE_TEMP_TS_QUOTA_ATTR_NAME
|
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 | |
OracleResourceAdapter()
|
|
OracleResourceAdapter(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)
|
Resource |
createPrototypeResource()
|
WavesetResult |
deleteAccounts(WSUser[] users)
Overrides ResourceAdapterBase method deleteAccounts in order to wait until all accounts are deleted before performing the commit. |
protected void |
finalize()
The finalizer helps prevent Oracle connection leakage. |
java.util.List |
getAllAccounts()
Returns all of the accounts in this resource as a list of WSUser objects. |
java.lang.String |
getColumn(java.sql.ResultSet result,
int col)
Get a string from a result set, trimming trailing blanks. |
GenericObject |
getFeatures()
Expose features supported by the Resource Adapter. |
WSUser |
getUser(WSUser user)
Return a fully populated user from the resource if it exists. |
java.util.ArrayList |
listAllObjects(java.lang.String resourceObjectType,
java.util.Map options,
java.lang.String runAsUser,
EncryptedData runAsPassword)
Return all objects of specific type. |
protected void |
realCreate(WSUser user,
WavesetResult result)
realCreate Build SQL to add the user and set her authentication mechanism. |
protected void |
realDelete(WSUser user,
WavesetResult result,
boolean commit)
|
protected void |
realDisable(WSUser user,
WavesetResult result)
Sets ACCOUNT LOCK and ResourceInfo Disabled 'true' |
protected void |
realEnable(WSUser user,
WavesetResult result)
Sets ACCOUNT UNLOCK and ResourceInfo Disabled 'false' |
protected void |
realUpdate(WSUser user,
WavesetResult result)
realUpdate Build SQL to update the user. |
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. |
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 static final java.lang.String ORACLE_ROLES_ATTR_NAME
public static final java.lang.String ORACLE_PRIVS_ATTR_NAME
public static final java.lang.String ORACLE_PROFILES_ATTR_NAME
public static final java.lang.String ORACLE_DEF_TS_ATTR_NAME
public static final java.lang.String ORACLE_TEMP_TS_ATTR_NAME
public static final java.lang.String ORACLE_GLOBAL_ATTR_NAME
public static final java.lang.String ORACLE_AUTHENTICATION_ATTR_NAME
public static final java.lang.String ORACLE_DEF_TS_QUOTA_ATTR_NAME
public static final java.lang.String ORACLE_TEMP_TS_QUOTA_ATTR_NAME
public static final java.lang.String ORACLE_EXPIRE_PASSWORD
public static final java.lang.String ORACLE_AUTH_LOCAL
public static final java.lang.String ORACLE_AUTH_EXTERNAL
public static final java.lang.String ORACLE_AUTH_GLOBAL
public static final java.lang.String NO_CASCADE
Constructor Detail |
public OracleResourceAdapter(Resource res, ObjectCache cache)
public OracleResourceAdapter()
Method Detail |
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
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
protected void realCreate(WSUser user, WavesetResult result) throws WavesetException
realCreate
in class ResourceAdapterBase
WavesetException
public WSUser getUser(WSUser user) throws WavesetException
getUser
in interface ResourceAdapter
getUser
in class ResourceAdapterBase
WavesetException
public java.lang.String getColumn(java.sql.ResultSet result, int col) throws java.sql.SQLException
java.sql.SQLException
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
realUpdate
in class ResourceAdapterBase
WavesetException
public WavesetResult checkDeleteAccount(WSUser user) throws WavesetException
checkDeleteAccount
in interface ResourceAdapter
checkDeleteAccount
in class ResourceAdapterBase
WavesetException
public WavesetResult deleteAccounts(WSUser[] users) throws WavesetException
deleteAccounts
in interface ResourceAdapter
deleteAccounts
in class ResourceAdapterBase
WavesetException
protected void realDelete(WSUser user, WavesetResult result, boolean commit) 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
public java.util.List getAllAccounts() throws WavesetException
jsl - this is temporary, need to come up with an effecient way to iterate over the accounts.
getAllAccounts
in interface ResourceAdapter
getAllAccounts
in class ResourceAdapterBase
WavesetException
public WavesetResult authenticate(java.util.HashMap loginInfo) throws WavesetException
ResourceAdapter
authenticate
in interface ResourceAdapter
authenticate
in class ResourceAdapterBase
WavesetException
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 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 |