public class LdapSyncAdapter extends java.lang.Object implements LdapSyncListener
Modifier and Type | Field and Description |
---|---|
protected java.sql.Connection |
connection |
protected MXLogger |
logger |
protected MXLogger |
sqlLogger |
protected UserInfo |
userInfo |
Constructor and Description |
---|
LdapSyncAdapter() |
Modifier and Type | Method and Description |
---|---|
protected java.sql.Connection |
getConnection()
Returns the connection to be used.
|
protected MXLogger |
getLogger()
Returns the logger to be used to log messages.
|
protected MXLogger |
getSqlLogger()
Returns the logger to be used to log SQL messages.
|
protected UserInfo |
getUserInfo()
Returns the UserInfo for getting mboSets.
|
void |
syncEnded(LdapSyncEvent event)
Called by the Synchronizer at the end of a full or incremental
synchronization to let the listener cleanup any references
to objects that are being held for the duration of the
synchronization process.
|
void |
syncGroup(LdapSyncEvent event)
Called by the Synchronizer when a group data need to be synchronized
with the database.
|
void |
syncGroupMembers(LdapSyncEvent event)
Called by the Synchronizer when a group member data need to be
synchronized with the database.
|
void |
syncStarting(LdapSyncEvent event)
Called by the Synchronizer at the begining of a full or
incremental synchronization to let the listener initialize
itself.
|
void |
syncUser(LdapSyncEvent event)
Called by the Synchronizer when a user data need to be synchronized
with the database.
|
protected java.sql.Connection connection
protected MXLogger logger
protected MXLogger sqlLogger
protected UserInfo userInfo
protected java.sql.Connection getConnection()
protected UserInfo getUserInfo()
protected MXLogger getLogger()
protected MXLogger getSqlLogger()
public void syncStarting(LdapSyncEvent event) throws LdapSyncException
syncStarting
in interface LdapSyncListener
event
- synchronization event that provides additional details
to let the listener initialize itself.LdapSyncException
- if the listener fails to perform the
initialization.public void syncEnded(LdapSyncEvent event) throws LdapSyncException
syncEnded
in interface LdapSyncListener
event
- synchronization event that provides additional details
to the listener.LdapSyncException
- if the listener fails to cleanup.public void syncUser(LdapSyncEvent event) throws LdapSyncException
syncUser
in interface LdapSyncListener
event
- synchronization event that provides additional details
to perform the user data synchronization with database.LdapSyncException
- if the listener fails to perform the
user data synchronization.public void syncGroup(LdapSyncEvent event) throws LdapSyncException
syncGroup
in interface LdapSyncListener
event
- synchronization event that provides additional details
to perform the group data synchronization with database.LdapSyncException
- if the listener fails to perform the
group data synchronization.public void syncGroupMembers(LdapSyncEvent event) throws LdapSyncException
syncGroupMembers
in interface LdapSyncListener
event
- synchronization event that provides additional details
to perform the group member data synchronization
with database.LdapSyncException
- if the listener fails to perform the
group member data synchronization.