|
||||||||||
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.MIISResourceAdapter
Note: Although MIISResourceAdapter implements ActiveSync, the functionality is not supported, and syncSource='false'. The interface is needed for _util which is used throughout the ActiveSync methods located at the end of the file.
Nested Class Summary | |
static class |
MIISResourceAdapter.DatabaseTableAccountIterator
The implementation of the AccountIterator returned by getAccountIterator. |
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 |
DEFAULT_DRIVER
The default value for the RA_DRIVER resource attribute. |
static java.lang.String |
DEFAULT_PORT
The default connect DB Server Port. |
static java.lang.String |
DEFAULT_TEMPLATE
The default connect URL template. |
static java.lang.String |
RA_DISABLE_VALUE
|
static java.lang.String |
RA_ENABLE_DISABLE_COLUMN
|
static java.lang.String |
RA_ENABLE_VALUE
|
static java.lang.String |
RA_KEY_COLUMN
|
static java.lang.String |
RA_PASS_THROUGH_AUTH_RESOURCE
|
static java.lang.String |
RA_PASSWORD_COLUMN
|
static java.lang.String |
RA_REMOVE_ROW
|
static java.lang.String |
RA_TABLE
|
static java.lang.String |
RA_USE_GUID
|
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 | |
MIISResourceAdapter()
|
Method Summary | |
WavesetResult |
authenticate(java.util.HashMap loginInfo)
Check to see if a user account and password is valid. |
protected com.waveset.adapter.iapi.IAPI |
buildEvent(com.waveset.adapter.MIISResourceAdapter.UpdateRow row,
java.lang.String command)
Extract the user identity information and attributes, create an IAPIUser object to update Lighthouse, and return it. |
void |
callCompleted(com.waveset.adapter.iapi.IAPI call)
An call generated by this resource adapter has completed. |
WavesetResult |
checkCreateAccount(WSUser user)
Check to see if an account can be created. |
WavesetResult |
checkDeleteAccount(WSUser user)
Check account deletion. |
WavesetResult |
checkUpdateAccount(WSUser user)
Check to see if an account can be updated. |
protected void |
connect()
|
protected void |
createNewResourceAccount(WSUser user,
WavesetResult result)
Create a new account. |
Resource |
createPrototypeResource()
|
protected void |
disconnect()
|
AccountIterator |
getAccountIterator()
Return an iterator that will iterate over all the accounts on a resource. |
AccountIterator |
getAccountIterator(java.util.Map filterParams)
Like getAccountIterator but takes a Map param. |
java.lang.Object |
getAttributeValue(java.lang.String name)
Required method implementation to get an attribute value. |
protected java.lang.String |
getEnableDisableColumnName()
|
protected java.lang.String |
getLoginAttrName(java.lang.String key)
Get the attribute name to use for the login info key that is passed in. |
WSUser |
getUser(WSUser idUser)
Public adapter method to get the current user information. |
WSUser |
getUser(WSUser idUser,
boolean strict)
Public adapter method to get the current user information. |
void |
init()
Initialize the source adapter. |
protected void |
logCommand(int level,
com.waveset.adapter.MIISResourceAdapter.UpdateRow update,
java.lang.String command,
WavesetResult result)
Log whatever we want to from an update. |
int |
poll()
the poll method. |
protected void |
processUpdates(java.util.List list,
java.lang.String command)
Take a list of Maps that are rows of the audit data and turn them into IAPI calls. |
protected void |
realCreate(WSUser user,
WavesetResult result)
Create a new account. |
protected void |
realDelete(WSUser user,
WavesetResult result)
Delete the account for real. |
protected void |
realDisable(WSUser user,
WavesetResult result)
|
protected void |
realEnable(WSUser user,
WavesetResult result)
|
protected void |
realUpdate(WSUser user,
WavesetResult result)
Update a user |
void |
setAttributeValue(java.lang.String name,
java.lang.Object value)
Required method implementation to set an attribute value. |
void |
shutdown()
Called once when the adapter is unloaded. |
void |
startConnection()
Needs to be overridden by subclass if default createAccounts() implementation is used. |
static Resource |
staticCreatePrototypeResource()
Create the prototype resource. |
void |
stopConnection()
Needs to be overridden by subclass if default createAccounts() implementation is used. |
boolean |
supportsAccountDisable()
Whether the resource can enable and disable accounts. |
protected void |
updateResourceAccount(java.lang.String id,
java.util.Map map)
|
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_TABLE
public static final java.lang.String RA_KEY_COLUMN
public static final java.lang.String RA_PASSWORD_COLUMN
public static final java.lang.String RA_ENABLE_DISABLE_COLUMN
public static final java.lang.String RA_REMOVE_ROW
public static final java.lang.String RA_PASS_THROUGH_AUTH_RESOURCE
public static final java.lang.String RA_ENABLE_VALUE
public static final java.lang.String RA_DISABLE_VALUE
public static final java.lang.String RA_USE_GUID
public static final java.lang.String DEFAULT_PORT
public static final java.lang.String DEFAULT_DRIVER
public static final java.lang.String DEFAULT_TEMPLATE
Constructor Detail |
public MIISResourceAdapter()
Method Detail |
public static Resource staticCreatePrototypeResource() throws WavesetException
WavesetException
public Resource createPrototypeResource() throws WavesetException
createPrototypeResource
in interface ResourceAdapter
createPrototypeResource
in class ResourceAdapterBase
WavesetException
public void startConnection() throws WavesetException
ResourceAdapterBase
startConnection
in class ResourceAdapterBase
WavesetException
public void stopConnection() throws WavesetException
ResourceAdapterBase
stopConnection
in class ResourceAdapterBase
WavesetException
public WavesetResult checkCreateAccount(WSUser user) throws WavesetException
checkCreateAccount
in interface ResourceAdapter
checkCreateAccount
in class ResourceAdapterBase
WavesetException
protected void createNewResourceAccount(WSUser user, WavesetResult result) throws WavesetException
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
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
realDelete
in class ResourceAdapterBase
WavesetException
public WSUser getUser(WSUser idUser) throws WavesetException
getUser
in interface ResourceAdapter
getUser
in class ResourceAdapterBase
WavesetException
public WSUser getUser(WSUser idUser, boolean strict) throws WavesetException
WavesetException
protected java.lang.String getEnableDisableColumnName()
public boolean supportsAccountDisable()
supportsAccountDisable
in interface ResourceAdapter
supportsAccountDisable
in class ResourceAdapterBase
protected void realEnable(WSUser user, WavesetResult result) throws WavesetException
realEnable
in class ResourceAdapterBase
WavesetException
protected void realDisable(WSUser user, WavesetResult result) throws WavesetException
realDisable
in class ResourceAdapterBase
WavesetException
protected void updateResourceAccount(java.lang.String id, java.util.Map map) throws WavesetException
WavesetException
protected java.lang.String getLoginAttrName(java.lang.String key)
public WavesetResult authenticate(java.util.HashMap loginInfo) throws WavesetException
authenticate
in interface ResourceAdapter
authenticate
in class ResourceAdapterBase
WavesetException
public AccountIterator getAccountIterator() throws WavesetException
getAccountIterator
in interface ResourceAdapter
getAccountIterator
in class ResourceAdapterBase
WavesetException
public AccountIterator getAccountIterator(java.util.Map filterParams) throws WavesetException
ResourceAdapter
getAccountIterator
in interface ResourceAdapter
getAccountIterator
in class ResourceAdapterBase
WavesetException
public java.lang.Object getAttributeValue(java.lang.String name) throws WavesetException
getAttributeValue
in interface ActiveSync
WavesetException
public void setAttributeValue(java.lang.String name, java.lang.Object value) throws WavesetException
setAttributeValue
in interface ActiveSync
WavesetException
public void init() throws java.lang.Exception
init
in interface ActiveSync
java.lang.Exception
public void shutdown()
shutdown
in interface ActiveSync
protected void connect() throws WavesetException
WavesetException
protected void disconnect()
protected com.waveset.adapter.iapi.IAPI buildEvent(com.waveset.adapter.MIISResourceAdapter.UpdateRow row, java.lang.String command) throws WavesetException, com.waveset.adapter.iapi.IAPIException
row
- - the data to build an event from. @see UpdateRow
WavesetException
com.waveset.adapter.iapi.IAPIException
protected void processUpdates(java.util.List list, java.lang.String command) throws WavesetException, com.waveset.adapter.iapi.IAPIException
list
- - a List of UpdateRow objects from getUpdateRows.
WavesetException
com.waveset.adapter.iapi.IAPIException
public int poll()
poll
in interface ActiveSync
protected void logCommand(int level, com.waveset.adapter.MIISResourceAdapter.UpdateRow update, java.lang.String command, WavesetResult result)
public void callCompleted(com.waveset.adapter.iapi.IAPI call)
If this does not delete the call, there must be something else that deletes it - or it will just go away when it expires.
IAPI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |