public class DMEventListener extends java.lang.Object implements EventListener, InternalEventListener, FixedLoggers
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, 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 |
|---|
DMEventListener(java.lang.String pkgDefName,
java.lang.String source)
Constructor of DMEventListener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
eventAction(EventMessage em)
For ADD,UPDATE and DELETE track the events and populate tracking table.
|
boolean |
eventValidate(EventMessage em)
Validate the event
|
boolean |
isValidEvent(MboRemote eventMbo)
Finds if valid event or not i.e all owners are part of the package
|
boolean |
isValidPerson(MboRemote eventMbo)
Finds if owner of the mbo is a valid person in DMROLE or not.
|
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
|
void |
trackEvents(EventMessage em)
Record the events for deployment manager's change tracking.
|
void |
writeToEventTracking(MboRemote eventMbo,
java.lang.String eventName)
Write events to eventtracking table
|
public DMEventListener(java.lang.String pkgDefName,
java.lang.String source)
pkgDefName - public void eventAction(EventMessage em) throws MXException
eventAction in interface EventListenerMXExceptionpublic boolean eventValidate(EventMessage em) throws MXException
eventValidate in interface EventListenerMXExceptionpublic void postCommitEventAction(EventMessage em) throws MXException
postCommitEventAction in interface EventListenerMXExceptionpublic void preSaveEventAction(EventMessage em) throws MXException
preSaveEventAction in interface EventListenerMXExceptionpublic void preSaveInternalEventAction(EventMessage em) throws MXException
preSaveInternalEventAction in interface InternalEventListenerMXExceptionpublic void postSaveInternalEventAction(EventMessage em) throws MXException
postSaveInternalEventAction in interface InternalEventListenerMXExceptionpublic void trackEvents(EventMessage em) throws MXException
MXExceptionpublic boolean isValidPerson(MboRemote eventMbo) throws MXException
eventMbo - MXExceptionpublic boolean isValidEvent(MboRemote eventMbo) throws MXException
eventMbo - MXExceptionpublic void writeToEventTracking(MboRemote eventMbo, java.lang.String eventName) throws MXException
set - eventMbo - eventName - MXException