public class LdapSyncEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
SYNC_ENDED
An event indicating the end of the synchronization.
|
static int |
SYNC_GROUP
An event indicating that group data need to be
synchronized.
|
static int |
SYNC_GROUPMEMBERS
An event indicating that group member data need
to be synchronized.
|
static int |
SYNC_STARTING
An event indicating the start of the synchronization.
|
static int |
SYNC_USER
An event indicating that user data need to be
synchronized.
|
Constructor and Description |
---|
LdapSyncEvent(int eventId,
java.sql.Connection con,
MXLogger logger,
MXLogger sqlLogger,
UserInfo userInfo)
Constructor to be used to indicate start and end events.
|
LdapSyncEvent(int eventId,
DataMap dataMap,
SyncData syncData)
Constructor to be used to indicate user and group data
synchronization events.
|
LdapSyncEvent(int eventId,
MemberDataMap memberDataMap,
SyncData syncData,
java.util.Set members)
Constructor to be used to indicate group member data
synchronization events.
|
Modifier and Type | Method and Description |
---|---|
java.sql.Connection |
getConnection()
Returns the database connection to be used, which
is availabe only for the start and end events.
|
int |
getEventType()
Returns the event id to indicate the type of event.
|
DataMap |
getGroupDataMap()
Returns the group data mapping as defined in the
configuration file.
|
MemberDataMap |
getGroupMemberDataMap()
Returns the group member data mapping as defined in the
configuration file.
|
java.util.Set |
getGroupMembers()
Returns the list of group members.
|
SyncData |
getGroupSyncData()
Returns the group data obtained from the LDAP Server
that should be synchronized to MAXIMO database tables.
|
MXLogger |
getLogger()
Returns the logger object to be used to log messages.
|
MXLogger |
getSqlLogger()
Returns the logger object to be used to log SQL messages.
|
DataMap |
getUserDataMap()
Returns the user data mapping as defined in the
configuration file.
|
UserInfo |
getUserInfo()
Returns the UserInfo for getting MboSets.
|
SyncData |
getUserSyncData()
Returns the user data obtained from the LDAP Server
that should be synchronized to MAXIMO database tables.
|
public static final int SYNC_STARTING
public static final int SYNC_USER
public static final int SYNC_GROUP
public static final int SYNC_GROUPMEMBERS
public static final int SYNC_ENDED
public LdapSyncEvent(int eventId, java.sql.Connection con, MXLogger logger, MXLogger sqlLogger, UserInfo userInfo)
eventId
- event id, either SYNC_STARTING or SYNC_ENDED.con
- database connection.logger
- logger object to be used to log messages.sqlLogger
- logger object to be used to log SQL messages.userInfo
- UserInfo for getting MboSets.public LdapSyncEvent(int eventId, DataMap dataMap, SyncData syncData)
eventId
- event id, either SYNC_USER or SYNC_GROUP.dataMap
- user or group data mapping.syncData
- data from the LDAP Server that should be
synchronized to MAXIMO tables.public LdapSyncEvent(int eventId, MemberDataMap memberDataMap, SyncData syncData, java.util.Set members)
eventId
- event id, SYNC_GROUPMEMBERS.memberDataMap
- group member data mappingsyncData
- group data from the LDAP Server that should be
synchronized to MAXIMO tables.members
- list of user accounts that are members of the
group.public int getEventType()
public java.sql.Connection getConnection()
public UserInfo getUserInfo()
public MXLogger getLogger()
public MXLogger getSqlLogger()
public SyncData getUserSyncData()
public DataMap getUserDataMap()
public SyncData getGroupSyncData()
public DataMap getGroupDataMap()
public MemberDataMap getGroupMemberDataMap()
public java.util.Set getGroupMembers()