public final class Validator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
VALUE_CHECKBOX
The Constant VALUE_CHECKBOX.
|
| Modifier and Type | Method and Description |
|---|---|
static AbstractServiceProvider |
getValidProviderService(TaskNotifyGruConfig config,
fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
Gets the valid provider service.
|
static boolean |
isEmailValid(String strEmail)
verify if an email address is correct.
|
static boolean |
isFreemarkerValid(String strFreemarkerTemplateData,
Locale locale,
Object model)
Checks if is freemarker valid.
|
static boolean |
isRecipientCcValid(String strRecipient)
verify if all email address in a list are correct.
|
static boolean |
isSMSvalid(String strSms)
verify if the length of a SMS don't exceed 160 characters.
|
static boolean |
isTelephonNumberValid(String strNumTel)
verify if the telephone number is valid.
|
static String |
isValidAndSetProviderService(javax.servlet.http.HttpServletRequest request,
TaskNotifyGruConfig config,
Locale locale,
fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
Checks if the request has a valid provider service and set it in the configuration in this case
|
static String |
isValidBuildAgent(javax.servlet.http.HttpServletRequest request,
TaskNotifyGruConfig config,
Map<String,Object> model,
Locale locale,
String strApply)
Checks if is valid build agent.
|
static String |
isValidBuildBroadcast(javax.servlet.http.HttpServletRequest request,
TaskNotifyGruConfig config,
Map<String,Object> model,
Locale locale,
String strApply)
Checks if is valid build broadcast.
|
static String |
isValidBuildEmail(javax.servlet.http.HttpServletRequest request,
TaskNotifyGruConfig config,
Map<String,Object> model,
Locale locale,
String strApply)
Checks if is valid build email.
|
static String |
isValidBuildGuichet(javax.servlet.http.HttpServletRequest request,
TaskNotifyGruConfig config,
Map<String,Object> model,
Locale locale,
String strApply)
Checks if is valid build guichet.
|
static String |
isValidBuildSMS(javax.servlet.http.HttpServletRequest request,
TaskNotifyGruConfig config,
Map<String,Object> model,
Locale locale,
String strApply)
Checks if is valid build sms.
|
static String |
mandatoryParams(String strParams,
String strI18nMessage,
Locale locale)
Mandatory params.
|
public static final String VALUE_CHECKBOX
public static boolean isEmailValid(String strEmail)
strEmail - to validatepublic static boolean isSMSvalid(String strSms)
strSms - to validatepublic static boolean isRecipientCcValid(String strRecipient)
strRecipient - to validatepublic static String mandatoryParams(String strParams, String strI18nMessage, Locale locale)
strParams - str valuestrI18nMessage - I18N key error messagelocale - the localepublic static boolean isTelephonNumberValid(String strNumTel)
strNumTel - to validatepublic static boolean isFreemarkerValid(String strFreemarkerTemplateData, Locale locale, Object model)
strFreemarkerTemplateData - the message to sendlocale - of requestmodel - with ressourcepublic static String isValidAndSetProviderService(javax.servlet.http.HttpServletRequest request, TaskNotifyGruConfig config, Locale locale, fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
request - the requestconfig - the configlocale - the localetask - the taskpublic static AbstractServiceProvider getValidProviderService(TaskNotifyGruConfig config, fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
config - the configtask - the taskpublic static String isValidBuildGuichet(javax.servlet.http.HttpServletRequest request, TaskNotifyGruConfig config, Map<String,Object> model, Locale locale, String strApply)
request - the requestconfig - the configmodel - the modellocale - the localestrApply - the str applypublic static String isValidBuildAgent(javax.servlet.http.HttpServletRequest request, TaskNotifyGruConfig config, Map<String,Object> model, Locale locale, String strApply)
request - the requestconfig - the configmodel - the modellocale - the localestrApply - the str applypublic static String isValidBuildEmail(javax.servlet.http.HttpServletRequest request, TaskNotifyGruConfig config, Map<String,Object> model, Locale locale, String strApply)
request - the requestconfig - the configmodel - the modellocale - the localestrApply - the str applypublic static String isValidBuildSMS(javax.servlet.http.HttpServletRequest request, TaskNotifyGruConfig config, Map<String,Object> model, Locale locale, String strApply)
request - the requestconfig - the configmodel - the modellocale - the localestrApply - the str applypublic static String isValidBuildBroadcast(javax.servlet.http.HttpServletRequest request, TaskNotifyGruConfig config, Map<String,Object> model, Locale locale, String strApply)
request - the requestconfig - the configmodel - the modellocale - the localestrApply - the str applyCopyright © 2017 City of Paris. All rights reserved.