Class EmailNotificationConfig
java.lang.Object
fr.paris.lutece.plugins.workflow.modules.notifygru.web.notificationconfig.impl.EmailNotificationConfig
- All Implemented Interfaces:
INotificationConfig
This class represents a configuration for the email notification
-
Constructor Summary
ConstructorsConstructorDescriptionEmailNotificationConfig(jakarta.servlet.http.HttpServletRequest request, TaskNotifyGruConfig config) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds this notification configurationgetName()Gives the name of the notification configurationfr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationTypeget notification typeGives the validator for this notification configurationbooleanisActive()Tests if this notification configuration is active or notvoidRemoves this notification configurationvoidsetActive(boolean bActive) Activates or deactivates this notification configuration depending to the specified boolean
-
Constructor Details
-
EmailNotificationConfig
public EmailNotificationConfig(jakarta.servlet.http.HttpServletRequest request, TaskNotifyGruConfig config) Constructor- Parameters:
request- the request used by this configurationconfig- the configuration of the task
-
-
Method Details
-
getName
Gives the name of the notification configuration- Specified by:
getNamein interfaceINotificationConfig- Returns:
- the name
-
isActive
public boolean isActive()Tests if this notification configuration is active or not- Specified by:
isActivein interfaceINotificationConfig- Returns:
trueif the notification configuration is active,falseotherwise
-
setActive
public void setActive(boolean bActive) Activates or deactivates this notification configuration depending to the specified boolean- Specified by:
setActivein interfaceINotificationConfig- Parameters:
bActive-trueif this notification configuration must be activated,falseif it must be deactivated
-
getValidator
Gives the validator for this notification configuration- Specified by:
getValidatorin interfaceINotificationConfig- Returns:
- the validator
-
addConfig
public void addConfig()Adds this notification configuration- Specified by:
addConfigin interfaceINotificationConfig
-
removeConfig
public void removeConfig()Removes this notification configuration- Specified by:
removeConfigin interfaceINotificationConfig
-
getNotificationType
public fr.paris.lutece.plugins.grubusiness.business.notification.EnumNotificationType getNotificationType()Description copied from interface:INotificationConfigget notification type- Specified by:
getNotificationTypein interfaceINotificationConfig- Returns:
-