|
||||||||||
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
com.waveset.adapter.LDAPListenerActiveSyncAdapter
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 |
Nested classes inherited from class com.waveset.adapter.LDAPActiveSyncAdapterBase |
LDAPActiveSyncAdapterBase.UpdateRow, LDAPActiveSyncAdapterBase.UpdateRows |
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
|
Fields inherited from class com.waveset.adapter.LDAPActiveSyncAdapterBase |
RA_ACTIVE_SYNC_OBJECT_CLASSES, RA_ATTRIBUTE_FILTER, RA_BLOCKSIZE, RA_CHANGE_NUMBER_ATTRIBUTE_NAME, RA_PROCESS_NAME |
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 | |
LDAPListenerActiveSyncAdapter()
|
|
LDAPListenerActiveSyncAdapter(Resource res,
ObjectCache cache)
|
Method Summary | |
Resource |
createPrototypeResource()
|
void |
init()
initialize yourself. |
void |
localInit()
|
void |
namingExceptionThrown(javax.naming.event.NamingExceptionEvent evt)
Called when a naming exception is thrown while attempting to fire a NamingEvent. |
void |
objectAdded(javax.naming.event.NamingEvent evt)
Called when an object has been added. |
void |
objectChanged(javax.naming.event.NamingEvent evt)
Called when an object has been changed. |
void |
objectRemoved(javax.naming.event.NamingEvent evt)
Called when an object has been removed. |
void |
objectRenamed(javax.naming.event.NamingEvent evt)
Called when an object has been renamed. |
void |
setResource(Resource r)
|
static Resource |
staticCreatePrototypeResource()
Override the default to set our class and type and add the source- specific attributes. |
Methods inherited from class com.waveset.adapter.LDAPActiveSyncAdapterBase |
addResourceAttributes, buildEvent, callCompleted, fetchUser, getAttributeValue, getLDIFAttributeValue, getRootDSE, logUpdate, poll, processUpdates, setAttributeValue, shutdown |
Methods inherited from class com.waveset.adapter.LDAPResourceAdapter |
addAttributes, 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
Constructor Detail |
public LDAPListenerActiveSyncAdapter(Resource res, ObjectCache cache)
public LDAPListenerActiveSyncAdapter()
Method Detail |
public void setResource(Resource r)
setResource
in interface ResourceAdapter
setResource
in class LDAPActiveSyncAdapterBase
public static Resource staticCreatePrototypeResource() throws WavesetException
WavesetException
public Resource createPrototypeResource() throws WavesetException
createPrototypeResource
in interface ResourceAdapter
createPrototypeResource
in class LDAPResourceAdapter
WavesetException
public void objectAdded(javax.naming.event.NamingEvent evt)
The binding of the newly added object can be obtained using evt.getNewBinding().
objectAdded
in interface javax.naming.event.NamespaceChangeListener
evt
- The nonnull event.NamingEvent.OBJECT_ADDED
public void objectRemoved(javax.naming.event.NamingEvent evt)
The binding of the newly removed object can be obtained using evt.getOldBinding().
objectRemoved
in interface javax.naming.event.NamespaceChangeListener
evt
- The nonnull event.NamingEvent.OBJECT_REMOVED
public void objectRenamed(javax.naming.event.NamingEvent evt)
The binding of the renamed object can be obtained using evt.getNewBinding(). Its old binding (before the rename) can be obtained using evt.getOldBinding(). One of these may be null if the old/new binding was outside the scope in which the listener has registered interest.
objectRenamed
in interface javax.naming.event.NamespaceChangeListener
evt
- The nonnull event.NamingEvent.OBJECT_RENAMED
public void namingExceptionThrown(javax.naming.event.NamingExceptionEvent evt)
namingExceptionThrown
in interface javax.naming.event.NamingListener
evt
- The nonnull event.public void objectChanged(javax.naming.event.NamingEvent evt)
The binding of the changed object can be obtained using evt.getNewBinding(). Its old binding (before the change) can be obtained using evt.getOldBinding().
objectChanged
in interface javax.naming.event.ObjectChangeListener
evt
- The nonnull naming event.NamingEvent.OBJECT_CHANGED
public void init() throws java.lang.Exception
LDAPActiveSyncAdapterBase
init
in interface ActiveSync
init
in class LDAPActiveSyncAdapterBase
java.lang.Exception
public void localInit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |