org.itracker.services.util
Class ProjectUtilities
java.lang.Object
org.itracker.services.util.ProjectUtilities
public class ProjectUtilities
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OPTION_SURPRESS_HISTORY_HTML
public static final int OPTION_SURPRESS_HISTORY_HTML
- See Also:
- Constant Field Values
OPTION_ALLOW_ASSIGN_TO_CLOSE
public static final int OPTION_ALLOW_ASSIGN_TO_CLOSE
- See Also:
- Constant Field Values
OPTION_PREDEFINED_RESOLUTIONS
public static final int OPTION_PREDEFINED_RESOLUTIONS
- See Also:
- Constant Field Values
OPTION_ALLOW_SELF_REGISTERED_CREATE
public static final int OPTION_ALLOW_SELF_REGISTERED_CREATE
- See Also:
- Constant Field Values
OPTION_ALLOW_SELF_REGISTERED_VIEW_ALL
public static final int OPTION_ALLOW_SELF_REGISTERED_VIEW_ALL
- See Also:
- Constant Field Values
OPTION_NO_ATTACHMENTS
public static final int OPTION_NO_ATTACHMENTS
- See Also:
- Constant Field Values
OPTION_LITERAL_HISTORY_HTML
public static final int OPTION_LITERAL_HISTORY_HTML
- See Also:
- Constant Field Values
getStatusName
public static String getStatusName(Status status)
- Returns the localized name of the given status for the application
default locale.
- Parameters:
status - enum constant of which we want the localized name
- Returns:
- name in the current locale
getStatusName
public static String getStatusName(Status status,
Locale locale)
- Returns the localized name of the given status for the given locale.
- Parameters:
status - enum constant of which we want the localized namelocale - desired locale
- Returns:
- name in the given locale or "MISSING RESOURCE " + resource key
if no resource could be found
getStatusNames
public static Map<Status,String> getStatusNames()
- Returns:
- unmodifiable map of status names for the application default Locale
getStatusNames
public static Map<Status,String> getStatusNames(Locale locale)
- This method loads the status names in the cache if they're not
found in it.
The returned map is cached for future requests.
- Parameters:
locale -
- Returns:
- unmodifiable map of status names for the requested Locale
hasOption
public static boolean hasOption(int option,
int currentOptions)
getOptions
public static Integer[] getOptions(int currentOptions)
getScriptPriorityLabelKey
public static String getScriptPriorityLabelKey(Integer fieldId)
getScriptPrioritySize
public static String getScriptPrioritySize()
Copyright © 2002-2012 itracker. All Rights Reserved.