|
||||||||||
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.LDAPResourceAdapterBase
com.waveset.adapter.LDAPResourceAdapter
com.waveset.adapter.LDAPActiveSyncAdapterBase
This is the base class for LDAP Active Sync adapters. It has the basic methods implemented for propogating changes - derived classes need to implement at least the method getUpdateRows to return changed objects that need to be synchronized. They also need to implement the staticCreatePrototypeResource method to provide XML for a blank resource. The updates that are received will be fetched from the LDAP server and an IAPI update built and submitted.
Nested Class Summary | |
protected class |
LDAPActiveSyncAdapterBase.UpdateRow
A row of data returned by getUpdateRows |
protected class |
LDAPActiveSyncAdapterBase.UpdateRows
Returned by getUpdateRows, this has a list of rows to update and a single row that is the "last one" to be saved for the next search so that we know where to start from. |
Nested classes inherited from class com.waveset.adapter.LDAPResourceAdapterBase |
LDAPResourceAdapterBase.AcctIter, LDAPResourceAdapterBase.BlockAcctIter, LDAPResourceAdapterBase.VLVAcctIter |
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 |
RA_ACTIVE_SYNC_OBJECT_CLASSES
|
static java.lang.String |
RA_ATTRIBUTE_FILTER
|
static java.lang.String |
RA_BLOCKSIZE
|
static java.lang.String |
RA_CHANGE_NUMBER_ATTRIBUTE_NAME
|
static java.lang.String |
RA_PROCESS_NAME
deprecated As of IdM 5.5. |
Fields inherited from class com.waveset.adapter.LDAPResourceAdapter |
RA_ENABLE_PASSWORD_SYNC, RA_FILTER_CHANGES_BY, RA_LDAP_ACTIVATION, RA_LDAP_ACTIVATION_PARM, RA_OR_SEARCH_PARAMS_FILTER, RA_PASSWORD_ENCRYPTION_IV, RA_PASSWORD_ENCRYPTION_KEY, RA_PASSWORD_HASH_ALG |
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 | |
LDAPActiveSyncAdapterBase()
|
|
LDAPActiveSyncAdapterBase(Resource res,
ObjectCache cache)
|
Method Summary | |
protected static void |
addResourceAttributes(Resource res)
Add the resource attributes common to derived adapter classes. |
protected com.waveset.adapter.iapi.IAPI |
buildEvent(LDAPActiveSyncAdapterBase.UpdateRow row)
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. |
protected WSUser |
fetchUser(GenericObject changeLogEntry)
Take a change log entry and get the object associated with it. |
java.lang.Object |
getAttributeValue(java.lang.String name)
Get or set an attribute value for the ActiveSync. |
protected GenericObject |
getLDIFAttributeValue(java.util.StringTokenizer st)
Attributes can be single valued like name: value or multivalued name: value\nname: value2. |
protected GenericObject |
getRootDSE()
Get the root DSE and extract some needed attributes about the changelog. |
void |
init()
initialize yourself. |
protected void |
logUpdate(int level,
LDAPActiveSyncAdapterBase.UpdateRow update,
WavesetResult result)
Log whatever we want to from an update. |
int |
poll()
the poll method. |
protected void |
processUpdates(java.util.List list)
Take a list of Maps that are rows of the audit data and turn them into IAPI calls. |
void |
setAttributeValue(java.lang.String name,
java.lang.Object value)
|
void |
setResource(Resource r)
|
void |
shutdown()
shutdown |
static Resource |
staticCreatePrototypeResource()
Override this method - it should be abstract but static and abstract are conflicting. |
Methods inherited from class com.waveset.adapter.LDAPResourceAdapter |
addAttributes, createPrototypeResource, getAccountActivator |
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_BLOCKSIZE
public static final java.lang.String RA_CHANGE_NUMBER_ATTRIBUTE_NAME
public static final java.lang.String RA_ACTIVE_SYNC_OBJECT_CLASSES
public static final java.lang.String RA_ATTRIBUTE_FILTER
public static final java.lang.String RA_PROCESS_NAME
Constructor Detail |
public LDAPActiveSyncAdapterBase(Resource res, ObjectCache cache)
public LDAPActiveSyncAdapterBase()
Method Detail |
public void setResource(Resource r)
setResource
in interface ResourceAdapter
setResource
in class ResourceAdapterBase
public static Resource staticCreatePrototypeResource() throws WavesetException
WavesetException
protected static void addResourceAttributes(Resource res) throws WavesetException
WavesetException
public java.lang.Object getAttributeValue(java.lang.String name) throws WavesetException
ActiveSync
getAttributeValue
in interface ActiveSync
getAttributeValue
in class LDAPResourceAdapterBase
WavesetException
public void setAttributeValue(java.lang.String name, java.lang.Object value) throws WavesetException
setAttributeValue
in interface ActiveSync
setAttributeValue
in class LDAPResourceAdapterBase
WavesetException
public void init() throws java.lang.Exception
init
in interface ActiveSync
init
in class LDAPResourceAdapterBase
java.lang.Exception
public void shutdown()
ActiveSync
shutdown
in interface ActiveSync
shutdown
in class LDAPResourceAdapterBase
protected GenericObject getRootDSE() throws WavesetException
getRootDSE
in class LDAPResourceAdapterBase
WavesetException
protected com.waveset.adapter.iapi.IAPI buildEvent(LDAPActiveSyncAdapterBase.UpdateRow row) throws WavesetException, com.waveset.adapter.iapi.IAPIException
WavesetException
com.waveset.adapter.iapi.IAPIException
protected void processUpdates(java.util.List list) throws WavesetException, com.waveset.adapter.iapi.IAPIException
processUpdates
in class LDAPResourceAdapterBase
WavesetException
com.waveset.adapter.iapi.IAPIException
public int poll()
poll
in interface ActiveSync
poll
in class LDAPResourceAdapterBase
protected void logUpdate(int level, LDAPActiveSyncAdapterBase.UpdateRow update, 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.
callCompleted
in class LDAPResourceAdapterBase
call
-
protected WSUser fetchUser(GenericObject changeLogEntry) throws WavesetException
fetchUser
in class LDAPResourceAdapterBase
WavesetException
protected GenericObject getLDIFAttributeValue(java.util.StringTokenizer st)
getLDIFAttributeValue
in class LDAPResourceAdapterBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |