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, 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 |
---|
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 EventListener
MXException
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
public void trackEvents(EventMessage em) throws MXException
MXException
public boolean isValidPerson(MboRemote eventMbo) throws MXException
eventMbo
- MXException
public boolean isValidEvent(MboRemote eventMbo) throws MXException
eventMbo
- MXException
public void writeToEventTracking(MboRemote eventMbo, java.lang.String eventName) throws MXException
set
- eventMbo
- eventName
- MXException