com.xpn.xwiki.plugin.applicationmanager
Class ApplicationManagerMessageTool

java.lang.Object
  extended by com.xpn.xwiki.web.XWikiMessageTool
      extended by com.xpn.xwiki.plugin.applicationmanager.core.plugin.XWikiPluginMessageTool
          extended by com.xpn.xwiki.plugin.applicationmanager.ApplicationManagerMessageTool

public class ApplicationManagerMessageTool
extends XWikiPluginMessageTool

Application Manager plugin translation messages manager.

The main use of this class is construct XWikiPluginMessageTool with the correct ResourceBundle and to list all the message keys used internally in the plugin.

Since:
1.1
Version:
$Id: $

Field Summary
static java.lang.String COMMENT_AUTOUPDATETRANSLATIONS
          Used as comment when automatically update application translations pages.
static java.lang.String COMMENT_CREATEAPPLICATION
          Used as comment when creating a new application.
static java.lang.String COMMENT_IMPORTAPPLICATION
          Used as comment when importing a new application.
static java.lang.String COMMENT_REFRESHALLTRANSLATIONS
          Used as comment when refreshing all applications translations pages.
static java.lang.String COMMENT_RELOADALLAPPLICATIONS
          Used as comment when reloading all applications.
static java.lang.String COMMENT_RELOADAPPLICATION
          Used as comment when reloading an application.
static java.lang.String ERROR_APPDOESNOTEXISTS
          Used as ApplicationManagerException message when failed to find application from provided application name.
static java.lang.String ERROR_APPPAGEALREADYEXISTS
          Used as ApplicationManagerException message when application default page name already exists.
static java.lang.String ERROR_IMORT_IMPORT
          Used as ApplicationManagerException message when failed to load XAR package as list of XWikiDocument.
static java.lang.String ERROR_IMORT_INSTALL
          Used as ApplicationManagerException message when failed to insert loaded XWikiDocument from package into database.
static java.lang.String ERROR_IMORT_PKGDOESNOTEXISTS
          Used as ApplicationManagerException message when provided XAR package does not exists.
static java.lang.String LOG_AUTOUPDATETRANSLATIONS
          Used as Log log message when automatically updating application translations informations failed.
static java.lang.String LOG_CREATEAPP
          Used as Log log message when application creation failed.
static java.lang.String LOG_DELETEAPP
          Used as Log log message when application delete failed.
static java.lang.String LOG_EXPORTAPP
          Used as Log log message when exporting application failed.
static java.lang.String LOG_GETALLAPPS
          Used as Log log message when getting all application descriptors failed.
static java.lang.String LOG_GETAPP
          Used as Log log message when getting application descriptor failed.
static java.lang.String LOG_GETROOTAPP
          Used as Log log message when getting wiki root application failed.
static java.lang.String LOG_IMPORTAPP
          Used as Log log message when importing application failed.
static java.lang.String LOG_REALOADALLAPPS
          Used as Log log message when reloading all applications failed.
static java.lang.String LOG_REFRESHALLTRANSLATIONS
          Used as Log log message when refreshing all applications translations pages.
static java.lang.String LOG_RELOADAPP
          Used as Log log message when reloading application failed.
static java.lang.String MESSAGETOOL_CONTEXT_KEY
          Key to use with Hashtable.get(Object).
 
Fields inherited from class com.xpn.xwiki.web.XWikiMessageTool
bundle, BYTE_ENCODING, context
 
Method Summary
static ApplicationManagerMessageTool getDefault(com.xpn.xwiki.XWikiContext context)
          Get Wiki Manager message tool registered in XWiki context.
 
Methods inherited from class com.xpn.xwiki.plugin.applicationmanager.core.plugin.XWikiPluginMessageTool
get, get, getTranslation
 
Methods inherited from class com.xpn.xwiki.web.XWikiMessageTool
get, get, getDocumentBundle, getDocumentBundleNames, getDocumentBundleProperties, getDocumentBundles, getDocumentBundles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGETOOL_CONTEXT_KEY

public static final java.lang.String MESSAGETOOL_CONTEXT_KEY
Key to use with Hashtable.get(Object).

See Also:
Constant Field Values

COMMENT_CREATEAPPLICATION

public static final java.lang.String COMMENT_CREATEAPPLICATION
Used as comment when creating a new application.

See Also:
Constant Field Values

COMMENT_IMPORTAPPLICATION

public static final java.lang.String COMMENT_IMPORTAPPLICATION
Used as comment when importing a new application.

See Also:
Constant Field Values

COMMENT_RELOADAPPLICATION

public static final java.lang.String COMMENT_RELOADAPPLICATION
Used as comment when reloading an application.

See Also:
Constant Field Values

COMMENT_RELOADALLAPPLICATIONS

public static final java.lang.String COMMENT_RELOADALLAPPLICATIONS
Used as comment when reloading all applications.

See Also:
Constant Field Values

COMMENT_AUTOUPDATETRANSLATIONS

public static final java.lang.String COMMENT_AUTOUPDATETRANSLATIONS
Used as comment when automatically update application translations pages.

See Also:
Constant Field Values

COMMENT_REFRESHALLTRANSLATIONS

public static final java.lang.String COMMENT_REFRESHALLTRANSLATIONS
Used as comment when refreshing all applications translations pages.

See Also:
Constant Field Values

ERROR_APPPAGEALREADYEXISTS

public static final java.lang.String ERROR_APPPAGEALREADYEXISTS
Used as ApplicationManagerException message when application default page name already exists.

See Also:
Constant Field Values

ERROR_IMORT_PKGDOESNOTEXISTS

public static final java.lang.String ERROR_IMORT_PKGDOESNOTEXISTS
Used as ApplicationManagerException message when provided XAR package does not exists.

See Also:
Constant Field Values

ERROR_IMORT_IMPORT

public static final java.lang.String ERROR_IMORT_IMPORT
Used as ApplicationManagerException message when failed to load XAR package as list of XWikiDocument.

See Also:
Constant Field Values

ERROR_IMORT_INSTALL

public static final java.lang.String ERROR_IMORT_INSTALL
Used as ApplicationManagerException message when failed to insert loaded XWikiDocument from package into database.

See Also:
Constant Field Values

ERROR_APPDOESNOTEXISTS

public static final java.lang.String ERROR_APPDOESNOTEXISTS
Used as ApplicationManagerException message when failed to find application from provided application name.

See Also:
Constant Field Values

LOG_CREATEAPP

public static final java.lang.String LOG_CREATEAPP
Used as Log log message when application creation failed.

See Also:
Constant Field Values

LOG_DELETEAPP

public static final java.lang.String LOG_DELETEAPP
Used as Log log message when application delete failed.

See Also:
Constant Field Values

LOG_GETALLAPPS

public static final java.lang.String LOG_GETALLAPPS
Used as Log log message when getting all application descriptors failed.

See Also:
Constant Field Values

LOG_GETAPP

public static final java.lang.String LOG_GETAPP
Used as Log log message when getting application descriptor failed.

See Also:
Constant Field Values

LOG_EXPORTAPP

public static final java.lang.String LOG_EXPORTAPP
Used as Log log message when exporting application failed.

See Also:
Constant Field Values

LOG_IMPORTAPP

public static final java.lang.String LOG_IMPORTAPP
Used as Log log message when importing application failed.

See Also:
Constant Field Values

LOG_RELOADAPP

public static final java.lang.String LOG_RELOADAPP
Used as Log log message when reloading application failed.

See Also:
Constant Field Values

LOG_REALOADALLAPPS

public static final java.lang.String LOG_REALOADALLAPPS
Used as Log log message when reloading all applications failed.

See Also:
Constant Field Values

LOG_AUTOUPDATETRANSLATIONS

public static final java.lang.String LOG_AUTOUPDATETRANSLATIONS
Used as Log log message when automatically updating application translations informations failed.

See Also:
Constant Field Values

LOG_REFRESHALLTRANSLATIONS

public static final java.lang.String LOG_REFRESHALLTRANSLATIONS
Used as Log log message when refreshing all applications translations pages.

See Also:
Constant Field Values

LOG_GETROOTAPP

public static final java.lang.String LOG_GETROOTAPP
Used as Log log message when getting wiki root application failed.

See Also:
Constant Field Values
Method Detail

getDefault

public static ApplicationManagerMessageTool getDefault(com.xpn.xwiki.XWikiContext context)
Get Wiki Manager message tool registered in XWiki context. If not return default.

Parameters:
context - the XWiki context from which to get message tool.
Returns:
the default Wiki Manager message tool.


Copyright © 2004-2009 XWiki. All Rights Reserved.