it.eng.spago.event.manager
Interface EventsFacadeIFace

All Superinterfaces:
EventManagerIFace, PluginManagerIFace, ProfileManagerIFace, TriggerManagerIFace
All Known Implementing Classes:
EventsFacade

public interface EventsFacadeIFace
extends EventManagerIFace, PluginManagerIFace, TriggerManagerIFace, ProfileManagerIFace


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)
           
 

Method Detail

getAllEvents

public SourceBean getAllEvents()
                        throws java.lang.Exception
see EventManager *

Specified by:
getAllEvents in interface EventManagerIFace
Throws:
java.lang.Exception

getEventsForType

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

getPluginsAssociableWithEvent

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

getPluginAssociableWithEvent

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

associatePluginToEvent

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

removePluginFromEvent

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

getEventsType

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

getEventsForRole

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

getEventsForUser

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

getRolesForEvent

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

removeRoleFromEvent

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

associateRoleToEvent

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

createNewEventType

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

removeEventType

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

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 EventManagerIFace
Throws:
java.lang.Exception

removeEvent

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

getAllPlugins

public SourceBean getAllPlugins()
                         throws java.lang.Exception
see PluginManager *

Specified by:
getAllPlugins in interface PluginManagerIFace
Throws:
java.lang.Exception

getPluginsForType

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

getPluginType

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

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 PluginManagerIFace
Throws:
java.lang.Exception

removePlugin

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

createNewPluginType

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

removePluginType

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

getAllTriggers

public SourceBean getAllTriggers()
                          throws java.lang.Exception
see TriggerManager *

Specified by:
getAllTriggers in interface TriggerManagerIFace
Throws:
java.lang.Exception

getAllTriggersByEvent

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

getAllTriggersByPlugin

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

getAllTriggersByEventPlugin

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

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 TriggerManagerIFace
Throws:
java.lang.Exception

getAllPluginsByEvent

public java.util.ArrayList getAllPluginsByEvent(java.lang.String eventName)
Specified by:
getAllPluginsByEvent in interface TriggerManagerIFace

isUserTriggered

public boolean isUserTriggered(java.lang.String userId,
                               java.lang.String eventName,
                               java.lang.String pluginName)
Specified by:
isUserTriggered in interface TriggerManagerIFace

getAllUsersTriggered

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

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 TriggerManagerIFace
Throws:
java.lang.Exception

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 TriggerManagerIFace
Throws:
java.lang.Exception

getAllUsers

public java.util.ArrayList getAllUsers()
                                throws java.lang.Exception
see ProfileManager *

Specified by:
getAllUsers in interface ProfileManagerIFace
Throws:
java.lang.Exception

getAllUsers

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

getAllRoles

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

getAllRoles

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