com.atlassian.jira.issue.customfields.impl
Class ImportIdLinkCFType

java.lang.Object
  extended by com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType
      extended by com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType
          extended by com.atlassian.jira.issue.customfields.impl.NumberCFType
              extended by com.atlassian.jira.issue.customfields.impl.ImportIdLinkCFType
All Implemented Interfaces:
ProjectImportableCustomField, CustomFieldType, SortableCustomField

public class ImportIdLinkCFType
extends NumberCFType
implements SortableCustomField


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
ImportIdLinkCFType(CustomFieldValuePersister customFieldValuePersister, DoubleConverter doubleConverter, ApplicationProperties applicationProperties, GenericConfigManager genericConfigManager)
           
 
Method Summary
 String availableForBulkEdit(BulkEditBean bulkEditBean)
          Allow the custom field type perform a specific check as to its availability for bulk editing.
 String getChangelogValue(CustomField field, Object value)
          Returns a values to be stored in the change log, example is the id of the changed item.
 Map getVelocityParameters(Issue issue, CustomField field, FieldLayoutItem fieldLayoutItem)
          The custom field may wish to pass parameters to the velocity context beyond the getValueFromIssue methods (eg managers).
 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.NumberCFType
compare, getDatabaseType, getDbValueFromObject, getObjectFromDbValue, getProjectImporter, getSingularObjectFromString, getStringFromSingularObject
 
Methods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType
createValue, getDefaultValue, getStringValueFromCustomFieldParams, getValueFromCustomFieldParams, getValueFromIssue, remove, setDefaultValue, validateFromParams
 
Methods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType
assertObjectImplementsType, getChangelogString, getConfigurationItemTypes, getDescription, getDescriptor, getI18nBean, getKey, getName, getRelatedIndexers, getVelocityParameters, init, isRenderable, valuesEqual
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.issue.customfields.SortableCustomField
compare
 

Constructor Detail

ImportIdLinkCFType

public ImportIdLinkCFType(CustomFieldValuePersister customFieldValuePersister,
                          DoubleConverter doubleConverter,
                          ApplicationProperties applicationProperties,
                          GenericConfigManager genericConfigManager)
Method Detail

updateValue

public void updateValue(CustomField customField,
                        Issue issue,
                        Object value)
Description copied from class: AbstractSingleFieldType
the value does exist, and the new value is different than the existing one.

Specified by:
updateValue in interface CustomFieldType
Overrides:
updateValue in class AbstractSingleFieldType

getVelocityParameters

public Map getVelocityParameters(Issue issue,
                                 CustomField field,
                                 FieldLayoutItem fieldLayoutItem)
Description copied from interface: CustomFieldType
The custom field may wish to pass parameters to the velocity context beyond the getValueFromIssue methods (eg managers).

The values are added to the context for all velocity views (edit, search, view, xml)

Specified by:
getVelocityParameters in interface CustomFieldType
Overrides:
getVelocityParameters in class NumberCFType
Parameters:
issue - The issue currently in context (Note: this will be null in cases like 'default value')
Returns:
A Map of parameters to add to the velocity context, or an empty Map otherwise (never null)

availableForBulkEdit

public String availableForBulkEdit(BulkEditBean bulkEditBean)
Description copied from interface: CustomFieldType
Allow the custom field type perform a specific check as to its availability for bulk editing.

Specified by:
availableForBulkEdit in interface CustomFieldType
Overrides:
availableForBulkEdit in class AbstractCustomFieldType
Returns:
null if available for bulk edit or appropriate unavailable message

getChangelogValue

public String getChangelogValue(CustomField field,
                                Object value)
Description copied from interface: CustomFieldType
Returns a values to be stored in the change log, example is the id of the changed item.

Specified by:
getChangelogValue in interface CustomFieldType
Overrides:
getChangelogValue in class AbstractSingleFieldType
Parameters:
field - CustomField that the value belongs to
value - Transport Object representing the value instance of the CustomField
Returns:
Change log value.


Copyright © 2002-2008 Atlassian. All Rights Reserved.