|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.itracker.services.util.CustomFieldUtilities
public class CustomFieldUtilities
| Field Summary | |
|---|---|
static String |
DATE_FORMAT_DATEONLY
|
static String |
DATE_FORMAT_FULL
|
static String |
DATE_FORMAT_TIMEONLY
|
static String |
DATE_FORMAT_UNKNOWN
|
| Constructor Summary | |
|---|---|
CustomFieldUtilities()
|
|
| Method Summary | |
|---|---|
static String |
getCustomFieldLabelKey(Integer fieldId)
Returns the label key for a particular custom field. |
static String |
getCustomFieldName(Integer fieldId)
Returns the label for a custom field in the default locale. |
static String |
getCustomFieldName(Integer fieldId,
Locale locale)
Returns the label for a custom field in the specified locale. |
static CustomFieldValue |
getCustomFieldOptionByValue(List<CustomFieldValue> fields,
String value)
|
static String |
getCustomFieldOptionLabelKey(Integer fieldId,
Integer optionId)
Returns the label key for a particular custom field option. |
static String |
getCustomFieldOptionName(CustomField field,
String value,
Locale locale)
|
static String |
getCustomFieldOptionName(CustomFieldValue option,
Locale locale)
|
static String |
getCustomFieldOptionName(Integer fieldId,
Integer optionId)
Returns the label for a custom field option in the default locale. |
static String |
getCustomFieldOptionName(Integer fieldId,
Integer optionId,
Locale locale)
Returns the label for a custom field option in the specified locale. |
static String |
getCustomFieldOptionName(IssueField field,
Locale locale)
|
static String |
getTypeString(CustomField.Type type)
Returns the string representation of a field type. |
static String |
getTypeString(CustomField.Type type,
Locale locale)
Returns the string representation of a field type. |
static String |
getTypeString(int code,
Locale locale)
Returns the string representation of a field type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DATE_FORMAT_UNKNOWN
public static final String DATE_FORMAT_FULL
public static final String DATE_FORMAT_DATEONLY
public static final String DATE_FORMAT_TIMEONLY
| Constructor Detail |
|---|
public CustomFieldUtilities()
| Method Detail |
|---|
public static String getTypeString(CustomField.Type type)
type - the type to translate
public static String getTypeString(int code,
Locale locale)
code - type code to translatelocale - the locale to translate the type into
public static String getTypeString(CustomField.Type type,
Locale locale)
type - the type to translatelocale - the locale to translate the type into
public static String getCustomFieldLabelKey(Integer fieldId)
fieldId - the CustomField id to return the label key for
public static String getCustomFieldOptionLabelKey(Integer fieldId,
Integer optionId)
fieldId - the CustomField id to return the label key foroptionId - the CustomField option's id to return the label key for
public static String getCustomFieldName(Integer fieldId)
fieldId - the id of the field to return the label for
public static String getCustomFieldName(Integer fieldId,
Locale locale)
fieldId - the id of the field to return the label forlocale - the locale to return the label for
public static String getCustomFieldOptionName(Integer fieldId,
Integer optionId)
fieldId - the id of the field to return the label foroptionId - the id of the field option to return the label for
public static String getCustomFieldOptionName(Integer fieldId,
Integer optionId,
Locale locale)
fieldId - the id of the field to return the label foroptionId - the id of the field option to return the label forlocale - the locale to return the label for
public static final String getCustomFieldOptionName(CustomFieldValue option,
Locale locale)
public static final CustomFieldValue getCustomFieldOptionByValue(List<CustomFieldValue> fields,
String value)
public static final String getCustomFieldOptionName(CustomField field,
String value,
Locale locale)
public static final String getCustomFieldOptionName(IssueField field,
Locale locale)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||