org.itracker.services.util
Class ProjectUtilities

java.lang.Object
  extended by org.itracker.services.util.ProjectUtilities

public class ProjectUtilities
extends Object


Field Summary
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
           
 
Method Summary
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()
           
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

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 name
locale - 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.