|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spago.event.manager.EventManager
Field Summary | |
protected EventsFacadeIFace |
_eventsFacade
|
Constructor Summary | |
EventManager(EventsFacadeIFace eventsFacade)
Constructor for EventHandler. |
Method Summary | |
void |
associatePluginToEvent(java.lang.String pluginName,
java.lang.String eventName)
This method provide to associate a Plugin to an Event. |
void |
associateRoleToEvent(java.lang.String roleName,
java.lang.String eventName)
This method provide to associate a Role to an Event. |
void |
createNewEvent(java.lang.String key,
java.lang.String description,
java.lang.String type)
This method provide to create a New event This method throws an exception if something goes wrong |
void |
createNewEventType(java.lang.String key,
java.lang.String description)
This method provide to create a New event type This method throws an exception if something goes wrong |
SourceBean |
getAllEvents()
This method provide to return a SourceBean representing all events This method throws an exception if something goes wrong |
SourceBean |
getEventsForRole(java.lang.String roleName)
This method return a SourceBean representing events associated with this role This method throws an exception if something goes wrong |
SourceBean |
getEventsForType(java.lang.String typeEvent)
This method provide to return a SourceBean representing all events with the type identified by typeEvent If typeEvent is equals to "", the method return all events This method throws an exception if something goes wrong |
SourceBean |
getEventsForUser(java.lang.String userId)
This method return the array list rapresenting the events associated with this user This method throws an exception if something goes wrong |
SourceBean |
getEventsType()
This method provide to return a SourceBean representing all event's typologies This method throws an exception if something goes wrong |
SourceBean |
getPluginAssociableWithEvent(java.lang.String eventName,
java.lang.String pluginType)
This method provide to return a SourceBean representing plugin with type identified by pluginType and that is associable with an event identified by eventName This method throws an exception if something goes wrong |
SourceBean |
getPluginsAssociableWithEvent(java.lang.String eventName)
This method provide to return a SourceBean of plugins associable with the event identified by eventName This method throws an exception if something goes wrong |
SourceBean |
getRolesForEvent(java.lang.String eventName)
This method provide to return a SourceBean representing roles associated with the event specified by event name This method throws an exception if something goes wrong |
void |
removeEvent(java.lang.String key)
This method provide to remove the event identified by key, all associations with plugins, roles and all triggers associated to it This method throws an exception if something goes wrong |
void |
removeEventType(java.lang.String key)
This method provide to remove the event type This method throws an exception if something goes wrong or if there are some events associated |
void |
removePluginFromEvent(java.lang.String pluginName,
java.lang.String eventName)
This method provide to remove association between a Plugin and an Event. |
void |
removeRoleFromEvent(java.lang.String roleName,
java.lang.String eventName)
This method provide to remove association between Role and Event This method throws an exception if something goes wrong |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected EventsFacadeIFace _eventsFacade
Constructor Detail |
public EventManager(EventsFacadeIFace eventsFacade)
Method Detail |
public SourceBean getAllEvents() throws java.lang.Exception
getAllEvents
in interface EventManagerIFace
<{Exception}>
- - if some problems occurs during operation
java.lang.Exception
public SourceBean getEventsForType(java.lang.String typeEvent) throws java.lang.Exception
getEventsForType
in interface EventManagerIFace
<{Exception}>
- - if some problems occurs during operation
java.lang.Exception
public SourceBean getPluginsAssociableWithEvent(java.lang.String eventName) throws java.lang.Exception
getPluginsAssociableWithEvent
in interface EventManagerIFace
<{Exception}>
- - if some problems occurs during operation
java.lang.Exception
public SourceBean getPluginAssociableWithEvent(java.lang.String eventName, java.lang.String pluginType) throws java.lang.Exception
getPluginAssociableWithEvent
in interface EventManagerIFace
<{Exception}>
- - if some problems occurs during operation
java.lang.Exception
public void associatePluginToEvent(java.lang.String pluginName, java.lang.String eventName) throws java.lang.Exception
associatePluginToEvent
in interface EventManagerIFace
pluginName
- eventName
-
<{Exception}>
- - if some problems occurs during operation
java.lang.Exception
public void removePluginFromEvent(java.lang.String pluginName, java.lang.String eventName) throws java.lang.Exception
removePluginFromEvent
in interface EventManagerIFace
pluginName
- eventName
-
<{Exception}>
- - if some problems occurs during operation
java.lang.Exception
public SourceBean getEventsType() throws java.lang.Exception
getEventsType
in interface EventManagerIFace
<{Exception}>
- - if some problems occurs during operation
java.lang.Exception
public SourceBean getEventsForRole(java.lang.String roleName) throws java.lang.Exception
getEventsForRole
in interface EventManagerIFace
<{Exception}>
- - if some problems occurs during operation
java.lang.Exception
public SourceBean getEventsForUser(java.lang.String userId) throws java.lang.Exception
getEventsForUser
in interface EventManagerIFace
userId
-
<{Exception}>
- - if some problems occurs during operation
java.lang.Exception
public SourceBean getRolesForEvent(java.lang.String eventName) throws java.lang.Exception
getRolesForEvent
in interface EventManagerIFace
<{Exception}>
- - if some problems occurs during operation
java.lang.Exception
public void removeRoleFromEvent(java.lang.String roleName, java.lang.String eventName) throws java.lang.Exception
removeRoleFromEvent
in interface EventManagerIFace
<{Exception}>
- - if some problems occurs during operation
java.lang.Exception
public void associateRoleToEvent(java.lang.String roleName, java.lang.String eventName) throws java.lang.Exception
associateRoleToEvent
in interface EventManagerIFace
<{Exception}>
- - if some problems occurs during operation
java.lang.Exception
public void createNewEventType(java.lang.String key, java.lang.String description) throws java.lang.Exception
createNewEventType
in interface EventManagerIFace
<{Exception}>
- - if some problems occurs during operation
java.lang.Exception
public void removeEventType(java.lang.String key) throws java.lang.Exception
removeEventType
in interface EventManagerIFace
<{Exception}>
- - if some problems occurs during operation
java.lang.Exception
public void createNewEvent(java.lang.String key, java.lang.String description, java.lang.String type) throws java.lang.Exception
createNewEvent
in interface EventManagerIFace
<{Exception}>
- - if some problems occurs during operation
java.lang.Exception
public void removeEvent(java.lang.String key) throws java.lang.Exception
removeEvent
in interface EventManagerIFace
key
- of event to remove
<{Exception}>
- - if some problems occurs during operation
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |