plugin
Class IssueOrdererCFType

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 plugin.IssueOrdererCFType
All Implemented Interfaces:
com.atlassian.jira.issue.customfields.CustomFieldType, com.atlassian.jira.issue.customfields.SortableCustomField

public class IssueOrdererCFType
extends com.atlassian.jira.issue.customfields.impl.NumberCFType

The custom field class, represent the numeric value (the order) assigned to each issue, as to sort them in the issue navigator


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
IssueOrdererCFType(com.atlassian.jira.issue.customfields.persistence.CustomFieldValuePersister customFieldValuePersister, com.atlassian.jira.issue.customfields.converters.DoubleConverter doubleConverter, com.atlassian.jira.issue.customfields.manager.GenericConfigManager genericConfigManager)
          
 
Method Summary
 java.util.Map getVelocityParameters(com.atlassian.jira.issue.Issue issue, com.atlassian.jira.issue.fields.CustomField customField, com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem fieldLayoutItem)
          This method allows to retrieve a ValueAssigner object within the columnView_template file to perform certain actions.
 
Methods inherited from class com.atlassian.jira.issue.customfields.impl.NumberCFType
compare, getDatabaseType, getDbValueFromObject, getObjectFromDbValue, getSingularObjectFromString, getStringFromSingularObject
 
Methods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType
createValue, getChangelogValue, getDefaultValue, getStringValueFromCustomFieldParams, getValueFromCustomFieldParams, getValueFromIssue, remove, setDefaultValue, updateValue, validateFromParams
 
Methods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType
assertObjectImplementsType, availableForBulkEdit, 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
 

Constructor Detail

IssueOrdererCFType

public IssueOrdererCFType(com.atlassian.jira.issue.customfields.persistence.CustomFieldValuePersister customFieldValuePersister,
                          com.atlassian.jira.issue.customfields.converters.DoubleConverter doubleConverter,
                          com.atlassian.jira.issue.customfields.manager.GenericConfigManager genericConfigManager)

Method Detail

getVelocityParameters

public java.util.Map getVelocityParameters(com.atlassian.jira.issue.Issue issue,
                                           com.atlassian.jira.issue.fields.CustomField customField,
                                           com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem fieldLayoutItem)
This method allows to retrieve a ValueAssigner object within the columnView_template file to perform certain actions.

Specified by:
getVelocityParameters in interface com.atlassian.jira.issue.customfields.CustomFieldType
Overrides:
getVelocityParameters in class com.atlassian.jira.issue.customfields.impl.NumberCFType
Parameters:
issue - The currently observed issue
customField - The corresponding custom field
fieldLayoutItem - unused
Returns:
A map containing object that will be accessible from the template file


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.