public class DMCollEventListener extends java.lang.Object implements EventListener, InternalEventListener, FixedLoggers
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Constructor and Description |
---|
DMCollEventListener() |
Modifier and Type | Method and Description |
---|---|
void |
addUpdateMboToCollection(MboRemote mbo,
long dmCollectionId,
java.lang.String eventType)
Update the mbo if it is already present, otherwise add the mbo to the collection.
|
void |
deleteFromCollection(MboRemote mbo,
long dmCollectionId)
Delete this object from the collection.
|
void |
eventAction(EventMessage em)
For ADD,UPDATE and DELETE track the events and populate Migration Collection Object table.
|
boolean |
eventValidate(EventMessage em)
Validate the event
|
static DMCollEventListener |
getListener() |
void |
handleAddUpdateEvent(java.util.Vector eventInfoVector,
MboRemote mbo,
java.lang.String eventType)
Handles add and update events.
|
void |
handleDeleteEvent(java.util.Vector eventInfoVector,
MboRemote mbo)
Handles delete event.
|
void |
postCommitEventAction(EventMessage em)
Action after the commit
|
void |
postSaveInternalEventAction(EventMessage em)
Action after the save
|
void |
preSaveEventAction(EventMessage em)
Action before the save
|
void |
preSaveInternalEventAction(EventMessage em)
Action before the save
|
public static DMCollEventListener getListener()
public void eventAction(EventMessage em) throws MXException
eventAction
in interface EventListener
em
- The eventjava.lang.Exception
MXException
public void handleAddUpdateEvent(java.util.Vector eventInfoVector, MboRemote mbo, java.lang.String eventType) throws java.lang.Exception
eventInfoVector
- All events registered for this mbo.mbo
- The mbo of the event.eventType
- whether it is add or updateevent.java.lang.Exception
public void addUpdateMboToCollection(MboRemote mbo, long dmCollectionId, java.lang.String eventType) throws java.lang.Exception
mbo
- The mbo to be added to the collection.dmCollectionId
- Collection ID of the collectioneventType
- add or update eventjava.lang.Exception
public void handleDeleteEvent(java.util.Vector eventInfoVector, MboRemote mbo) throws java.lang.Exception
eventInfoVector
- All events registered for this mbombo
- The mbo of the event.java.lang.Exception
public void deleteFromCollection(MboRemote mbo, long dmCollectionId) throws java.lang.Exception
mbo
- The object to be deleted.dmCollectionId
- The collection ID of the collection.java.lang.Exception
public boolean eventValidate(EventMessage em) throws MXException
eventValidate
in interface EventListener
MXException
public void postCommitEventAction(EventMessage em) throws MXException
postCommitEventAction
in interface EventListener
MXException
public void preSaveEventAction(EventMessage em) throws MXException
preSaveEventAction
in interface EventListener
MXException
public void preSaveInternalEventAction(EventMessage em) throws MXException
preSaveInternalEventAction
in interface InternalEventListener
MXException
public void postSaveInternalEventAction(EventMessage em) throws MXException
postSaveInternalEventAction
in interface InternalEventListener
MXException