com.pyxis.greenhopper.jira.customfields
Class ReleasedVersionHistoryCFType

java.lang.Object
  extended by com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType<java.util.Collection<S>,S>
      extended by com.atlassian.jira.issue.customfields.impl.AbstractMultiCFType<com.atlassian.jira.project.version.Version>
          extended by com.atlassian.jira.issue.customfields.impl.VersionCFType
              extended by com.pyxis.greenhopper.jira.customfields.ReleasedVersionHistoryCFType
All Implemented Interfaces:
com.atlassian.jira.imports.project.customfield.ProjectImportableCustomField, com.atlassian.jira.issue.customfields.CustomFieldType<java.util.Collection<com.atlassian.jira.project.version.Version>,com.atlassian.jira.project.version.Version>, com.atlassian.jira.issue.customfields.RequiresProjectSelectedMarker, com.atlassian.jira.issue.customfields.SortableCustomField, com.atlassian.jira.issue.fields.rest.RestAwareCustomFieldType, com.atlassian.jira.issue.fields.rest.RestCustomFieldTypeOperations

public class ReleasedVersionHistoryCFType
extends com.atlassian.jira.issue.customfields.impl.VersionCFType

Type for the custom field Greenhopper creates to store historic versions in. This info is used to display charts of already released versions correctly.

Author:
ahennecke

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.issue.customfields.impl.VersionCFType
com.atlassian.jira.issue.customfields.impl.VersionCFType.Visitor<X>
 
Nested classes/interfaces inherited from class com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType
com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType.VisitorBase<X>
 
Field Summary
static java.lang.String RELEASED_VERSION_HISTORY_FIELD
           
 
Fields inherited from class com.atlassian.jira.issue.customfields.impl.AbstractMultiCFType
customFieldValuePersister, genericConfigManager
 
Fields inherited from interface com.atlassian.jira.issue.customfields.CustomFieldType
DEFAULT_VALUE_TYPE
 
Constructor Summary
ReleasedVersionHistoryCFType(com.atlassian.jira.security.PermissionManager permissionManager, com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext, com.atlassian.jira.project.version.VersionManager versionManager, com.atlassian.jira.issue.customfields.persistence.CustomFieldValuePersister customFieldValuePersister, com.atlassian.jira.issue.customfields.manager.GenericConfigManager genericConfigManager, com.atlassian.jira.issue.fields.rest.json.beans.JiraBaseUrls jiraBaseUrls)
          Workaround for some managed objects that are not exposed by JIRA
 
Method Summary
 boolean isRenderable()
          Field is intended for internal use only
 void updateValue(com.atlassian.jira.issue.fields.CustomField field, com.atlassian.jira.issue.Issue issue, java.util.Collection<com.atlassian.jira.project.version.Version> versions)
          Add the to-be-released version to the custom field.
 
Methods inherited from class com.atlassian.jira.issue.customfields.impl.VersionCFType
accept, availableForBulkEdit, compare, convertDbValueToType, convertTypeToDbValue, getChangelogString, getConfigurationItemTypes, getDatabaseType, getFieldTypeInfo, getJsonDefaultValue, getJsonFromIssue, getJsonSchema, getProjectImporter, getRestFieldOperation, getSingularObjectFromString, getStringFromSingularObject, getStringValueFromCustomFieldParams, getTypeComparator, getValueFromCustomFieldParams, getVelocityParameters, isMultiple, validateFromParams
 
Methods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractMultiCFType
convertDbObjectToTypes, convertTypesToDbObjects, createValue, getChangelogValue, getDefaultValue, getValueFromIssue, remove, setDefaultValue
 
Methods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType
assertObjectImplementsType, getDescription, getDescriptor, getI18nBean, getKey, getName, getRelatedIndexers, getVelocityParameters, init, valuesEqual
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RELEASED_VERSION_HISTORY_FIELD

public static final java.lang.String RELEASED_VERSION_HISTORY_FIELD
See Also:
Constant Field Values
Constructor Detail

ReleasedVersionHistoryCFType

public ReleasedVersionHistoryCFType(com.atlassian.jira.security.PermissionManager permissionManager,
                                    com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext,
                                    com.atlassian.jira.project.version.VersionManager versionManager,
                                    com.atlassian.jira.issue.customfields.persistence.CustomFieldValuePersister customFieldValuePersister,
                                    com.atlassian.jira.issue.customfields.manager.GenericConfigManager genericConfigManager,
                                    com.atlassian.jira.issue.fields.rest.json.beans.JiraBaseUrls jiraBaseUrls)
Workaround for some managed objects that are not exposed by JIRA

Method Detail

isRenderable

public boolean isRenderable()
Field is intended for internal use only

Specified by:
isRenderable in interface com.atlassian.jira.issue.customfields.CustomFieldType<java.util.Collection<com.atlassian.jira.project.version.Version>,com.atlassian.jira.project.version.Version>
Overrides:
isRenderable in class com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType<java.util.Collection<com.atlassian.jira.project.version.Version>,com.atlassian.jira.project.version.Version>

updateValue

public void updateValue(com.atlassian.jira.issue.fields.CustomField field,
                        com.atlassian.jira.issue.Issue issue,
                        java.util.Collection<com.atlassian.jira.project.version.Version> versions)
Add the to-be-released version to the custom field. The issue itself will be "swapped" to a sibling or parent version, once that version is released, it'll be added to the custom field as well.

Specified by:
updateValue in interface com.atlassian.jira.issue.customfields.CustomFieldType<java.util.Collection<com.atlassian.jira.project.version.Version>,com.atlassian.jira.project.version.Version>
Overrides:
updateValue in class com.atlassian.jira.issue.customfields.impl.AbstractMultiCFType<com.atlassian.jira.project.version.Version>


Copyright © 2007-2014 Atlassian. All Rights Reserved.