Class EmailAlertConfig
java.lang.Object
fr.paris.lutece.plugins.workflow.modules.alertgru.web.alertconfig.impl.EmailAlertConfig
- All Implemented Interfaces:
IAlertConfig
This class represents a configuration for the email alert
-
Constructor Summary
ConstructorsConstructorDescriptionEmailAlertConfig(jakarta.servlet.http.HttpServletRequest request, AlertGruTaskConfig config) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds this alert configurationgetName()Gives the name of the alert configurationGives the validator for this alert configurationbooleanisActive()Tests if this alert configuration is active or notvoidRemoves this alert configurationvoidsetActive(boolean bActive) Activates or deactivates this alert configuration depending to the specified boolean
-
Constructor Details
-
EmailAlertConfig
Constructor- Parameters:
request- the request used by this configurationconfig- the configuration of the task
-
-
Method Details
-
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
Gives the validator for this alert configuration- Specified by:
getValidatorin interfaceIAlertConfig- Returns:
- the validator
-