org.opencms.workflow
Class Messages

java.lang.Object
  extended by org.opencms.i18n.A_CmsMessageBundle
      extended by org.opencms.workflow.Messages
All Implemented Interfaces:
I_CmsMessageBundle

public final class Messages
extends A_CmsMessageBundle

Convenience class to access the localized messages of this OpenCms package.

Since:
6.0.0
Version:
$Revision: 1.10 $
Author:
Achim Westermann

Field Summary
static String ERR_BAD_TASKNAME_4
          Message constant for key in the resource bundle.
static String ERR_BAD_TASKNAME_EMPTY_0
          Message constant for key in the resource bundle.
static String GUI_TASK_STATE_ENDED_0
          Message constant for key in the resource bundle.
static String GUI_TASK_STATE_HALTED_0
          Message constant for key in the resource bundle.
static String GUI_TASK_STATE_PREPARED_0
          Message constant for key in the resource bundle.
static String GUI_TASK_STATE_RUNNING_0
          Message constant for key in the resource bundle.
static String GUI_TASK_STATE_START_0
          Message constant for key in the resource bundle.
static String GUI_TASK_STATE_STARTED_0
          Message constant for key in the resource bundle.
static String GUI_TASK_STATE_UNKNOWN_0
          Message constant for key in the resource bundle.
static String GUI_TASK_TYPE_ACTIVE_0
          Message constant for key in the resource bundle.
static String GUI_TASK_TYPE_ALL_0
          Message constant for key in the resource bundle.
static String GUI_TASK_TYPE_DONE_0
          Message constant for key in the resource bundle.
static String GUI_TASK_TYPE_ILLEGAL_0
          Message constant for key in the resource bundle.
static String GUI_TASK_TYPE_NEW_0
          Message constant for key in the resource bundle.
static String GUI_TASK_TYPE_OPEN_0
          Message constant for key in the resource bundle.
 
Method Summary
static I_CmsMessageBundle get()
          Returns an instance of this localized message accessor.
 String getBundleName()
          Returns the bundle name for this OpenCms package.
static String toTaskTypeString(int taskType)
          Small utility-method that allows output of task states in the OpenCms default locale.
static String toTaskTypeString(int taskType, CmsRequestContext context)
          Small utility-method that allows output of task states in the locale of the current user request.
static String toTaskTypeString(int taskType, Locale locale)
          Small utility-method that allows output of task states in the given Locale.
 
Methods inherited from class org.opencms.i18n.A_CmsMessageBundle
container, container, container, container, container, getBundle, getBundle, getOpenCmsMessageBundles, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERR_BAD_TASKNAME_4

public static final String ERR_BAD_TASKNAME_4
Message constant for key in the resource bundle.

See Also:
Constant Field Values

ERR_BAD_TASKNAME_EMPTY_0

public static final String ERR_BAD_TASKNAME_EMPTY_0
Message constant for key in the resource bundle.

See Also:
Constant Field Values

GUI_TASK_STATE_ENDED_0

public static final String GUI_TASK_STATE_ENDED_0
Message constant for key in the resource bundle.

See Also:
Constant Field Values

GUI_TASK_STATE_HALTED_0

public static final String GUI_TASK_STATE_HALTED_0
Message constant for key in the resource bundle.

See Also:
Constant Field Values

GUI_TASK_STATE_PREPARED_0

public static final String GUI_TASK_STATE_PREPARED_0
Message constant for key in the resource bundle.

See Also:
Constant Field Values

GUI_TASK_STATE_RUNNING_0

public static final String GUI_TASK_STATE_RUNNING_0
Message constant for key in the resource bundle.

See Also:
Constant Field Values

GUI_TASK_STATE_START_0

public static final String GUI_TASK_STATE_START_0
Message constant for key in the resource bundle.

See Also:
Constant Field Values

GUI_TASK_STATE_STARTED_0

public static final String GUI_TASK_STATE_STARTED_0
Message constant for key in the resource bundle.

See Also:
Constant Field Values

GUI_TASK_STATE_UNKNOWN_0

public static final String GUI_TASK_STATE_UNKNOWN_0
Message constant for key in the resource bundle.

See Also:
Constant Field Values

GUI_TASK_TYPE_ACTIVE_0

public static final String GUI_TASK_TYPE_ACTIVE_0
Message constant for key in the resource bundle.

See Also:
Constant Field Values

GUI_TASK_TYPE_ALL_0

public static final String GUI_TASK_TYPE_ALL_0
Message constant for key in the resource bundle.

See Also:
Constant Field Values

GUI_TASK_TYPE_DONE_0

public static final String GUI_TASK_TYPE_DONE_0
Message constant for key in the resource bundle.

See Also:
Constant Field Values

GUI_TASK_TYPE_ILLEGAL_0

public static final String GUI_TASK_TYPE_ILLEGAL_0
Message constant for key in the resource bundle.

See Also:
Constant Field Values

GUI_TASK_TYPE_NEW_0

public static final String GUI_TASK_TYPE_NEW_0
Message constant for key in the resource bundle.

See Also:
Constant Field Values

GUI_TASK_TYPE_OPEN_0

public static final String GUI_TASK_TYPE_OPEN_0
Message constant for key in the resource bundle.

See Also:
Constant Field Values
Method Detail

get

public static I_CmsMessageBundle get()
Returns an instance of this localized message accessor.

Returns:
an instance of this localized message accessor

toTaskTypeString

public static String toTaskTypeString(int taskType)
Small utility-method that allows output of task states in the OpenCms default locale.

Parameters:
taskType - One of
Returns:
A string describing the state of the task in the default locale.
See Also:
CmsTaskService, toTaskTypeString(int, CmsRequestContext)

toTaskTypeString

public static String toTaskTypeString(int taskType,
                                      CmsRequestContext context)
Small utility-method that allows output of task states in the locale of the current user request.

Parameters:
taskType - One of
context - the current user's request context.
Returns:
A string describing the state of the task in the default locale.
See Also:
CmsTaskService, toTaskTypeString(int)

toTaskTypeString

public static String toTaskTypeString(int taskType,
                                      Locale locale)
Small utility-method that allows output of task states in the given Locale.

Parameters:
taskType - One of
locale - the locale in which the task state should be given back.
Returns:
A string describing the state of the task in the default locale.
See Also:
CmsTaskService, toTaskTypeString(int)

getBundleName

public String getBundleName()
Returns the bundle name for this OpenCms package.

Returns:
the bundle name for this OpenCms package