fr.paris.lutece.portal.service.message
Class AdminMessageService

java.lang.Object
  extended by fr.paris.lutece.portal.service.message.AdminMessageService

public class AdminMessageService
extends java.lang.Object

This class provides a service that build messages and deliver the Url to display them


Constructor Summary
AdminMessageService()
           
 
Method Summary
static AdminMessage getMessage(javax.servlet.http.HttpServletRequest request)
          Returns the message associated to the current request
static java.lang.String getMessageUrl(javax.servlet.http.HttpServletRequest request, java.lang.String strMessageKey)
          Returns the Url that display the given message
static java.lang.String getMessageUrl(javax.servlet.http.HttpServletRequest request, java.lang.String strMessageKey, int nMessageType)
          Returns the Url that display the given message
static java.lang.String getMessageUrl(javax.servlet.http.HttpServletRequest request, java.lang.String strMessageKey, java.lang.Object[] messageArgs, int nMessageType)
          Returns the Url that display the given message
static java.lang.String getMessageUrl(javax.servlet.http.HttpServletRequest request, java.lang.String strMessageKey, java.lang.Object[] messageArgs, java.lang.String strUrl, int nMessageType)
          Returns the Url that display the given message
static java.lang.String getMessageUrl(javax.servlet.http.HttpServletRequest request, java.lang.String strMessageKey, java.lang.Object[] messageArgs, java.lang.String strTitleKey, java.lang.String strUrl, java.lang.String strTarget, int nMessageType)
          Returns the Url that display the given message
static java.lang.String getMessageUrl(javax.servlet.http.HttpServletRequest request, java.lang.String strMessageKey, java.lang.String strUrl, int nMessageType)
          Returns the Url that display the given message
static java.lang.String getMessageUrl(javax.servlet.http.HttpServletRequest request, java.lang.String strMessageKey, java.lang.String strUrl, java.lang.String strTarget)
          Returns the Url that display the given message
static java.lang.String getMessageUrl(javax.servlet.http.HttpServletRequest request, java.lang.String strMessageKey, java.lang.String strUrl, java.lang.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
 

Constructor Detail

AdminMessageService

public AdminMessageService()
Method Detail

getMessageUrl

public static java.lang.String getMessageUrl(javax.servlet.http.HttpServletRequest request,
                                             java.lang.String strMessageKey)
Returns the Url that display the given message

Parameters:
request - The HttpRequest
strMessageKey - The message key
Returns:
The Url of the JSP that display the message

getMessageUrl

public static java.lang.String getMessageUrl(javax.servlet.http.HttpServletRequest request,
                                             java.lang.String strMessageKey,
                                             int nMessageType)
Returns the Url that display the given message

Parameters:
request - The HttpRequest
strMessageKey - The message key
nMessageType - The message type
Returns:
The Url of the JSP that display the message

getMessageUrl

public static java.lang.String getMessageUrl(javax.servlet.http.HttpServletRequest request,
                                             java.lang.String strMessageKey,
                                             java.lang.Object[] messageArgs,
                                             int nMessageType)
Returns the Url that display the given message

Parameters:
messageArgs - Message arguments
request - The HttpRequest
strMessageKey - The message key
nMessageType - The message type
Returns:
The Url of the JSP that display the message

getMessageUrl

public static java.lang.String getMessageUrl(javax.servlet.http.HttpServletRequest request,
                                             java.lang.String strMessageKey,
                                             java.lang.String strUrl,
                                             java.lang.String strTarget)
Returns the Url that display the given message

Parameters:
strTarget - Target
request - The HttpRequest
strMessageKey - The message key
strUrl - The Url of the OK button
Returns:
The Url of the JSP that display the message

getMessageUrl

public static java.lang.String getMessageUrl(javax.servlet.http.HttpServletRequest request,
                                             java.lang.String strMessageKey,
                                             java.lang.String strUrl,
                                             java.lang.String strTarget,
                                             int nMessageType)
Returns the Url that display the given message

Parameters:
strTarget - The url target if not "_self"
request - The HttpRequest
strMessageKey - The message key
strUrl - The Url of the Ok button
nMessageType - The message type
Returns:
The Url of the JSP that display the message

getMessageUrl

public static java.lang.String getMessageUrl(javax.servlet.http.HttpServletRequest request,
                                             java.lang.String strMessageKey,
                                             java.lang.String strUrl,
                                             int nMessageType)
Returns the Url that display the given message

Parameters:
request - The HttpRequest
strMessageKey - The message key
strUrl - The Url of the Ok button
nMessageType - The message type
Returns:
The Url of the JSP that display the message

getMessageUrl

public static java.lang.String getMessageUrl(javax.servlet.http.HttpServletRequest request,
                                             java.lang.String strMessageKey,
                                             java.lang.Object[] messageArgs,
                                             java.lang.String strUrl,
                                             int nMessageType)
Returns the Url that display the given message

Parameters:
messageArgs - Message Arguments
request - The HttpRequest
strMessageKey - The message key
strUrl - The Url of the Ok button
nMessageType - The message type
Returns:
The Url of the JSP that display the message

getMessageUrl

public static java.lang.String getMessageUrl(javax.servlet.http.HttpServletRequest request,
                                             java.lang.String strMessageKey,
                                             java.lang.Object[] messageArgs,
                                             java.lang.String strTitleKey,
                                             java.lang.String strUrl,
                                             java.lang.String strTarget,
                                             int nMessageType)
Returns the Url that display the given message

Parameters:
messageArgs - Message Arguments
strTarget - The url target if not "_self"
strTitleKey - The title key
nMessageType - The message type
request - The HttpRequest
strMessageKey - The message key
strUrl - The Url of the Ok button
Returns:
The Url of the JSP that display the message

getMessage

public static AdminMessage getMessage(javax.servlet.http.HttpServletRequest request)
Returns the message associated to the current request

Parameters:
request - The HttpRequest
Returns:
The message associated to the current request


Copyright © 2007 Mairie de Paris. All Rights Reserved.