|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.message.AdminMessageService
public final class AdminMessageService
This class provides a service that build messages and deliver the Url to display them
| Method Summary | ||
|---|---|---|
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<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
|
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 |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey)
request - The HttpRequeststrMessageKey - The message key
public static String getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
int nMessageType)
request - The HttpRequeststrMessageKey - The message keynMessageType - The message type
public static String getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
Object[] messageArgs,
int nMessageType)
messageArgs - Message argumentsrequest - The HttpRequeststrMessageKey - The message keynMessageType - The message type
public 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 button
public 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 type
public 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 type
public 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 parameters
public 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 type
public 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 button
public 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 parameters
public 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 violations
public static String getMessageUrl(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
List<ErrorMessage> errors)
request - The HTTP requeststrMessageKey - The message keyerrors - The set of violations
public 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 url
public static AdminMessage getMessage(javax.servlet.http.HttpServletRequest request)
request - The HttpRequest
public static String getMessageRelativeUrl()
public static String getFormattedList(List<String> list,
Locale locale)
list - The list of item as stringlocale - The current locale
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||