public class VMMSyncEvent
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 |
---|
VMMSyncEvent(int eventId,
java.sql.Connection con,
MXLogger logger,
MXLogger sqlLogger,
UserInfo userInfo)
Constructor to be used to indicate start and end events.
|
VMMSyncEvent(int eventId,
MemberDataMap memberDataMap,
VMMSyncData syncData,
java.util.Set members)
Constructor to be used to indicate group member data
synchronization events.
|
VMMSyncEvent(int eventId,
VMMDataMap dataMap,
VMMSyncData syncData)
Constructor to be used to indicate user and group 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.
|
VMMDataMap |
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.
|
VMMSyncData |
getGroupSyncData()
Returns the group data obtained from the VMM 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.
|
VMMDataMap |
getUserDataMap()
Returns the user data mapping as defined in the
configuration file.
|
UserInfo |
getUserInfo()
Returns the UserInfo for getting MboSets.
|
VMMSyncData |
getUserSyncData()
Returns the user data obtained from the VMM 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 VMMSyncEvent(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.public VMMSyncEvent(int eventId, VMMDataMap dataMap, VMMSyncData syncData)
eventId
- event id, either SYNC_USER or SYNC_GROUP.dataMap
- user or group data mapping.syncData
- data from the VMM Server that should be
synchronized to MAXIMO tables.public VMMSyncEvent(int eventId, MemberDataMap memberDataMap, VMMSyncData syncData, java.util.Set members)
eventId
- event id, SYNC_GROUPMEMBERS.memberDataMap
- group member data mappingsyncData
- group data from the VMM 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 VMMSyncData getUserSyncData()
public VMMDataMap getUserDataMap()
public VMMSyncData getGroupSyncData()
public VMMDataMap getGroupDataMap()
public MemberDataMap getGroupMemberDataMap()
public java.util.Set getGroupMembers()