public class ProjectUtilities extends Object
Modifier and Type | Field | Description |
---|---|---|
static int |
OPTION_ALLOW_ASSIGN_TO_CLOSE |
|
static int |
OPTION_ALLOW_SELF_REGISTERED_CREATE |
|
static int |
OPTION_ALLOW_SELF_REGISTERED_VIEW_ALL |
|
static int |
OPTION_LITERAL_HISTORY_HTML |
|
static int |
OPTION_NO_ATTACHMENTS |
|
static int |
OPTION_PREDEFINED_RESOLUTIONS |
|
static int |
OPTION_SURPRESS_HISTORY_HTML |
Modifier and Type | Method | Description |
---|---|---|
static Integer[] |
getOptions(int currentOptions) |
|
static String |
getScriptPriorityLabelKey(Integer fieldId) |
|
static String |
getScriptPrioritySize() |
|
static String |
getStatusName(Status status) |
Returns the localized name of the given status for the application
default locale.
|
static String |
getStatusName(Status status,
Locale locale) |
Returns the localized name of the given status for the given locale.
|
static Map<Status,String> |
getStatusNames() |
Deprecated.
|
static Map<Status,String> |
getStatusNames(Locale locale) |
This method loads the status names in the cache if they're not
found in it.
|
static boolean |
hasOption(int option,
int currentOptions) |
public static final int OPTION_SURPRESS_HISTORY_HTML
public static final int OPTION_ALLOW_ASSIGN_TO_CLOSE
public static final int OPTION_PREDEFINED_RESOLUTIONS
public static final int OPTION_ALLOW_SELF_REGISTERED_CREATE
public static final int OPTION_ALLOW_SELF_REGISTERED_VIEW_ALL
public static final int OPTION_NO_ATTACHMENTS
public static final int OPTION_LITERAL_HISTORY_HTML
public static String getStatusName(Status status)
status
- enum constant of which we want the localized namepublic static String getStatusName(Status status, Locale locale)
status
- enum constant of which we want the localized namelocale
- desired locale@Deprecated public static Map<Status,String> getStatusNames()
public static Map<Status,String> getStatusNames(Locale locale)
The returned map is cached for future requests.
public static boolean hasOption(int option, int currentOptions)
public static Integer[] getOptions(int currentOptions)
public static String getScriptPrioritySize()
Copyright © 2002–2019 itracker. All rights reserved.