|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.fields.AbstractField com.atlassian.jira.issue.fields.AbstractOrderableField com.atlassian.jira.issue.fields.AbstractOrderableNavigableFieldImpl com.atlassian.jira.issue.fields.AbstractVersionsSystemField com.atlassian.jira.issue.fields.AffectedVersionsSystemField
public class AffectedVersionsSystemField
Copyright (c) 2002-2004 All rights reserved.
Field Summary |
---|
Fields inherited from class com.atlassian.jira.issue.fields.AbstractVersionsSystemField |
---|
RELEASED_VERSION_ID, UNKNOWN_VERSION_ID, UNRELEASED_VERSION_ID |
Fields inherited from class com.atlassian.jira.issue.fields.AbstractField |
---|
authenticationContext |
Fields inherited from interface com.atlassian.jira.issue.fields.NavigableField |
---|
ORDER_ASCENDING, ORDER_DESCENDING, TEMPLATE_DIRECTORY_PATH |
Fields inherited from interface com.atlassian.jira.issue.fields.OrderableField |
---|
MOVE_ISSUE_PARAM_KEY, NO_HEADER_PARAM_KEY, TEMPLATE_DIRECTORY_PATH |
Constructor Summary | |
---|---|
AffectedVersionsSystemField(com.atlassian.velocity.VelocityManager velocityManager,
ApplicationProperties applicationProperties,
VersionManager versionManager,
PermissionManager permissionManager,
JiraAuthenticationContext authenticationContext,
RaisedInVersionStatisticsMapper raisedInVersionStatsMapper,
VersionHelperBean versionHelperBean)
|
Method Summary | |
---|---|
protected void |
addFieldRequiredErrorMessage(Issue issue,
ErrorCollection errorCollection,
I18nHelper i18n)
|
boolean |
canRemoveValueFromIssueObject(Issue issue)
Returns true if a call to OrderableField.removeValueFromIssueObject(com.atlassian.jira.issue.MutableIssue)
will actually remove the value. |
protected String |
getArchivedVersionsFieldSearchParam()
|
protected String |
getArchivedVersionsFieldTitle()
|
List |
getAssociatedSearchers()
Returns a list of searchers associated with field |
protected String |
getChangeItemFieldName()
|
String |
getColumnHeadingKey()
|
protected Collection |
getCurrentVersions(Issue issue)
|
Object |
getDefaultValue(Issue issue)
The value that should be set on the issue if the field is not shown for some reason. |
protected String |
getIssueRelationName()
|
protected String |
getModifiedWithoutPermissionErrorMessage(I18nHelper i18n)
|
LuceneFieldSorter |
getSorter()
A sorter to be used when sorting columns in a table. |
protected boolean |
getUnreleasedVersionsFirst()
|
boolean |
isShown(Issue issue)
Tests field specific way to determine if it should be shown or not. |
void |
removeValueFromIssueObject(MutableIssue issue)
Removes the field value from the given MutableIssue object. |
void |
updateIssue(FieldLayoutItem fieldLayoutItem,
MutableIssue issue,
Map fieldValueHolder)
Record the value on the issue (not saving it to the database, see updateValue). |
Methods inherited from class com.atlassian.jira.issue.fields.AbstractVersionsSystemField |
---|
addViewVelocityParams, availableForBulkEdit, createValue, getColumnViewHtml, getCreateHtml, getCurrentVersionIds, getDefaultSortOrder, getEditHtml, getPossibleVersions, getRelevantParams, getValueFromParams, getVersionManager, getViewHtml, getViewHtml, hasValue, needsMove, populateDefaults, populateForMove, populateFromIssue, populateParamsFromString, updateValue, validateParams |
Methods inherited from class com.atlassian.jira.issue.fields.AbstractOrderableNavigableFieldImpl |
---|
getColumnCssClass, getHiddenFieldId, getSortComparatorSource, getVelocityParams, prettyPrintChangeHistory, prettyPrintChangeHistory |
Methods inherited from class com.atlassian.jira.issue.fields.AbstractOrderableField |
---|
getApplicationProperties, getBulkEditHtml, getCreateHtml, getEditHtml, getPermissionManager, getVelocityParams, getVelocityParams, getViewHtml, hasBulkUpdatePermission, hasPermission, isHidden, populateFromParams, rendererTypesEqual, renderTemplate, valuesEqual |
Methods inherited from class com.atlassian.jira.issue.fields.AbstractField |
---|
compareTo, equals, getAuthenticationContext, getId, getName, getNameKey, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.jira.issue.fields.Field |
---|
getId, getName, getNameKey |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public AffectedVersionsSystemField(com.atlassian.velocity.VelocityManager velocityManager, ApplicationProperties applicationProperties, VersionManager versionManager, PermissionManager permissionManager, JiraAuthenticationContext authenticationContext, RaisedInVersionStatisticsMapper raisedInVersionStatsMapper, VersionHelperBean versionHelperBean)
Method Detail |
---|
public boolean isShown(Issue issue)
OrderableField
issue
- The Issue.
protected Collection getCurrentVersions(Issue issue)
getCurrentVersions
in class AbstractVersionsSystemField
protected String getArchivedVersionsFieldTitle()
getArchivedVersionsFieldTitle
in class AbstractVersionsSystemField
protected String getArchivedVersionsFieldSearchParam()
getArchivedVersionsFieldSearchParam
in class AbstractVersionsSystemField
protected boolean getUnreleasedVersionsFirst()
getUnreleasedVersionsFirst
in class AbstractVersionsSystemField
protected void addFieldRequiredErrorMessage(Issue issue, ErrorCollection errorCollection, I18nHelper i18n)
addFieldRequiredErrorMessage
in class AbstractVersionsSystemField
public String getColumnHeadingKey()
public LuceneFieldSorter getSorter()
NavigableField
NavigableField.getSortComparatorSource()
DocumentIssueImpl
,
MappedSortComparator
protected String getIssueRelationName()
getIssueRelationName
in class AbstractVersionsSystemField
protected String getChangeItemFieldName()
getChangeItemFieldName
in class AbstractVersionsSystemField
protected String getModifiedWithoutPermissionErrorMessage(I18nHelper i18n)
getModifiedWithoutPermissionErrorMessage
in class AbstractVersionsSystemField
public Object getDefaultValue(Issue issue)
OrderableField
For example: The user does not have permission to see the field, or the field is not part of the create screen.
getDefaultValue
in interface OrderableField
getDefaultValue
in class AbstractVersionsSystemField
issue
- the Issue.
public void updateIssue(FieldLayoutItem fieldLayoutItem, MutableIssue issue, Map fieldValueHolder)
OrderableField
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)
OrderableField
Note 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.
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)
OrderableField
true
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:
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)
public List getAssociatedSearchers()
SearchableField
Class
objects of type @IssueSearcher
. Empty list if no searchers are required.
Must not be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |