Class BroadcastAlertConfig

  • All Implemented Interfaces:
    IAlertConfig

    public class BroadcastAlertConfig
    extends java.lang.Object
    implements IAlertConfig
    This class represents a configuration for the broadcast alert
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addConfig()
      Adds this alert configuration
      java.lang.String getName()
      Gives the name of the alert configuration
      AbstractAlertConfigValidator getValidator()
      Gives the validator for this alert configuration
      boolean isActive()
      Tests if this alert configuration is active or not
      void removeConfig()
      Removes this alert configuration
      void setActive​(boolean bActive)
      Activates or deactivates this alert configuration depending to the specified boolean
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BroadcastAlertConfig

        public BroadcastAlertConfig​(javax.servlet.http.HttpServletRequest request,
                                    AlertGruTaskConfig config)
        Constructor
        Parameters:
        request - the request used by this configuration
        config - the configuration of the task
    • Method Detail

      • getName

        public java.lang.String getName()
        Gives the name of the alert configuration
        Specified by:
        getName in interface IAlertConfig
        Returns:
        the name
      • isActive

        public boolean isActive()
        Tests if this alert configuration is active or not
        Specified by:
        isActive in interface IAlertConfig
        Returns:
        true if the alert configuration is active, false otherwise
      • setActive

        public void setActive​(boolean bActive)
        Activates or deactivates this alert configuration depending to the specified boolean
        Specified by:
        setActive in interface IAlertConfig
        Parameters:
        bActive - true if this alert configuration must be activated, false if it must be deactivated
      • addConfig

        public void addConfig()
        Adds this alert configuration
        Specified by:
        addConfig in interface IAlertConfig
      • removeConfig

        public void removeConfig()
        Removes this alert configuration
        Specified by:
        removeConfig in interface IAlertConfig