com.vaadin
Class Application.SystemMessages

java.lang.Object
  extended by com.vaadin.Application.SystemMessages
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Application.CustomizedSystemMessages
Enclosing class:
Application

public static class Application.SystemMessages
extends Object
implements Serializable

Contains the system messages used to notify the user about various critical situations that can occur.

Customize by overriding the static Application.getSystemMessages() and returning Application.CustomizedSystemMessages.

The defaults defined in this class are:

See Also:
Serialized Form

Field Summary
protected  String authenticationErrorCaption
           
protected  String authenticationErrorMessage
           
protected  boolean authenticationErrorNotificationEnabled
           
protected  String authenticationErrorURL
           
protected  String communicationErrorCaption
           
protected  String communicationErrorMessage
           
protected  boolean communicationErrorNotificationEnabled
           
protected  String communicationErrorURL
           
protected  String cookiesDisabledCaption
           
protected  String cookiesDisabledMessage
           
protected  boolean cookiesDisabledNotificationEnabled
           
protected  String cookiesDisabledURL
           
protected  String internalErrorCaption
           
protected  String internalErrorMessage
           
protected  boolean internalErrorNotificationEnabled
           
protected  String internalErrorURL
           
protected  String outOfSyncCaption
           
protected  String outOfSyncMessage
           
protected  boolean outOfSyncNotificationEnabled
           
protected  String outOfSyncURL
           
protected  String sessionExpiredCaption
           
protected  String sessionExpiredMessage
           
protected  boolean sessionExpiredNotificationEnabled
           
protected  String sessionExpiredURL
           
 
Method Summary
 String getAuthenticationErrorCaption()
           
 String getAuthenticationErrorMessage()
           
 String getAuthenticationErrorURL()
           
 String getCommunicationErrorCaption()
           
 String getCommunicationErrorMessage()
           
 String getCommunicationErrorURL()
           
 String getCookiesDisabledCaption()
          Returns the caption of the message shown to the user when cookies are disabled in the browser.
 String getCookiesDisabledMessage()
          Returns the message shown to the user when cookies are disabled in the browser.
 String getCookiesDisabledURL()
          Returns the URL the user should be redirected to after dismissing the "you have to enable your cookies" message.
 String getInternalErrorCaption()
           
 String getInternalErrorMessage()
           
 String getInternalErrorURL()
           
 String getOutOfSyncCaption()
           
 String getOutOfSyncMessage()
           
 String getOutOfSyncURL()
           
 String getSessionExpiredCaption()
           
 String getSessionExpiredMessage()
           
 String getSessionExpiredURL()
           
 boolean isAuthenticationErrorNotificationEnabled()
           
 boolean isCommunicationErrorNotificationEnabled()
           
 boolean isCookiesDisabledNotificationEnabled()
          Determines if "cookies disabled" messages should be shown to the end user or not.
 boolean isInternalErrorNotificationEnabled()
           
 boolean isOutOfSyncNotificationEnabled()
           
 boolean isSessionExpiredNotificationEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionExpiredURL

protected String sessionExpiredURL

sessionExpiredNotificationEnabled

protected boolean sessionExpiredNotificationEnabled

sessionExpiredCaption

protected String sessionExpiredCaption

sessionExpiredMessage

protected String sessionExpiredMessage

communicationErrorURL

protected String communicationErrorURL

communicationErrorNotificationEnabled

protected boolean communicationErrorNotificationEnabled

communicationErrorCaption

protected String communicationErrorCaption

communicationErrorMessage

protected String communicationErrorMessage

authenticationErrorURL

protected String authenticationErrorURL

authenticationErrorNotificationEnabled

protected boolean authenticationErrorNotificationEnabled

authenticationErrorCaption

protected String authenticationErrorCaption

authenticationErrorMessage

protected String authenticationErrorMessage

internalErrorURL

protected String internalErrorURL

internalErrorNotificationEnabled

protected boolean internalErrorNotificationEnabled

internalErrorCaption

protected String internalErrorCaption

internalErrorMessage

protected String internalErrorMessage

outOfSyncURL

protected String outOfSyncURL

outOfSyncNotificationEnabled

protected boolean outOfSyncNotificationEnabled

outOfSyncCaption

protected String outOfSyncCaption

outOfSyncMessage

protected String outOfSyncMessage

cookiesDisabledURL

protected String cookiesDisabledURL

cookiesDisabledNotificationEnabled

protected boolean cookiesDisabledNotificationEnabled

cookiesDisabledCaption

protected String cookiesDisabledCaption

cookiesDisabledMessage

protected String cookiesDisabledMessage
Method Detail

getSessionExpiredURL

public String getSessionExpiredURL()
Returns:
null to indicate that the application will be restarted after session expired message has been shown.

isSessionExpiredNotificationEnabled

public boolean isSessionExpiredNotificationEnabled()
Returns:
true to show session expiration message.

getSessionExpiredCaption

public String getSessionExpiredCaption()
Returns:
"" to show no caption.

getSessionExpiredMessage

public String getSessionExpiredMessage()
Returns:
"Take note of any unsaved data, and click here to continue."

getCommunicationErrorURL

public String getCommunicationErrorURL()
Returns:
null to reload the application after communication error message.

isCommunicationErrorNotificationEnabled

public boolean isCommunicationErrorNotificationEnabled()
Returns:
true to show the communication error message.

getCommunicationErrorCaption

public String getCommunicationErrorCaption()
Returns:
"Communication problem"

getCommunicationErrorMessage

public String getCommunicationErrorMessage()
Returns:
"Take note of any unsaved data, and click here to continue."

getAuthenticationErrorURL

public String getAuthenticationErrorURL()
Returns:
null to reload the application after authentication error message.

isAuthenticationErrorNotificationEnabled

public boolean isAuthenticationErrorNotificationEnabled()
Returns:
true to show the authentication error message.

getAuthenticationErrorCaption

public String getAuthenticationErrorCaption()
Returns:
"Authentication problem"

getAuthenticationErrorMessage

public String getAuthenticationErrorMessage()
Returns:
"Take note of any unsaved data, and click here to continue."

getInternalErrorURL

public String getInternalErrorURL()
Returns:
null to reload the current URL after internal error message has been shown.

isInternalErrorNotificationEnabled

public boolean isInternalErrorNotificationEnabled()
Returns:
true to enable showing of internal error message.

getInternalErrorCaption

public String getInternalErrorCaption()
Returns:
"Internal error"

getInternalErrorMessage

public String getInternalErrorMessage()
Returns:
"Please notify the administrator.
Take note of any unsaved data, and click here to continue."

getOutOfSyncURL

public String getOutOfSyncURL()
Returns:
null to reload the application after out of sync message.

isOutOfSyncNotificationEnabled

public boolean isOutOfSyncNotificationEnabled()
Returns:
true to enable showing out of sync message

getOutOfSyncCaption

public String getOutOfSyncCaption()
Returns:
"Out of sync"

getOutOfSyncMessage

public String getOutOfSyncMessage()
Returns:
"Something has caused us to be out of sync with the server.
Take note of any unsaved data, and click here to re-sync."

getCookiesDisabledURL

public String getCookiesDisabledURL()
Returns the URL the user should be redirected to after dismissing the "you have to enable your cookies" message. Typically null.

Returns:
A URL the user should be redirected to after dismissing the message or null to reload the current URL.

isCookiesDisabledNotificationEnabled

public boolean isCookiesDisabledNotificationEnabled()
Determines if "cookies disabled" messages should be shown to the end user or not. If the notification is disabled the user will be immediately redirected to the URL returned by getCookiesDisabledURL().

Returns:
true to show "cookies disabled" messages to the end user, false to redirect to the given URL directly

getCookiesDisabledCaption

public String getCookiesDisabledCaption()
Returns the caption of the message shown to the user when cookies are disabled in the browser.

Returns:
The caption of the "cookies disabled" message

getCookiesDisabledMessage

public String getCookiesDisabledMessage()
Returns the message shown to the user when cookies are disabled in the browser.

Returns:
The "cookies disabled" message


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.