Class EventHandlersCatalog

  • All Implemented Interfaces:
    ConfigurationElement, ConfigurationFile, java.lang.Cloneable

    public class EventHandlersCatalog
    extends AbstractElementList
    This class is used to configure Microstrategy Web's event-handlers. The event-handlers use this catalog to populate their events list and arguments. It includes for each event-handler, what are the events, and for each event, what are the argument and the name of the arguments used. This EventHandlersCatalog is typically configured through the "/WEB-INF/xml/config/events.xml" file.
    Since:
    MicroStrategy Web 9.0.0
    • Constructor Detail

      • EventHandlersCatalog

        public EventHandlersCatalog()
        Default Constructor. Set the name of the node as defined in the xml.
    • Method Detail

      • getVersion

        public java.lang.String getVersion()
        Returns the version of the configuration file
        Returns:
        the version of the configuration file
      • setVersion

        public void setVersion​(java.lang.String version)
        Sets the version of the configuration file
        Parameters:
        version - the version of the configuration file
      • getEventHandler

        public EventHandlerInfo getEventHandler​(int handlerType)
        Get the event handler with the specified type
        Parameters:
        handlerType - The "type" of the event handler to be fetched from the list
        Returns:
        The event handler with the given type
      • newEventHandler

        public EventHandlerInfo newEventHandler​(int type)
        Create a new event handler and add it to the event handler list
        Parameters:
        type - The type (key) for the new event handler to be created
        Returns:
        The new event handler created and added to the list with the given type
      • deleteEventHandler

        public void deleteEventHandler​(int type)
        Delete the event handler with the given type
        Parameters:
        type - The type of the event handler to be deleted