Class AdminMessage
- java.lang.Object
-
- fr.paris.lutece.portal.service.message.AdminMessage
-
- All Implemented Interfaces:
java.io.Serializable
public class AdminMessage extends java.lang.Object implements java.io.SerializableThe class provides a bean to hold message box informations- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intTYPE_CONFIRMATIONstatic intTYPE_ERRORstatic intTYPE_INFOstatic intTYPE_QUESTIONstatic intTYPE_STOPstatic intTYPE_WARNING
-
Constructor Summary
Constructors Constructor Description AdminMessage(java.lang.String strTextKey, java.lang.Object[] messageArgs, java.lang.String strTitleKey, java.lang.String strUrl, java.lang.String strTarget, int nType, boolean bCancelButton)Creates a new instance of AppMessageAdminMessage(java.lang.String strTextKey, java.lang.Object[] messageArgs, java.lang.String strTitleKey, java.lang.String strUrl, java.lang.String strTarget, int nType, boolean bCancelButton, java.util.Map<java.lang.String,java.lang.Object> requestParameters)Creates a new instance of AppMessage with request parametersAdminMessage(java.lang.String strTextKey, java.lang.Object[] messageArgs, java.lang.String strTitleKey, java.lang.String strUrl, java.lang.String strTarget, int nType, boolean bCancelButton, java.util.Map<java.lang.String,java.lang.Object> requestParameters, java.lang.String strBackUrl)Creates a new instance of AppMessage with request parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBackUrl()java.util.Map<java.lang.String,java.lang.Object>getRequestParameters()Return the request parametersjava.lang.StringgetTarget()Returns the Url of the message box Ok buttonjava.lang.StringgetText(java.util.Locale locale)Returns the localized text of the messagejava.lang.StringgetTitle(java.util.Locale locale)Returns the localized text of the messageintgetType()Return the type of messagejava.lang.StringgetUrl()Returns the Url of the message box Ok buttonbooleanisCancel()Return if the cancel button is displayvoidsetBackUrl(java.lang.String strBackUrl)set the back urlvoidsetCancel(boolean bCancel)Set the display of cancel button
-
-
-
Field Detail
-
TYPE_INFO
public static final int TYPE_INFO
- See Also:
- Constant Field Values
-
TYPE_QUESTION
public static final int TYPE_QUESTION
- See Also:
- Constant Field Values
-
TYPE_ERROR
public static final int TYPE_ERROR
- See Also:
- Constant Field Values
-
TYPE_WARNING
public static final int TYPE_WARNING
- See Also:
- Constant Field Values
-
TYPE_CONFIRMATION
public static final int TYPE_CONFIRMATION
- See Also:
- Constant Field Values
-
TYPE_STOP
public static final int TYPE_STOP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AdminMessage
public AdminMessage(java.lang.String strTextKey, java.lang.Object[] messageArgs, java.lang.String strTitleKey, java.lang.String strUrl, java.lang.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(java.lang.String strTextKey, java.lang.Object[] messageArgs, java.lang.String strTitleKey, java.lang.String strUrl, java.lang.String strTarget, int nType, boolean bCancelButton, java.util.Map<java.lang.String,java.lang.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(java.lang.String strTextKey, java.lang.Object[] messageArgs, java.lang.String strTitleKey, java.lang.String strUrl, java.lang.String strTarget, int nType, boolean bCancelButton, java.util.Map<java.lang.String,java.lang.Object> requestParameters, java.lang.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 Detail
-
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
public java.lang.String getText(java.util.Locale locale)
Returns the localized text of the message- Parameters:
locale- The current locale- Returns:
- The localized text of the message
-
getTitle
public java.lang.String getTitle(java.util.Locale locale)
Returns the localized text of the message- Parameters:
locale- The current locale- Returns:
- The localized text of the message
-
getUrl
public java.lang.String getUrl()
Returns the Url of the message box Ok button- Returns:
- the Url of the Ok button
-
getTarget
public java.lang.String getTarget()
Returns the Url of the message box Ok button- Returns:
- the Url of the Ok button
-
getRequestParameters
public java.util.Map<java.lang.String,java.lang.Object> getRequestParameters()
Return the request parameters- Returns:
- the request parameters
-
setBackUrl
public void setBackUrl(java.lang.String strBackUrl)
set the back url- Parameters:
strBackUrl- the back url
-
getBackUrl
public java.lang.String getBackUrl()
- Returns:
- back url
-
-