Class AdminMessage
java.lang.Object
fr.paris.lutece.portal.service.message.AdminMessage
- All Implemented Interfaces:
Serializable
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 int -
Constructor Summary
ConstructorsConstructorDescriptionAdminMessage(String strTextKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nType, boolean bCancelButton) Creates a new instance of AppMessageAdminMessage(String strTextKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nType, boolean bCancelButton, Map<String, Object> requestParameters) Creates a new instance of AppMessage with request parametersAdminMessage(String strTextKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nType, boolean bCancelButton, Map<String, Object> requestParameters, String strBackUrl) Creates a new instance of AppMessage with request parameters -
Method Summary
Modifier and TypeMethodDescriptionReturn the request parametersReturns the Url of the message box Ok buttonReturns the localized text of the messageReturns the localized text of the messageintgetType()Return the type of messagegetUrl()Returns the Url of the message box Ok buttonbooleanisCancel()Return if the cancel button is displayvoidsetBackUrl(String strBackUrl) set the back urlvoidsetCancel(boolean bCancel) Set the display of cancel button
-
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:
-
-
Constructor Details
-
AdminMessage
public AdminMessage(String strTextKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nType, boolean bCancelButton) Creates a new instance of AppMessage- Parameters:
strTextKey- The message KeystrUrl- The default Button URLmessageArgs- The message argumentsstrTitleKey- The Title keystrTarget- The targetnType- The message TypebCancelButton- Add a Cancel Button
-
AdminMessage
public AdminMessage(String strTextKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nType, boolean bCancelButton, Map<String, Object> requestParameters) Creates a new instance of AppMessage with request parameters- Parameters:
strTextKey- The message KeystrUrl- The default Button URLmessageArgs- The message argumentsstrTitleKey- The Title keystrTarget- The targetnType- The message TypebCancelButton- Add a Cancel ButtonrequestParameters- The Request parameters in a map
-
AdminMessage
public AdminMessage(String strTextKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nType, boolean bCancelButton, Map<String, Object> requestParameters, String strBackUrl) Creates a new instance of AppMessage with request parameters- Parameters:
strTextKey- The message KeystrUrl- The default Button URLmessageArgs- The message argumentsstrTitleKey- The Title keystrTarget- The targetnType- The message TypebCancelButton- Add a Cancel ButtonrequestParameters- The Request parameters in a mapstrBackUrl- the back url
-
-
Method Details
-
getType
public int getType()Return the type of message- Returns:
- the type message
-
isCancel
public boolean isCancel()Return if the cancel button is display- Returns:
- true if the cancel button is display
-
setCancel
public void setCancel(boolean bCancel) Set the display of cancel button- Parameters:
bCancel- the new bCancel
-
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
-
getRequestParameters
Return the request parameters- Returns:
- the request parameters
-
setBackUrl
set the back url- Parameters:
strBackUrl- the back url
-
getBackUrl
- Returns:
- back url
-