it.eng.spago.event.manager
Class EventsFacade

java.lang.Object
  extended byit.eng.spago.event.manager.EventsFacade
All Implemented Interfaces:
EventManagerIFace, EventsFacadeIFace, PluginManagerIFace, ProfileManagerIFace, TriggerManagerIFace

public class EventsFacade
extends java.lang.Object
implements EventsFacadeIFace


Field Summary
protected  EventManagerIFace _eventManager
           
protected  PluginManagerIFace _pluginManager
           
protected  ProfileManager _profileManager
           
protected  TriggerManagerIFace _triggerManager
           
 
Constructor Summary
EventsFacade()
           
 
Method Summary
 void associatePluginToEvent(java.lang.String pluginName, java.lang.String eventName)
           
 void associateRoleToEvent(java.lang.String roleName, java.lang.String eventName)
           
 void createNewEvent(java.lang.String key, java.lang.String description, java.lang.String type)
           
 void createNewEventType(java.lang.String key, java.lang.String description)
           
 void createNewPlugin(java.lang.String key, java.lang.String description, java.lang.String type)
           
 void createNewPluginType(java.lang.String key, java.lang.String description)
           
 void createNewTrigger(java.lang.String event, java.lang.String plugin, java.lang.String idProfile, java.lang.String typeProfile)
           
 SourceBean getAllEvents()
          see EventManager *
 SourceBean getAllPlugins()
          see PluginManager *
 java.util.ArrayList getAllPluginsByEvent(java.lang.String eventName)
           
 java.util.ArrayList getAllRoles()
           
 java.util.ArrayList getAllRoles(java.lang.String userId)
           
 SourceBean getAllTriggers()
          see TriggerManager *
 SourceBean getAllTriggers(java.lang.String event, java.lang.String plugin, java.lang.String idProfile, java.lang.String typeProfile)
           
 SourceBean getAllTriggersByEvent(java.lang.String eventName)
           
 SourceBean getAllTriggersByEventPlugin(java.lang.String eventName, java.lang.String pluginName)
           
 SourceBean getAllTriggersByPlugin(java.lang.String pluginName)
           
 java.util.ArrayList getAllUsers()
          see ProfileManager *
 java.util.ArrayList getAllUsers(java.lang.String roleId)
           
 java.util.ArrayList getAllUsersTriggered(java.lang.String eventName, java.lang.String pluginName)
           
 SourceBean getEventsForRole(java.lang.String roleName)
           
 SourceBean getEventsForType(java.lang.String typeEvent)
           
 SourceBean getEventsForUser(java.lang.String userId)
           
 SourceBean getEventsType()
           
 SourceBean getPluginAssociableWithEvent(java.lang.String eventName, java.lang.String pluginType)
           
 SourceBean getPluginsAssociableWithEvent(java.lang.String eventName)
           
 SourceBean getPluginsForType(java.lang.String typePlugin)
           
 SourceBean getPluginType()
           
 SourceBean getRolesForEvent(java.lang.String eventName)
           
 boolean isUserTriggered(java.lang.String userId, java.lang.String eventName, java.lang.String pluginName)
           
 void removeEvent(java.lang.String key)
           
 void removeEventType(java.lang.String key)
           
 void removePlugin(java.lang.String key)
           
 void removePluginFromEvent(java.lang.String pluginName, java.lang.String eventName)
           
 void removePluginType(java.lang.String key)
           
 void removeRoleFromEvent(java.lang.String roleName, java.lang.String eventName)
           
 void removeTrigger(java.lang.String event, java.lang.String plugin, java.lang.String idProfile, java.lang.String typeProfile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_eventManager

protected EventManagerIFace _eventManager

_pluginManager

protected PluginManagerIFace _pluginManager

_triggerManager

protected TriggerManagerIFace _triggerManager

_profileManager

protected ProfileManager _profileManager
Constructor Detail

EventsFacade

public EventsFacade()
Method Detail

getAllPluginsByEvent

public java.util.ArrayList getAllPluginsByEvent(java.lang.String eventName)
Specified by:
getAllPluginsByEvent in interface EventsFacadeIFace
See Also:
it.eng.spago.event.TriggerMangerIFace#getAllPluginsByEvent(String)

isUserTriggered

public boolean isUserTriggered(java.lang.String userId,
                               java.lang.String eventName,
                               java.lang.String pluginName)
Specified by:
isUserTriggered in interface EventsFacadeIFace
See Also:
it.eng.spago.event.TriggerManagerIFace#isUserTriggered(String, String, String)

associatePluginToEvent

public void associatePluginToEvent(java.lang.String pluginName,
                                   java.lang.String eventName)
                            throws java.lang.Exception
Specified by:
associatePluginToEvent in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
EventManagerIFace.associatePluginToEvent(String, String)

getAllEvents

public SourceBean getAllEvents()
                        throws java.lang.Exception
Description copied from interface: EventsFacadeIFace
see EventManager *

Specified by:
getAllEvents in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
EventManagerIFace.getAllEvents()

getAllPlugins

public SourceBean getAllPlugins()
                         throws java.lang.Exception
Description copied from interface: EventsFacadeIFace
see PluginManager *

Specified by:
getAllPlugins in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
PluginManagerIFace.getAllPlugins()

getEventsForRole

public SourceBean getEventsForRole(java.lang.String roleName)
                            throws java.lang.Exception
Specified by:
getEventsForRole in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
EventManagerIFace.getEventsForRole(String)

getEventsForType

public SourceBean getEventsForType(java.lang.String typeEvent)
                            throws java.lang.Exception
Specified by:
getEventsForType in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
EventManagerIFace.getEventsForType(String)

getEventsForUser

public SourceBean getEventsForUser(java.lang.String userId)
                            throws java.lang.Exception
Specified by:
getEventsForUser in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
EventManagerIFace.getEventsForUser(String)

getEventsType

public SourceBean getEventsType()
                         throws java.lang.Exception
Specified by:
getEventsType in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
EventManagerIFace.getEventsType()

getPluginAssociableWithEvent

public SourceBean getPluginAssociableWithEvent(java.lang.String eventName,
                                               java.lang.String pluginType)
                                        throws java.lang.Exception
Specified by:
getPluginAssociableWithEvent in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
EventManagerIFace.getPluginAssociableWithEvent(String, String)

getPluginsAssociableWithEvent

public SourceBean getPluginsAssociableWithEvent(java.lang.String eventName)
                                         throws java.lang.Exception
Specified by:
getPluginsAssociableWithEvent in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
EventManagerIFace.getPluginsAssociableWithEvent(String)

removePluginFromEvent

public void removePluginFromEvent(java.lang.String pluginName,
                                  java.lang.String eventName)
                           throws java.lang.Exception
Specified by:
removePluginFromEvent in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
EventManagerIFace.removePluginFromEvent(String, String)

getPluginsForType

public SourceBean getPluginsForType(java.lang.String typePlugin)
                             throws java.lang.Exception
Specified by:
getPluginsForType in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
PluginManagerIFace.getPluginsForType(String)

getPluginType

public SourceBean getPluginType()
                         throws java.lang.Exception
Specified by:
getPluginType in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
PluginManagerIFace.getPluginType()

createNewPlugin

public void createNewPlugin(java.lang.String key,
                            java.lang.String description,
                            java.lang.String type)
                     throws java.lang.Exception
Specified by:
createNewPlugin in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
PluginManagerIFace.createNewPlugin(String, String, String)

removePlugin

public void removePlugin(java.lang.String key)
                  throws java.lang.Exception
Specified by:
removePlugin in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
PluginManagerIFace.removePlugin(String)

createNewEventType

public void createNewEventType(java.lang.String key,
                               java.lang.String description)
                        throws java.lang.Exception
Specified by:
createNewEventType in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
EventManagerIFace.createNewEventType(String, String)

createNewEvent

public void createNewEvent(java.lang.String key,
                           java.lang.String description,
                           java.lang.String type)
                    throws java.lang.Exception
Specified by:
createNewEvent in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
EventManagerIFace.createNewEvent(String, String, String)

getAllTriggers

public SourceBean getAllTriggers()
                          throws java.lang.Exception
Description copied from interface: EventsFacadeIFace
see TriggerManager *

Specified by:
getAllTriggers in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
TriggerManagerIFace.getAllTriggers()

getAllTriggers

public SourceBean getAllTriggers(java.lang.String event,
                                 java.lang.String plugin,
                                 java.lang.String idProfile,
                                 java.lang.String typeProfile)
                          throws java.lang.Exception
Specified by:
getAllTriggers in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
TriggerManagerIFace.getAllTriggers(String, String, String, String)

getAllTriggersByEvent

public SourceBean getAllTriggersByEvent(java.lang.String eventName)
                                 throws java.lang.Exception
Specified by:
getAllTriggersByEvent in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
TriggerManagerIFace.getAllTriggersByEvent(String)

getAllTriggersByEventPlugin

public SourceBean getAllTriggersByEventPlugin(java.lang.String eventName,
                                              java.lang.String pluginName)
                                       throws java.lang.Exception
Specified by:
getAllTriggersByEventPlugin in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
TriggerManagerIFace.getAllTriggersByEventPlugin(String, String)

getAllUsersTriggered

public java.util.ArrayList getAllUsersTriggered(java.lang.String eventName,
                                                java.lang.String pluginName)
                                         throws java.lang.Exception
Specified by:
getAllUsersTriggered in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
TriggerManagerIFace.getAllUsersTriggered(String, String)

removeTrigger

public void removeTrigger(java.lang.String event,
                          java.lang.String plugin,
                          java.lang.String idProfile,
                          java.lang.String typeProfile)
                   throws java.lang.Exception
Specified by:
removeTrigger in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
TriggerManagerIFace.removeTrigger(String, String, String, String)

getAllTriggersByPlugin

public SourceBean getAllTriggersByPlugin(java.lang.String pluginName)
                                  throws java.lang.Exception
Specified by:
getAllTriggersByPlugin in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
TriggerManagerIFace.getAllTriggersByPlugin(String)

getRolesForEvent

public SourceBean getRolesForEvent(java.lang.String eventName)
                            throws java.lang.Exception
Specified by:
getRolesForEvent in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
EventManagerIFace.getRolesForEvent(String)

associateRoleToEvent

public void associateRoleToEvent(java.lang.String roleName,
                                 java.lang.String eventName)
                          throws java.lang.Exception
Specified by:
associateRoleToEvent in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
EventManagerIFace.associateRoleToEvent(String, String)

removeRoleFromEvent

public void removeRoleFromEvent(java.lang.String roleName,
                                java.lang.String eventName)
                         throws java.lang.Exception
Specified by:
removeRoleFromEvent in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
EventManagerIFace.removeRoleFromEvent(String, String)

createNewPluginType

public void createNewPluginType(java.lang.String key,
                                java.lang.String description)
                         throws java.lang.Exception
Specified by:
createNewPluginType in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
PluginManagerIFace.createNewPluginType(String, String)

removePluginType

public void removePluginType(java.lang.String key)
                      throws java.lang.Exception
Specified by:
removePluginType in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
PluginManagerIFace.removePluginType(String)

removeEventType

public void removeEventType(java.lang.String key)
                     throws java.lang.Exception
Specified by:
removeEventType in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
EventManagerIFace.removeEventType(String)

createNewTrigger

public void createNewTrigger(java.lang.String event,
                             java.lang.String plugin,
                             java.lang.String idProfile,
                             java.lang.String typeProfile)
                      throws java.lang.Exception
Specified by:
createNewTrigger in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
TriggerManagerIFace.createNewTrigger(String, String, String, String)

removeEvent

public void removeEvent(java.lang.String key)
                 throws java.lang.Exception
Specified by:
removeEvent in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
EventManagerIFace.removeEvent(String)

getAllRoles

public java.util.ArrayList getAllRoles()
                                throws java.lang.Exception
Specified by:
getAllRoles in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
ProfileManagerIFace.getAllRoles()

getAllRoles

public java.util.ArrayList getAllRoles(java.lang.String userId)
                                throws java.lang.Exception
Specified by:
getAllRoles in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
ProfileManagerIFace.getAllRoles(String)

getAllUsers

public java.util.ArrayList getAllUsers()
                                throws java.lang.Exception
Description copied from interface: EventsFacadeIFace
see ProfileManager *

Specified by:
getAllUsers in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
ProfileManagerIFace.getAllUsers()

getAllUsers

public java.util.ArrayList getAllUsers(java.lang.String roleId)
                                throws java.lang.Exception
Specified by:
getAllUsers in interface EventsFacadeIFace
Throws:
java.lang.Exception
See Also:
ProfileManagerIFace.getAllUsers(String)