com.atlassian.jira.sharing
Class SharedEntityColumnDefinition
java.lang.Object
com.atlassian.jira.sharing.SharedEntityColumnDefinition
@Immutable
public class SharedEntityColumnDefinition
- extends Object
Implementation details of a SharedEntityColumn
which is used for sorting Shared Entity search results.
Note: the sortColumn is used for equality/hashCode and MUST be distinct.
- Since:
- v3.13 - was broken out from SharedEntityColumn in v5.0
- See Also:
SharedEntityColumn
ID
public static final SharedEntityColumnDefinition ID
NAME
public static final SharedEntityColumnDefinition NAME
DESCRIPTION
public static final SharedEntityColumnDefinition DESCRIPTION
OWNER
public static final SharedEntityColumnDefinition OWNER
FAVOURITE_COUNT
public static final SharedEntityColumnDefinition FAVOURITE_COUNT
IS_SHARED
public static final SharedEntityColumnDefinition IS_SHARED
getName
public String getName()
- Returns:
- the column (field) name
getSortColumn
public String getSortColumn()
- Returns:
- the column (field) name used for sorting
getSortType
public int getSortType()
- Returns:
- the
SortField
int used to determine the comparison algorithm
getCaseInsensitiveColumn
public String getCaseInsensitiveColumn()
isCustomSort
public boolean isCustomSort()
createSortComparator
public org.apache.lucene.search.FieldComparatorSource createSortComparator()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
definitionFor
public static SharedEntityColumnDefinition definitionFor(SharedEntityColumn column)
- Returns the definition details for the given SharedEntityColumn.
- Parameters:
column
- The simple SharedEntityColumn
- Returns:
- the definition details for the given SharedEntityColumn.
Copyright © 2002-2012 Atlassian. All Rights Reserved.