Package com.atlassian.jira.issue.fields
Class AbstractUserFieldImpl
java.lang.Object
com.atlassian.jira.issue.fields.AbstractField
com.atlassian.jira.issue.fields.AbstractOrderableField<ApplicationUser>
com.atlassian.jira.issue.fields.AbstractOrderableNavigableFieldImpl<ApplicationUser>
com.atlassian.jira.issue.fields.AbstractUserFieldImpl
- All Implemented Interfaces:
Field,NavigableField,OrderableField<ApplicationUser>,SearchableField,UserField,Comparable
- Direct Known Subclasses:
AssigneeSystemField,ReporterSystemField
public abstract class AbstractUserFieldImpl
extends AbstractOrderableNavigableFieldImpl<ApplicationUser>
implements UserField
Base class for single user-based fields
- Since:
- v5.2
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.fields.AbstractField
authenticationContextFields inherited from interface com.atlassian.jira.issue.fields.NavigableField
ORDER_ASCENDING, ORDER_DESCENDING, TEMPLATE_DIRECTORY_PATHFields inherited from interface com.atlassian.jira.issue.fields.OrderableField
MOVE_ISSUE_PARAM_KEY, NO_HEADER_PARAM_KEY, TEMPLATE_DIRECTORY_PATH -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractUserFieldImpl(String id, String name, VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, SearchHandlerFactory searchHandlerFactory, UserHistoryManager userHistoryManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidIf the value of this field has changed in the issue, the new user is added to the "used user" historygetFieldSorts(FieldSort.Order sortOrder) Returns a list ofFieldSortobjects that can be used to sort this field.Methods inherited from class com.atlassian.jira.issue.fields.AbstractOrderableNavigableFieldImpl
getColumnCssClass, getHiddenFieldId, getVelocityParams, prettyPrintChangeHistory, prettyPrintChangeHistoryMethods inherited from class com.atlassian.jira.issue.fields.AbstractOrderableField
createAssociatedSearchHandler, getApplicationProperties, getBulkEditHtml, getCreateHtml, getEditHtml, getFieldLayoutItemForBulkOperation, getIssueForBulkOperation, getPermissionManager, getRelevantParams, getVelocityParams, getVelocityParams, getVelocityParams, getViewHtml, hasBulkUpdatePermission, hasParam, hasPermission, isHidden, populateFromParams, rendererTypesEqual, renderTemplate, validateBulkEditHtmlProperties, valuesEqualMethods inherited from class com.atlassian.jira.issue.fields.AbstractField
compareTo, equals, getAuthenticationContext, getId, getName, getNameKey, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.atlassian.jira.issue.fields.Field
getId, getName, getNameKeyMethods inherited from interface com.atlassian.jira.issue.fields.NavigableField
getColumnHeadingKey, getColumnViewHtml, getDefaultSortOrder, getValueLoader, hasSortsDefined, prettyPrintChangeHistoryMethods inherited from interface com.atlassian.jira.issue.fields.OrderableField
availableForBulkEdit, canRemoveValueFromIssueObject, createValue, getCreateHtml, getDefaultValue, getEditHtml, getValueFromParams, getViewHtml, getViewHtml, hasValue, isShown, needsMove, populateDefaults, populateForMove, populateFromIssue, populateParamsFromString, removeValueFromIssueObject, updateIssue, updateValue, validateParams
-
Constructor Details
-
AbstractUserFieldImpl
protected AbstractUserFieldImpl(String id, String name, VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, SearchHandlerFactory searchHandlerFactory, UserHistoryManager userHistoryManager)
-
-
Method Details
-
addToUsedUserHistoryIfValueChanged
If the value of this field has changed in the issue, the new user is added to the "used user" history -
getFieldSorts
Description copied from interface:NavigableFieldReturns a list ofFieldSortobjects that can be used to sort this field.- Specified by:
getFieldSortsin interfaceNavigableField- Parameters:
sortOrder- the order in which to sort the field- Returns:
- a list of
FieldSortobjects that can be used to sort this field
-