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 |
getValideBuildProviderService(TaskNotifyGruConfig config,
fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
Gets the valide build provider service.
|
static boolean |
isEmailValid(String email)
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 sms)
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 |
isValideBuildAgent(javax.servlet.http.HttpServletRequest request,
TaskNotifyGruConfig config,
AbstractServiceProvider providerService,
Locale locale,
String strApply)
Checks if is valide build agent.
|
static String |
isValideBuildBroadcast(javax.servlet.http.HttpServletRequest request,
TaskNotifyGruConfig config,
AbstractServiceProvider providerService,
Locale locale,
String strApply)
Checks if is valide build broadcast.
|
static String |
isValideBuildEmail(javax.servlet.http.HttpServletRequest request,
TaskNotifyGruConfig config,
AbstractServiceProvider providerService,
Locale locale,
String strApply)
Checks if is valide build email.
|
static String |
isValideBuildGuichet(javax.servlet.http.HttpServletRequest request,
TaskNotifyGruConfig config,
AbstractServiceProvider providerService,
Locale locale,
String strApply)
Checks if is valide build guichet.
|
static String |
isValideBuildProviderService(javax.servlet.http.HttpServletRequest request,
TaskNotifyGruConfig config,
AbstractServiceProvider providerService,
Locale locale,
fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
Checks if is valide build provider service.
|
static String |
isValideBuildSMS(javax.servlet.http.HttpServletRequest request,
TaskNotifyGruConfig config,
AbstractServiceProvider providerService,
Locale locale,
String strApply)
Checks if is valide build sms.
|
static String |
mandotoryParams(String strParams,
String strI18nMessage,
Locale locale)
Mandotory params.
|
public static final String VALUE_CHECKBOX
public static boolean isEmailValid(String email)
email - to validatepublic static boolean isSMSvalid(String sms)
sms - to validatepublic static boolean isRecipientCcValid(String strRecipient)
strRecipient - to validatepublic static String mandotoryParams(String strParams, String strI18nMessage, Locale locale)
strParams - the str paramsstrI18nMessage - the str i18n 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 isValideBuildProviderService(javax.servlet.http.HttpServletRequest request, TaskNotifyGruConfig config, AbstractServiceProvider providerService, Locale locale, fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
request - the requestconfig - the configproviderService - the _provider servicelocale - the localetask - the taskpublic static AbstractServiceProvider getValideBuildProviderService(TaskNotifyGruConfig config, fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
config - the configtask - the taskpublic static String isValideBuildGuichet(javax.servlet.http.HttpServletRequest request, TaskNotifyGruConfig config, AbstractServiceProvider providerService, Locale locale, String strApply)
request - the requestconfig - the configproviderService - the _provider servicelocale - the localestrApply - the str applypublic static String isValideBuildAgent(javax.servlet.http.HttpServletRequest request, TaskNotifyGruConfig config, AbstractServiceProvider providerService, Locale locale, String strApply)
request - the requestconfig - the configproviderService - the _provider servicelocale - the localestrApply - the str applypublic static String isValideBuildEmail(javax.servlet.http.HttpServletRequest request, TaskNotifyGruConfig config, AbstractServiceProvider providerService, Locale locale, String strApply)
request - the requestconfig - the configproviderService - the _provider servicelocale - the localestrApply - the str applypublic static String isValideBuildSMS(javax.servlet.http.HttpServletRequest request, TaskNotifyGruConfig config, AbstractServiceProvider providerService, Locale locale, String strApply)
request - the requestconfig - the configproviderService - the _provider servicelocale - the localestrApply - the str applypublic static String isValideBuildBroadcast(javax.servlet.http.HttpServletRequest request, TaskNotifyGruConfig config, AbstractServiceProvider providerService, Locale locale, String strApply)
request - the requestconfig - the configproviderService - the _provider servicelocale - the localestrApply - the str applyCopyright © 2016 City of Paris. All rights reserved.