public class DMCollEventListenerMgr extends java.lang.Object implements MaximoCache
| Modifier and Type | Field and Description |
|---|---|
static DMCollEventListenerMgr |
dmCollEventListenerMgr |
| Constructor and Description |
|---|
DMCollEventListenerMgr()
Constructor to initialize all event lists.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToCollectionPersonMap(long dmCollectionId,
java.lang.String roleName,
UserInfo userInfo)
Find all users for this role and add to collectionPersonMap
|
java.lang.String |
getName()
Returns the name of the cache object.
|
void |
init()
Register listeners for active and change packages
|
void |
initCollectionPersonMap()
Initialize collectionPersonMap.
|
void |
initCollEventListner()
Initialize all Hashmaps needed to keep track the events.
|
boolean |
isValidPerson(long dmCollectionId,
java.lang.String userName)
Should this user's event be tracked for the given collection.
|
void |
registerAllEventHandlersAtStartup()
This method registers all events for collections.
|
void |
registerEventsForKey(java.lang.String key) |
void |
reload()
reload all Event Listeners
|
void |
reload(java.lang.String key)
Reload listeners for a key
|
void |
removeFromCollectionPersonMap(long dmCollectionId)
Remove person map for a collection.
|
void |
unregisterAllEventListeners()
Unregister all event listeners
|
void |
unregisterEventListenersForCollection(long collectionid)
Unregister events for a collection
|
void |
unRegisterEventsForKey(java.lang.String key) |
public static DMCollEventListenerMgr dmCollEventListenerMgr
public DMCollEventListenerMgr()
public java.lang.String getName()
MaximoCachegetName in interface MaximoCachepublic void init()
throws MXException
init in interface MaximoCacheMXExceptionpublic void reload()
throws MXException
reload in interface MaximoCacheMXExceptionpublic void reload(java.lang.String key)
throws MXException
reload in interface MaximoCacheMXExceptionpublic void unRegisterEventsForKey(java.lang.String key)
throws MXException
MXExceptionpublic void registerEventsForKey(java.lang.String key)
throws MXException
MXExceptionpublic void unregisterAllEventListeners()
throws MXException
MXExceptionpublic void initCollEventListner()
throws MXException
MXExceptionpublic void initCollectionPersonMap()
throws MXException
MXExceptionpublic void removeFromCollectionPersonMap(long dmCollectionId)
throws MXException
dmCollectionId - COLLECTIONID for which the person map should be removedMXExceptionpublic boolean isValidPerson(long dmCollectionId,
java.lang.String userName)
throws MXException
dmCollectionId - COLLECTIONID of the collectionuserName - User nameMXExceptionpublic void addToCollectionPersonMap(long dmCollectionId,
java.lang.String roleName,
UserInfo userInfo)
throws MXException,
java.rmi.RemoteException
dmCollectionId - roleName - userInfo - MXExceptionjava.rmi.RemoteExceptionpublic void registerAllEventHandlersAtStartup()
throws MXException
java.lang.ExceptionMXExceptionpublic void unregisterEventListenersForCollection(long collectionid)
throws MXException
collectionid - MXException