Class SiteMessage
java.lang.Object
fr.paris.lutece.portal.service.message.SiteMessage
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CustomSiteMessage
The class provides a bean to hold message box informations
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Url of the message box Ok buttonReturns the localized text of the messageReturns the localized text of the messageintgetType()Get the type of messageintgetUrl()Returns the Url of the message box Ok buttonvoidsetBackUrl(String strBackUrl) set the back urlvoidsetTypeButton(int nTypeButton)
-
Field Details
-
TYPE_INFO
public static final int TYPE_INFO- See Also:
-
TYPE_QUESTION
public static final int TYPE_QUESTION- See Also:
-
TYPE_ERROR
public static final int TYPE_ERROR- See Also:
-
TYPE_WARNING
public static final int TYPE_WARNING- See Also:
-
TYPE_CONFIRMATION
public static final int TYPE_CONFIRMATION- See Also:
-
TYPE_STOP
public static final int TYPE_STOP- See Also:
-
TYPE_BUTTON_HIDDEN
public static final int TYPE_BUTTON_HIDDEN- See Also:
-
TYPE_BUTTON_BACK
public static final int TYPE_BUTTON_BACK- See Also:
-
TYPE_BUTTON_CANCEL
public static final int TYPE_BUTTON_CANCEL- See Also:
-
-
Constructor Details
-
SiteMessage
public SiteMessage(String strTextKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nType, int nTypeButton, Map<String, Object> requestParameters, String strBackUrl) - Parameters:
strTextKey- I18n key for the message bodymessageArgs- Arguments for the strTextKey or nullstrTitleKey- I18n key for the message titlestrUrl- The url for the Ok buttonstrTarget- Target for the form (_blank, _self, ...)nType- Message type (TYPE_INFO, TYPE_QUESTION, ...)nTypeButton- Type of Cancel buttonrequestParameters- Request parameters as a MapstrBackUrl- the back url
-
-
Method Details
-
getType
public int getType()Get the type of message- Returns:
- The message type
-
getText
Returns the localized text of the message- Parameters:
locale- The current locale- Returns:
- The localized text of the message
-
getTitle
Returns the localized text of the message- Parameters:
locale- The current locale- Returns:
- The localized text of the message
-
getUrl
Returns the Url of the message box Ok button- Returns:
- the Url of the Ok button
-
getTarget
Returns the Url of the message box Ok button- Returns:
- the Url of the Ok button
-
getTypeButton
public int getTypeButton()- Returns:
- type of button
-
setTypeButton
public void setTypeButton(int nTypeButton) - Parameters:
nTypeButton- The Type of cancel button
-
getRequestParameters
- Returns:
- the request parameters.
-
setBackUrl
set the back url- Parameters:
strBackUrl- the back url
-
getBackUrl
- Returns:
- back url
-