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: 441a6411c089621ee0ea6183b65b4ec49dbb350b $

Field Summary
static String COMMENT_AUTOUPDATETRANSLATIONS
          Used as comment when automatically update application translations pages.
static String COMMENT_CREATEAPPLICATION
          Used as comment when creating a new application.
static String COMMENT_IMPORTAPPLICATION
          Used as comment when importing a new application.
static String COMMENT_REFRESHALLTRANSLATIONS
          Used as comment when refreshing all applications translations pages.
static String COMMENT_RELOADALLAPPLICATIONS
          Used as comment when reloading all applications.
static String COMMENT_RELOADAPPLICATION
          Used as comment when reloading an application.
static String ERROR_APPDOESNOTEXISTS
          Used as ApplicationManagerException message when failed to find application from provided application name.
static String ERROR_APPPAGEALREADYEXISTS
          Used as ApplicationManagerException message when application default page name already exists.
static String ERROR_IMORT_IMPORT
          Used as ApplicationManagerException message when failed to load XAR package as list of XWikiDocument.
static String ERROR_IMORT_INSTALL
          Used as ApplicationManagerException message when failed to insert loaded XWikiDocument from package into database.
static String ERROR_IMORT_PKGDOESNOTEXISTS
          Used as ApplicationManagerException message when provided XAR package does not exists.
static String LOG_AUTOUPDATETRANSLATIONS
          Used as log message when automatically updating application translations information failed.
static String LOG_CREATEAPP
          Used as log message when application creation failed.
static String LOG_DELETEAPP
          Used as log message when application delete failed.
static String LOG_EXPORTAPP
          Used as log message when exporting application failed.
static String LOG_GETALLAPPS
          Used as log message when getting all application descriptors failed.
static String LOG_GETAPP
          Used as log message when getting application descriptor failed.
static String LOG_GETROOTAPP
          Used as log message when getting wiki root application failed.
static String LOG_IMPORTAPP
          Used as log message when importing application failed.
static String LOG_REALOADALLAPPS
          Used as log message when reloading all applications failed.
static String LOG_REFRESHALLTRANSLATIONS
          Used as log message when refreshing all applications translations pages.
static String LOG_RELOADAPP
          Used as log message when reloading application failed.
static String MESSAGETOOL_CONTEXT_KEY
          Key to use with Hashtable.get(Object).
 
Fields inherited from class com.xpn.xwiki.web.XWikiMessageTool
bundle, context
 
Method Summary
static ApplicationManagerMessageTool getDefault(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, 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 String MESSAGETOOL_CONTEXT_KEY
Key to use with Hashtable.get(Object).

See Also:
Constant Field Values

COMMENT_CREATEAPPLICATION

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

See Also:
Constant Field Values

COMMENT_IMPORTAPPLICATION

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

See Also:
Constant Field Values

COMMENT_RELOADAPPLICATION

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

See Also:
Constant Field Values

COMMENT_RELOADALLAPPLICATIONS

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

See Also:
Constant Field Values

COMMENT_AUTOUPDATETRANSLATIONS

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

See Also:
Constant Field Values

COMMENT_REFRESHALLTRANSLATIONS

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

See Also:
Constant Field Values

ERROR_APPPAGEALREADYEXISTS

public static final 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 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 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 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 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 String LOG_CREATEAPP
Used as log message when application creation failed.

See Also:
Constant Field Values

LOG_DELETEAPP

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

See Also:
Constant Field Values

LOG_GETALLAPPS

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

See Also:
Constant Field Values

LOG_GETAPP

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

See Also:
Constant Field Values

LOG_EXPORTAPP

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

See Also:
Constant Field Values

LOG_IMPORTAPP

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

See Also:
Constant Field Values

LOG_RELOADAPP

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

See Also:
Constant Field Values

LOG_REALOADALLAPPS

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

See Also:
Constant Field Values

LOG_AUTOUPDATETRANSLATIONS

public static final String LOG_AUTOUPDATETRANSLATIONS
Used as log message when automatically updating application translations information failed.

See Also:
Constant Field Values

LOG_REFRESHALLTRANSLATIONS

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

See Also:
Constant Field Values

LOG_GETROOTAPP

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

See Also:
Constant Field Values
Method Detail

getDefault

public static ApplicationManagerMessageTool getDefault(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-2013 XWiki. All Rights Reserved.