public class DMEventListenerMgr extends java.lang.Object implements MaximoCache, FixedLoggers, MboConstants
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
ALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER
Constructor and Description |
---|
DMEventListenerMgr() |
Modifier and Type | Method and Description |
---|---|
java.util.Map |
getActiveEventListeners() |
java.lang.String |
getName()
Returns the name of the cache object.
|
java.util.List |
getPersonsForPackage(java.lang.String pkgDefName,
java.lang.String source)
Returns persons for a package
|
MboRemote |
getPkgDefForNameAndSource(java.lang.String pkgDefName,
java.lang.String source)
For the gives package name and source, return the package definition
|
java.util.List |
getRegisteredMbosForPackage(java.lang.String pkgDefName,
java.lang.String source)
Returns mbos for a package
|
void |
init()
Register listeners for active and change packages
|
void |
loadActiveChangePkgListeners()
Get all packages that are active and type is change and register listeners for these packages
|
void |
loadAllCfgObjsForPkg(java.lang.String pkgDefName,
java.lang.String source,
java.util.List grpV,
UserInfo ui)
Load all config objects for a package
|
void |
loadAllGroupsForPkg(MboRemote pkgDef)
Load all groups for a package and store them in the hashmap.
|
void |
loadPersonsForPkg(MboRemote pkgDef)
Load all persons associated with maxrole for a package and store them in the hashmap.
|
void |
registerListenersForPackage(MboRemote pkgDef)
Get all m
|
void |
registerListnersForMbosInPkg(java.lang.String pkgDefName,
java.lang.String source)
Register the event listener for associated mbos of a mos.
|
void |
reload()
reload all Event Listeners
|
void |
reload(java.lang.String key)
Reload listeners for a package and source
|
void |
unregisterAllEventListeners()
Unregister all event listeners
|
void |
unregisterEventListenerForPackage(java.lang.String pkgDefName,
java.lang.String source,
boolean remove)
Unregister the event listener for a package.
|
public java.lang.String getName()
MaximoCache
getName
in interface MaximoCache
public void init() throws MXException
init
in interface MaximoCache
MXException
public java.util.Map getActiveEventListeners()
public java.util.List getRegisteredMbosForPackage(java.lang.String pkgDefName, java.lang.String source) throws java.lang.Exception
pkgDefName
- source
- java.lang.Exception
public java.util.List getPersonsForPackage(java.lang.String pkgDefName, java.lang.String source) throws java.lang.Exception
pkgDefName
- source
- java.lang.Exception
public void reload() throws MXException
reload
in interface MaximoCache
MXException
public void reload(java.lang.String key) throws MXException
reload
in interface MaximoCache
MXException
public void unregisterEventListenerForPackage(java.lang.String pkgDefName, java.lang.String source, boolean remove) throws MXException
pkgDefName
- Name of package to be unregistered.MXException
public void unregisterAllEventListeners() throws MXException
MXException
public void registerListnersForMbosInPkg(java.lang.String pkgDefName, java.lang.String source) throws MXException
pkgDefName
- source
- MXException
public void registerListenersForPackage(MboRemote pkgDef) throws MXException
pkgDefName
- source
- MXException
public void loadActiveChangePkgListeners() throws MXException
MXException
public void loadAllGroupsForPkg(MboRemote pkgDef) throws MXException, java.rmi.RemoteException
pkgDef
- MXException
java.rmi.RemoteException
public void loadPersonsForPkg(MboRemote pkgDef) throws MXException, java.rmi.RemoteException
pkgDef
- MXException
java.rmi.RemoteException
public void loadAllCfgObjsForPkg(java.lang.String pkgDefName, java.lang.String source, java.util.List grpV, UserInfo ui) throws MXException
pkgDefName
- source
- grpV
- ui
- MXException
public MboRemote getPkgDefForNameAndSource(java.lang.String pkgDefName, java.lang.String source) throws MXException
pkgDefName
- source
- MXException