com.atlassian.jira.issue.fields
Class StatusSystemField

java.lang.Object
  extended by com.atlassian.jira.issue.fields.AbstractField
      extended by com.atlassian.jira.issue.fields.NavigableFieldImpl
          extended by com.atlassian.jira.issue.fields.StatusSystemField
All Implemented Interfaces:
Field, NavigableField, SearchableField, java.lang.Comparable

public class StatusSystemField
extends NavigableFieldImpl
implements SearchableField

Copyright (c) 2002-2004 All rights reserved.


Field Summary
 
Fields inherited from class com.atlassian.jira.issue.fields.NavigableFieldImpl
applicationProperties, velocityManager
 
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
 
Constructor Summary
StatusSystemField(com.atlassian.velocity.VelocityManager velocityManager, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, StatusStatisticsMapper statusStatisticsMapper, ConstantsManager constantsManager, StatusSearchHandlerFactory searchHandlerFactory)
           
 
Method Summary
 SearchHandler createAssociatedSearchHandler()
          Return SearchHandler for the field.
 java.lang.String getColumnViewHtml(FieldLayoutItem fieldLayoutItem, java.util.Map displayParams, Issue issue)
           
 LuceneFieldSorter getSorter()
          A sorter to be used when sorting columns in a table.
 java.lang.String prettyPrintChangeHistory(java.lang.String changeHistory, I18nHelper i18nHelper)
          Return an internationalized value for the changeHistory item - a status name in this case.
 
Methods inherited from class com.atlassian.jira.issue.fields.NavigableFieldImpl
getApplicationProperties, getColumnCssClass, getColumnHeadingKey, getDefaultSortOrder, getHiddenFieldId, getSortComparatorSource, getVelocityParams, prettyPrintChangeHistory, renderTemplate
 
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

StatusSystemField

public StatusSystemField(com.atlassian.velocity.VelocityManager velocityManager,
                         ApplicationProperties applicationProperties,
                         JiraAuthenticationContext authenticationContext,
                         StatusStatisticsMapper statusStatisticsMapper,
                         ConstantsManager constantsManager,
                         StatusSearchHandlerFactory searchHandlerFactory)
Method Detail

getSorter

public LuceneFieldSorter getSorter()
Description copied from interface: NavigableField
A sorter to be used when sorting columns in a table. This sort uses the Lucene Document Collection and is therefore a lot faster than sorting the issues in memory.

Specified by:
getSorter in interface NavigableField
Returns:
A sorter that can be used to sort this field, or null depending on the value of NavigableField.getSortComparatorSource()
See Also:
DocumentIssueImpl, MappedSortComparator

getColumnViewHtml

public java.lang.String getColumnViewHtml(FieldLayoutItem fieldLayoutItem,
                                          java.util.Map displayParams,
                                          Issue issue)
Specified by:
getColumnViewHtml in interface NavigableField

createAssociatedSearchHandler

public SearchHandler createAssociatedSearchHandler()
Description copied from interface: SearchableField
Return SearchHandler for the field. This object tells JIRA how to search for values within the field.

Specified by:
createAssociatedSearchHandler in interface SearchableField
Returns:
the SearchHandler associated with the field. Can return null when no searcher is associated with the field. This will mainly happen when a customfield is configured to have no searcher.

prettyPrintChangeHistory

public java.lang.String prettyPrintChangeHistory(java.lang.String changeHistory,
                                                 I18nHelper i18nHelper)
Return an internationalized value for the changeHistory item - a status name in this case.

Specified by:
prettyPrintChangeHistory in interface NavigableField
Overrides:
prettyPrintChangeHistory in class NavigableFieldImpl
Parameters:
changeHistory - name of status
i18nHelper - used to translate the status name
Returns:
String


Copyright © 2002-2011 Atlassian. All Rights Reserved.