Package com.atlassian.jira.issue.fields
Class NavigableFieldImpl
java.lang.Object
com.atlassian.jira.issue.fields.AbstractField
com.atlassian.jira.issue.fields.NavigableFieldImpl
- All Implemented Interfaces:
Field,NavigableField,Comparable
- Direct Known Subclasses:
AbstractDurationSystemField,AbstractProgressBarSystemField,CreatedSystemField,CreatorSystemField,KeySystemField,LastViewedSystemField,ResolutionDateSystemField,StatusSystemField,SubTaskSystemField,ThumbnailSystemField,UpdatedSystemField,VotesSystemField,WatchesSystemField,WorkRatioSystemField
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ApplicationPropertiesprotected final VelocityTemplatingEngineFields 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_PATH -
Constructor Summary
ConstructorsConstructorDescriptionNavigableFieldImpl(String id, String nameKey, String columnHeadingKey, VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext) NavigableFieldImpl(String id, String nameKey, String columnHeadingKey, String defaultSortOrder, VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected ApplicationPropertiesThe order in which to sort the field when it is sorted for the first time.Returns the id of the field to check for visibility.getVelocityParams(FieldLayoutItem fieldLayoutItem, I18nHelper i18nHelper, Map<String, Object> displayParams, Issue issue) prettyPrintChangeHistory(String changeHistory) prettyPrintChangeHistory(String changeHistory, I18nHelper i18nHelper) Used for email notification templates - allows changelog to be displayed in language of the recipient.protected StringrenderTemplate(String template, Map<String, Object> velocityParams) Methods 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
getColumnViewHtml, getFieldSorts, getValueLoader, hasSortsDefined, prettyPrintChangeHistory
-
Field Details
-
templatingEngine
-
applicationProperties
-
-
Constructor Details
-
NavigableFieldImpl
public NavigableFieldImpl(String id, String nameKey, String columnHeadingKey, VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext) -
NavigableFieldImpl
public NavigableFieldImpl(String id, String nameKey, String columnHeadingKey, String defaultSortOrder, VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext)
-
-
Method Details
-
getColumnHeadingKey
- Specified by:
getColumnHeadingKeyin interfaceNavigableField
-
getColumnCssClass
- Specified by:
getColumnCssClassin interfaceNavigableField
-
getDefaultSortOrder
Description copied from interface:NavigableFieldThe order in which to sort the field when it is sorted for the first time.- Specified by:
getDefaultSortOrderin interfaceNavigableField- Returns:
- Either
NavigableField.ORDER_ASCENDINGorNavigableField.ORDER_DESCENDING
-
renderTemplate
-
getVelocityParams
protected Map<String,Object> getVelocityParams(FieldLayoutItem fieldLayoutItem, I18nHelper i18nHelper, Map<String, Object> displayParams, Issue issue) -
getHiddenFieldId
Description copied from interface:NavigableFieldReturns the id of the field to check for visibility. For example, with original estimate field need to ensure that the timetracking field is not hidden. With most fields, this is the same as their id.- Specified by:
getHiddenFieldIdin interfaceNavigableField
-
getApplicationProperties
-
prettyPrintChangeHistory
- Specified by:
prettyPrintChangeHistoryin interfaceNavigableField
-
prettyPrintChangeHistory
Description copied from interface:NavigableFieldUsed for email notification templates - allows changelog to be displayed in language of the recipient.- Specified by:
prettyPrintChangeHistoryin interfaceNavigableField- Parameters:
changeHistory- - label- Returns:
- String change history formatted according to locale in i18nHelper
-