public final class AdminMessageService extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getFormattedList(List<String> list,
Locale locale)
Format a list of item to include in a message
|
static AdminMessage |
getMessage(javax.servlet.http.HttpServletRequest request)
Returns the message associated to the current request
|
static String |
getMessageRelativeUrl()
Return relative url for the admin message jsp.
|
static String |
getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey)
Returns the Url that display the given message
|
static String |
getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
int nMessageType)
Returns the Url that display the given message
|
static String |
getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
List<? extends ErrorMessage> errors)
Returns the Url that display the given message
|
static String |
getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
Object[] messageArgs,
int nMessageType)
Returns the Url that display the given message
|
static String |
getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
Object[] messageArgs,
String strUrl,
int nMessageType)
Returns the Url that display the given message
|
static String |
getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
Object[] messageArgs,
String strTitleKey,
String strUrl,
String strTarget,
int nMessageType)
Returns the Url that display the given message
|
static String |
getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
Object[] messageArgs,
String strTitleKey,
String strUrl,
String strTarget,
int nMessageType,
Map<String,Object> requestParameters)
Returns the Url that display the given message
|
static String |
getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
Object[] messageArgs,
String strTitleKey,
String strUrl,
String strTarget,
int nMessageType,
Map<String,Object> requestParameters,
String strBackUrl)
Returns the Url that display the given message.
|
static <T> String |
getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
Set<javax.validation.ConstraintViolation<T>> constraintViolations)
Returns the Url that display the given message
|
static String |
getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
String strUrl,
int nMessageType)
Returns the Url that display the given message
|
static String |
getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
String strUrl,
int nMessageType,
Map requestParameters)
Returns the Url that display the given message
|
static String |
getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
String strUrl,
String strTarget)
Returns the Url that display the given message
|
static String |
getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
String strUrl,
String strTarget,
int nMessageType)
Returns the Url that display the given message
|
public static String getMessageUrl(javax.servlet.http.HttpServletRequest request, String strMessageKey)
request
- The HttpRequeststrMessageKey
- The message keypublic static String getMessageUrl(javax.servlet.http.HttpServletRequest request, String strMessageKey, int nMessageType)
request
- The HttpRequeststrMessageKey
- The message keynMessageType
- The message typepublic static String getMessageUrl(javax.servlet.http.HttpServletRequest request, String strMessageKey, Object[] messageArgs, int nMessageType)
messageArgs
- Message argumentsrequest
- The HttpRequeststrMessageKey
- The message keynMessageType
- The message typepublic static String getMessageUrl(javax.servlet.http.HttpServletRequest request, String strMessageKey, String strUrl, String strTarget)
strTarget
- Targetrequest
- The HttpRequeststrMessageKey
- The message keystrUrl
- The Url of the OK buttonpublic static String getMessageUrl(javax.servlet.http.HttpServletRequest request, String strMessageKey, String strUrl, String strTarget, int nMessageType)
strTarget
- The url target if not "_self"request
- The HttpRequeststrMessageKey
- The message keystrUrl
- The Url of the Ok buttonnMessageType
- The message typepublic static String getMessageUrl(javax.servlet.http.HttpServletRequest request, String strMessageKey, String strUrl, int nMessageType)
request
- The HttpRequeststrMessageKey
- The message keystrUrl
- The Url of the Ok buttonnMessageType
- The message typepublic static String getMessageUrl(javax.servlet.http.HttpServletRequest request, String strMessageKey, String strUrl, int nMessageType, Map requestParameters)
request
- The HttpRequeststrMessageKey
- The message keystrUrl
- The Url of the Ok buttonnMessageType
- The message typerequestParameters
- a collection of parameterspublic static String getMessageUrl(javax.servlet.http.HttpServletRequest request, String strMessageKey, Object[] messageArgs, String strUrl, int nMessageType)
messageArgs
- Message Argumentsrequest
- The HttpRequeststrMessageKey
- The message keystrUrl
- The Url of the Ok buttonnMessageType
- The message typepublic static String getMessageUrl(javax.servlet.http.HttpServletRequest request, String strMessageKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nMessageType)
messageArgs
- Message ArgumentsstrTarget
- The url target if not "_self"strTitleKey
- The title keynMessageType
- The message typerequest
- The HttpRequeststrMessageKey
- The message keystrUrl
- The Url of the Ok buttonpublic static String getMessageUrl(javax.servlet.http.HttpServletRequest request, String strMessageKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nMessageType, Map<String,Object> requestParameters)
messageArgs
- Message ArgumentsstrTarget
- The url target if not "_self"strTitleKey
- The title keynMessageType
- The message typerequest
- The HttpRequeststrMessageKey
- The message keystrUrl
- The Url of the Ok buttonrequestParameters
- a collection of parameterspublic static <T> String getMessageUrl(javax.servlet.http.HttpServletRequest request, String strMessageKey, Set<javax.validation.ConstraintViolation<T>> constraintViolations)
T
- The type of the bean that has been validatedrequest
- The HTTP requeststrMessageKey
- The message keyconstraintViolations
- The set of violationspublic static String getMessageUrl(javax.servlet.http.HttpServletRequest request, String strMessageKey, List<? extends ErrorMessage> errors)
request
- The HTTP requeststrMessageKey
- The message keyerrors
- The set of violationspublic static String getMessageUrl(javax.servlet.http.HttpServletRequest request, String strMessageKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nMessageType, Map<String,Object> requestParameters, String strBackUrl)
request
- The HttpRequeststrMessageKey
- The message keymessageArgs
- Message ArgumentsstrTitleKey
- The title keystrUrl
- The Url of the Ok buttonstrTarget
- The url target if not "_self"nMessageType
- The message typerequestParameters
- a collection of parametersstrBackUrl
- the str back urlpublic static AdminMessage getMessage(javax.servlet.http.HttpServletRequest request)
request
- The HttpRequestpublic static String getMessageRelativeUrl()
Copyright © 2020 City of Paris. All rights reserved.