public class FixVersionsSystemField extends AbstractVersionsSystemField implements FixVersionsField, RestFieldOperations
| Modifier and Type | Field and Description |
|---|---|
static String |
CHANGE_ITEM_FIELD |
RELEASED_VERSION_ID, searchLinkGenerator, UNKNOWN_VERSION_ID, UNRELEASED_VERSION_ID, versionHelperBean, versionManagerDEFAULT_MAX_OPTIONS_VALUE, MAX_OPTIONS_NUMBERauthenticationContextORDER_ASCENDING, ORDER_DESCENDING, TEMPLATE_DIRECTORY_PATHMOVE_ISSUE_PARAM_KEY, NO_HEADER_PARAM_KEY, TEMPLATE_DIRECTORY_PATH| Constructor and Description |
|---|
FixVersionsSystemField(VelocityTemplatingEngine templatingEngine,
ApplicationProperties applicationProperties,
VersionManager versionManager,
PermissionManager permissionManager,
JiraAuthenticationContext authenticationContext,
FixForVersionStatisticsMapper fixForVersionStatisticsMapper,
VersionHelperBean versionHelperBean,
FixForVersionSearchHandlerFactory searchHandlerFactory,
JiraBaseUrls jiraBaseUrls,
JqlStringSupport jqlStringSupport,
SearchLinkGenerator searchLinkGenerator,
com.atlassian.event.api.EventPublisher eventPublisher) |
availableForBulkEdit, createValue, getBulkEditHtml, getColumnViewHtml, getCreateHtml, getCurrentVersionIds, getDefaultSortOrder, getDefaultValue, getEditHtml, getFieldTypeInfo, getJsonFromIssue, getJsonSchema, getPossibleVersions, getRelevantParams, getRepresentationFromIssue, getValueFromParams, getVersionManager, getViewHtml, getViewHtml, hasValue, needsMove, populateDefaults, populateForMove, populateFromIssue, populateParamsFromString, updateValue, validateParamsgetVelocityParams, shouldUseRestEndpoint, userPickerEnabledgetColumnCssClass, getHiddenFieldId, getSortComparatorSource, getSortFields, getVelocityParams, prettyPrintChangeHistory, prettyPrintChangeHistorycreateAssociatedSearchHandler, getApplicationProperties, getCreateHtml, getEditHtml, getFieldLayoutItemForBulkOperation, getIssueForBulkOperation, getPermissionManager, getVelocityParams, getVelocityParams, getVelocityParams, getViewHtml, hasBulkUpdatePermission, hasParam, hasPermission, isHidden, populateFromParams, rendererTypesEqual, renderTemplate, validateBulkEditHtmlProperties, valuesEqualcompareTo, equals, getAuthenticationContext, getId, getName, getNameKey, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetColumnCssClass, getColumnViewHtml, getDefaultSortOrder, getHiddenFieldId, getSortComparatorSource, getSortFields, prettyPrintChangeHistory, prettyPrintChangeHistory, prettyPrintChangeHistoryavailableForBulkEdit, createValue, getBulkEditHtml, getCreateHtml, getCreateHtml, getDefaultValue, getEditHtml, getEditHtml, getValueFromParams, getViewHtml, getViewHtml, getViewHtml, hasParam, hasValue, needsMove, populateDefaults, populateForMove, populateFromIssue, populateFromParams, populateParamsFromString, updateValue, validateParamscreateAssociatedSearchHandlergetId, getName, getNameKeycompareTopublic static final String CHANGE_ITEM_FIELD
public FixVersionsSystemField(VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, VersionManager versionManager, PermissionManager permissionManager, JiraAuthenticationContext authenticationContext, FixForVersionStatisticsMapper fixForVersionStatisticsMapper, VersionHelperBean versionHelperBean, FixForVersionSearchHandlerFactory searchHandlerFactory, JiraBaseUrls jiraBaseUrls, JqlStringSupport jqlStringSupport, SearchLinkGenerator searchLinkGenerator, com.atlassian.event.api.EventPublisher eventPublisher)
public boolean isShown(Issue issue)
OrderableFieldisShown in interface OrderableField<Collection<Version>>issue - The Issue.protected Collection<Version> getCurrentVersions(Issue issue)
getCurrentVersions in class AbstractVersionsSystemFieldprotected String getArchivedVersionsFieldTitle()
getArchivedVersionsFieldTitle in class AbstractVersionsSystemFieldprotected JqlClauseBuilder queryArchivedVersionsField(JqlClauseBuilder queryBuilder, Version version)
queryArchivedVersionsField in class AbstractVersionsSystemFieldprotected boolean getUnreleasedVersionsFirst()
getUnreleasedVersionsFirst in class AbstractVersionsSystemFieldprotected void addFieldRequiredErrorMessage(Issue issue, ErrorCollection errorCollection, I18nHelper i18n)
addFieldRequiredErrorMessage in class AbstractVersionsSystemFieldprotected String getModifiedWithoutPermissionErrorMessage(I18nHelper i18n)
getModifiedWithoutPermissionErrorMessage in class AbstractVersionsSystemFieldprotected List<ChangeItemBean> updateIssueValue(Issue issue, Collection<Version> newValue)
updateIssueValue in class AbstractVersionsSystemFieldpublic void updateIssue(FieldLayoutItem fieldLayoutItem, MutableIssue issue, Map fieldValueHolder)
OrderableFieldupdateIssue in interface OrderableField<Collection<Version>>fieldLayoutItem - FieldLayoutItemissue - MutableIssuefieldValueHolder - Field Value Holder MapOrderableField.updateValue(com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem, com.atlassian.jira.issue.Issue, com.atlassian.jira.issue.ModifiedValue, com.atlassian.jira.issue.util.IssueChangeHolder)public void removeValueFromIssueObject(MutableIssue issue)
OrderableFieldNote that this operation does not actually persist the change, it just clears the value from the given Issue object. The caller will still need to call #updateValue() in order to persist the change.
Some Fields may choose to quietly ignore this request. eg The SecurityLevel Field will not remove Security Level from subtasks because the subtask must always take the Security Level of its parent issue.
removeValueFromIssueObject in interface OrderableField<Collection<Version>>issue - The issue object to be effected.OrderableField.canRemoveValueFromIssueObject(com.atlassian.jira.issue.Issue),
OrderableField.updateValue(com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem, com.atlassian.jira.issue.Issue, com.atlassian.jira.issue.ModifiedValue, com.atlassian.jira.issue.util.IssueChangeHolder)public boolean canRemoveValueFromIssueObject(Issue issue)
OrderableFieldtrue if a call to OrderableField.removeValueFromIssueObject(com.atlassian.jira.issue.MutableIssue)
will actually remove the value.
There a few different reasons why this method may return false:
canRemoveValueFromIssueObject in interface OrderableField<Collection<Version>>issue - The Issue object.true if a call to OrderableField.removeValueFromIssueObject(com.atlassian.jira.issue.MutableIssue)
will actually remove the value.OrderableField.removeValueFromIssueObject(com.atlassian.jira.issue.MutableIssue)protected String getIssueRelationName()
getIssueRelationName in class AbstractVersionsSystemFieldprotected String getChangeItemFieldName()
getChangeItemFieldName in class AbstractVersionsSystemFieldpublic String getColumnHeadingKey()
getColumnHeadingKey in interface NavigableFieldpublic LuceneFieldSorter getSorter()
NavigableFieldgetSorter in interface NavigableFieldNavigableField.getSortComparatorSource()DocumentIssueImpl,
MappedSortComparatorprotected Map<String,Object> addViewVelocityParams()
addViewVelocityParams in class AbstractVersionsSystemFieldpublic RestFieldOperationsHandler getRestFieldOperation()
getRestFieldOperation in interface RestFieldOperationspublic JsonData getJsonDefaultValue(IssueContext issueCtx)
RestFieldOperationsgetJsonDefaultValue in interface RestFieldOperationsissueCtx - Issue (This should really only need to be an issue context, but for historical reasons we need an issue object.Copyright © 2002-2024 Atlassian. All Rights Reserved.