Class EmailAlertConfig
- java.lang.Object
-
- fr.paris.lutece.plugins.workflow.modules.alertgru.web.alertconfig.impl.EmailAlertConfig
-
- All Implemented Interfaces:
IAlertConfig
public class EmailAlertConfig extends java.lang.Object implements IAlertConfig
This class represents a configuration for the email alert
-
-
Constructor Summary
Constructors Constructor Description EmailAlertConfig(javax.servlet.http.HttpServletRequest request, AlertGruTaskConfig config)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConfig()Adds this alert configurationjava.lang.StringgetName()Gives the name of the alert configurationAbstractAlertConfigValidatorgetValidator()Gives the validator for this alert configurationbooleanisActive()Tests if this alert configuration is active or notvoidremoveConfig()Removes this alert configurationvoidsetActive(boolean bActive)Activates or deactivates this alert configuration depending to the specified boolean
-
-
-
Constructor Detail
-
EmailAlertConfig
public EmailAlertConfig(javax.servlet.http.HttpServletRequest request, AlertGruTaskConfig config)Constructor- Parameters:
request- the request used by this configurationconfig- the configuration of the task
-
-
Method Detail
-
getName
public java.lang.String getName()
Gives the name of the alert configuration- Specified by:
getNamein interfaceIAlertConfig- Returns:
- the name
-
isActive
public boolean isActive()
Tests if this alert configuration is active or not- Specified by:
isActivein interfaceIAlertConfig- Returns:
trueif the alert configuration is active,falseotherwise
-
setActive
public void setActive(boolean bActive)
Activates or deactivates this alert configuration depending to the specified boolean- Specified by:
setActivein interfaceIAlertConfig- Parameters:
bActive-trueif this alert configuration must be activated,falseif it must be deactivated
-
addConfig
public void addConfig()
Adds this alert configuration- Specified by:
addConfigin interfaceIAlertConfig
-
removeConfig
public void removeConfig()
Removes this alert configuration- Specified by:
removeConfigin interfaceIAlertConfig
-
getValidator
public AbstractAlertConfigValidator getValidator()
Gives the validator for this alert configuration- Specified by:
getValidatorin interfaceIAlertConfig- Returns:
- the validator
-
-