Class GuichetAlertConfig
java.lang.Object
fr.paris.lutece.plugins.workflow.modules.alertgru.web.alertconfig.impl.GuichetAlertConfig
- All Implemented Interfaces:
IAlertConfig
This class represents a configuration for the guichet alert
-
Constructor Summary
ConstructorsConstructorDescriptionGuichetAlertConfig(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
-
GuichetAlertConfig
public GuichetAlertConfig(jakarta.servlet.http.HttpServletRequest request, AlertGruTaskConfig config) 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
-
getValidator
Gives the validator for this alert configuration- Specified by:
getValidatorin interfaceIAlertConfig- Returns:
- the validator
-
addConfig
public void addConfig()Adds this alert configuration- Specified by:
addConfigin interfaceIAlertConfig
-
removeConfig
public void removeConfig()Removes this alert configuration- Specified by:
removeConfigin interfaceIAlertConfig
-