|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType com.atlassian.jira.issue.customfields.impl.StringCFType com.atlassian.jira.issue.customfields.impl.TextCFType com.atlassian.jira.issue.customfields.impl.AbstractMultiCFType
Field Summary |
Fields inherited from class com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType |
customFieldValuePersister, FIELD_TYPE_DATE, FIELD_TYPE_NUMBER, FIELD_TYPE_STRING, FIELD_TYPE_TEXT, genericConfigManager, log |
Fields inherited from interface com.atlassian.jira.issue.customfields.CustomFieldType |
DEFAULT_VALUE_TYPE |
Constructor Summary | |
AbstractMultiCFType(CustomFieldValuePersister customFieldValuePersister,
StringConverter stringConverter,
GenericConfigManager genericConfigManager)
Overriden, calls super constructor. |
Method Summary | |
protected Collection |
convertStringsToTypes(Collection strings)
Converts a collection of string representations of underlying type to a collection of underlying types. |
protected abstract Object |
convertStringToType(String string)
Converts a given String to underlying type |
protected Collection |
convertTypesToStrings(Collection typedList)
Converts a collection of underlying types to a collection of string representations of underlying type. |
protected abstract String |
convertTypeToString(Object value)
Converts a given underlying type to String. |
void |
createValue(CustomField customField,
Issue issue,
Object value)
Create a CF value for an issue. |
String |
getChangelogValue(CustomField field,
Object value)
Returns a string representation of the value if not null. |
Object |
getDefaultValue(FieldConfig fieldConfig)
Retrieves the Object representing the default CustomField value for the Custom Field. |
protected abstract Comparator |
getTypeComparator()
Returns a comparator for underlying type of this custom field. |
Object |
getValueFromIssue(CustomField field,
Issue issue)
Retrieves the Object representing the current CustomField value for the given issue. |
void |
setDefaultValue(FieldConfig fieldConfig,
Object value)
Sets the default value for a Custom Field |
void |
updateValue(CustomField customField,
Issue issue,
Object value)
the value does exist, and the new value is different than the existing one. |
Methods inherited from class com.atlassian.jira.issue.customfields.impl.TextCFType |
compare, getDatabaseType, getSingularObjectFromString, getStringFromSingularObject |
Methods inherited from class com.atlassian.jira.issue.customfields.impl.StringCFType |
getDbValueFromObject, getObjectFromDbValue, makeSearchParameter |
Methods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType |
getStringValueFromCustomFieldParams, getValueFromCustomFieldParams, remove, validateFromParams |
Methods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType |
assertObjectImplementsType, availableForBulkEdit, getChangelogString, getConfigurationItemTypes, getDescription, getDescriptor, getI18nBean, getKey, getName, getRelatedIndexers, getVelocityParameters, getVelocityParameters, init, isRenderable, valuesEqual |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractMultiCFType(CustomFieldValuePersister customFieldValuePersister, StringConverter stringConverter, GenericConfigManager genericConfigManager)
Method Detail |
protected abstract Comparator getTypeComparator()
protected abstract String convertTypeToString(Object value)
value
- underlying type
protected abstract Object convertStringToType(String string)
string
- string representation of underlying type
public Object getDefaultValue(FieldConfig fieldConfig)
CustomFieldType
CustomFieldType.getValueFromCustomFieldParams(com.atlassian.jira.issue.customfields.view.CustomFieldParams)
for more detailed notes.
getDefaultValue
in interface CustomFieldType
getDefaultValue
in class AbstractSingleFieldType
CustomFieldType.getDefaultValue(com.atlassian.jira.issue.fields.config.FieldConfig)
public void setDefaultValue(FieldConfig fieldConfig, Object value)
CustomFieldType
setDefaultValue
in interface CustomFieldType
setDefaultValue
in class AbstractSingleFieldType
CustomFieldType.setDefaultValue(com.atlassian.jira.issue.fields.config.FieldConfig, Object)
public void createValue(CustomField customField, Issue issue, Object value)
createValue
in interface CustomFieldType
createValue
in class AbstractSingleFieldType
value
- A Collection
of User
s.public void updateValue(CustomField customField, Issue issue, Object value)
AbstractSingleFieldType
updateValue
in interface CustomFieldType
updateValue
in class AbstractSingleFieldType
CustomFieldType.updateValue(com.atlassian.jira.issue.fields.CustomField, com.atlassian.jira.issue.Issue, Object)
public Object getValueFromIssue(CustomField field, Issue issue)
CustomFieldType
CustomFieldType.getValueFromCustomFieldParams(com.atlassian.jira.issue.customfields.view.CustomFieldParams)
for more detailed notes.
getValueFromIssue
in interface CustomFieldType
getValueFromIssue
in class AbstractSingleFieldType
CustomFieldType.getValueFromIssue(com.atlassian.jira.issue.fields.CustomField, com.atlassian.jira.issue.Issue)
public String getChangelogValue(CustomField field, Object value)
getChangelogValue
in interface CustomFieldType
getChangelogValue
in class AbstractSingleFieldType
field
- not usedvalue
- value to create a change log for
protected final Collection convertTypesToStrings(Collection typedList)
typedList
- a collection of underlying types
protected final Collection convertStringsToTypes(Collection strings)
strings
- a collection of string representations of underlying type
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |