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()
MaximoCache
getName
in interface MaximoCache
public void init() throws MXException
init
in interface MaximoCache
MXException
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 unRegisterEventsForKey(java.lang.String key) throws MXException
MXException
public void registerEventsForKey(java.lang.String key) throws MXException
MXException
public void unregisterAllEventListeners() throws MXException
MXException
public void initCollEventListner() throws MXException
MXException
public void initCollectionPersonMap() throws MXException
MXException
public void removeFromCollectionPersonMap(long dmCollectionId) throws MXException
dmCollectionId
- COLLECTIONID for which the person map should be removedMXException
public boolean isValidPerson(long dmCollectionId, java.lang.String userName) throws MXException
dmCollectionId
- COLLECTIONID of the collectionuserName
- User nameMXException
public void addToCollectionPersonMap(long dmCollectionId, java.lang.String roleName, UserInfo userInfo) throws MXException, java.rmi.RemoteException
dmCollectionId
- roleName
- userInfo
- MXException
java.rmi.RemoteException
public void registerAllEventHandlersAtStartup() throws MXException
java.lang.Exception
MXException
public void unregisterEventListenersForCollection(long collectionid) throws MXException
collectionid
- MXException