com.atlassian.jira.sharing
Class SharedEntityColumn

java.lang.Object
  extended by com.atlassian.jira.sharing.SharedEntityColumn

public class SharedEntityColumn
extends Object

Simple enumeration that represents the standard columns in a SharedEntity.

Note: the sortColumn is used for equality/hashCode and MUST be distinct.

Since:
v3.13

Field Summary
static SharedEntityColumn DESCRIPTION
           
static SharedEntityColumn FAVOURITE_COUNT
           
static SharedEntityColumn ID
           
static SharedEntityColumn NAME
           
static SharedEntityColumn OWNER
           
 
Method Summary
 org.apache.lucene.search.SortComparatorSource createSortComparator()
           
 boolean equals(Object o)
           
 String getName()
           
 String getSortColumn()
           
 int getSortType()
           
 int hashCode()
           
 boolean isCustomSort()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final SharedEntityColumn ID

NAME

public static final SharedEntityColumn NAME

DESCRIPTION

public static final SharedEntityColumn DESCRIPTION

OWNER

public static final SharedEntityColumn OWNER

FAVOURITE_COUNT

public static final SharedEntityColumn FAVOURITE_COUNT
Method Detail

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

isCustomSort

public boolean isCustomSort()

createSortComparator

public org.apache.lucene.search.SortComparatorSource 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


Copyright © 2002-2008 Atlassian. All Rights Reserved.