SearchManager
@Deprecated
public class ListQuery
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static java.util.List<java.lang.String> |
ALL_TYPES
Deprecated.
|
static java.lang.String |
ALL_VERSIONS
Deprecated.
|
static java.lang.String |
LATEST_VERSIONS
Deprecated.
|
static java.lang.String |
SORT_BY_TIME_CREATED
Deprecated.
|
static java.lang.String |
SORT_BY_TIME_MODIFIED
Deprecated.
|
static int |
UNLIMITED_RESULTS
Deprecated.
|
static int |
UNLIMITED_TIMESPAN
Deprecated.
|
Constructor and Description |
---|
ListQuery()
Deprecated.
|
ListQuery(ListQuery query)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ListQuery |
addLabel(java.lang.String name)
Deprecated.
Adds a single label to the list of labels
|
ListQuery |
addSpace(Space space)
Deprecated.
Adds a single Space to the list of Spaces to include
|
ListQuery |
addStatus(java.lang.String str)
Deprecated.
Adds a single status type to the query
|
ListQuery |
addType(java.lang.String type)
Deprecated.
Adds a content type to the query
|
java.util.List<java.lang.String> |
getBlogpostSubTypes()
Deprecated.
|
java.lang.String |
getDescription()
Deprecated.
Return a string which can be used as a description of the RSS feed defined by this query
|
java.util.List<java.lang.String> |
getExcludedSpaceKeys()
Deprecated.
|
java.util.List |
getLabelList()
Deprecated.
Returns the list of labels that the query will restrict by
|
org.apache.lucene.search.BooleanClause.Occur |
getLabelOccur()
Deprecated.
|
int |
getMaxResults()
Deprecated.
Retrieves the maximum number of results that will be returned by the Query
|
java.lang.String |
getName()
Deprecated.
Retrieves the name given to the query
|
java.util.List<java.lang.String> |
getPageSubTypes()
Deprecated.
|
java.lang.String |
getSortBy()
Deprecated.
|
java.util.List |
getSpaceList()
Deprecated.
Retrieves a List of Space objects that this query is being performed over
|
java.util.List |
getSpaceScopes()
Deprecated.
List of
String s representing space scopes. |
java.util.List |
getStatusList()
Deprecated.
Retrieves a list of version status types to be included with the query.
|
float |
getTimeSpan()
Deprecated.
Retrieves the time span (in days) that the query should cover
|
java.util.List |
getTypeList()
Deprecated.
Retrieves a List of content types that this query is being performed over
|
com.atlassian.user.User |
getUser()
Deprecated.
The user the query is being performed for
|
void |
setBlogpostSubTypes(java.util.List<java.lang.String> blogSubTypes)
Deprecated.
|
void |
setExcludedSpaceKeys(java.util.List<java.lang.String> excludedSpaceKeys)
Deprecated.
|
void |
setLabelList(java.util.List labelList)
Deprecated.
Set the list of labels that the query will be restricted to
|
void |
setLabelOccur(org.apache.lucene.search.BooleanClause.Occur labelOccur)
Deprecated.
|
void |
setMaxResults(int maxResults)
Deprecated.
Sets the maximum number of results that will be returned by the query
|
void |
setName(java.lang.String name)
Deprecated.
Sets the name of the query
|
void |
setPageSubTypes(java.util.List<java.lang.String> pageSubTypes)
Deprecated.
|
void |
setSortBy(java.lang.String sortBy)
Deprecated.
|
void |
setSpaceList(java.util.List spaceList)
Deprecated.
|
void |
setSpaceScopes(java.util.List spaceScopes)
Deprecated.
|
void |
setStatusList(java.util.List statusList)
Deprecated.
Sets the status types to be included with the query
Can be any of:
"created"
"modified"
ALL_VERSIONS
LATEST_VERSIONS
Created vs Modified is checked by the DefaultFeedBuilder . |
void |
setTimeSpan(float timeSpan)
Deprecated.
Sets the amount of time to include before the current date
If a time span of "1" is specified, the query will include content from 1 day ago until the current time
A time span of "0" means there is no limit
|
void |
setTypeList(java.util.List typeList)
Deprecated.
Sets the type of content to be included
|
void |
setUser(com.atlassian.user.User user)
Deprecated.
Set the user this query will be performed for
|
java.lang.String |
toString()
Deprecated.
|
public static final int UNLIMITED_TIMESPAN
public static final int UNLIMITED_RESULTS
public static final java.lang.String SORT_BY_TIME_CREATED
public static final java.lang.String SORT_BY_TIME_MODIFIED
public static final java.lang.String ALL_VERSIONS
public static final java.util.List<java.lang.String> ALL_TYPES
public static final java.lang.String LATEST_VERSIONS
public ListQuery()
public ListQuery(ListQuery query)
public java.lang.String toString()
toString
in class java.lang.Object
public com.atlassian.user.User getUser()
public java.util.List getSpaceList()
public java.util.List getTypeList()
public void setUser(com.atlassian.user.User user)
user
- User objectpublic void setSpaceList(java.util.List spaceList)
public ListQuery addType(java.lang.String type)
type
- the content type to includepublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the namepublic int getMaxResults()
public void setMaxResults(int maxResults)
maxResults
- the maximum number of resultspublic float getTimeSpan()
public void setTimeSpan(float timeSpan)
timeSpan
- the number of days to include before the current datepublic void setTypeList(java.util.List typeList)
typeList
- List of content types (Strings)public java.util.List getStatusList()
setStatusList(java.util.List)
public void setStatusList(java.util.List statusList)
ALL_VERSIONS
LATEST_VERSIONS
DefaultFeedBuilder
. It's highly
possible this field could be completely removed and nothing would actually break.
TODO Split off the type of content to include (All vs LATEST) into a separate fieldstatusList
- the List of status types to includepublic ListQuery addStatus(java.lang.String str)
str
- the status type to addpublic java.lang.String getDescription()
public java.util.List getLabelList()
public void setLabelList(java.util.List labelList)
labelList
- List of Label objectspublic ListQuery addLabel(java.lang.String name)
name
- the label name to addpublic ListQuery addSpace(Space space)
space
- the Space to addpublic java.util.List getSpaceScopes()
String
s representing space scopes.String
s that are possibly space scopes or maybe space keys!?!? It's a little hard to
tell.SpaceScope.AVAILABLE_SCOPES
public void setSpaceScopes(java.util.List spaceScopes)
public java.lang.String getSortBy()
public void setSortBy(java.lang.String sortBy)
public org.apache.lucene.search.BooleanClause.Occur getLabelOccur()
public void setLabelOccur(org.apache.lucene.search.BooleanClause.Occur labelOccur)
public void setBlogpostSubTypes(java.util.List<java.lang.String> blogSubTypes)
public void setPageSubTypes(java.util.List<java.lang.String> pageSubTypes)
public java.util.List<java.lang.String> getBlogpostSubTypes()
public java.util.List<java.lang.String> getPageSubTypes()
public void setExcludedSpaceKeys(java.util.List<java.lang.String> excludedSpaceKeys)
public java.util.List<java.lang.String> getExcludedSpaceKeys()
Copyright © 2003-2014 Atlassian. All Rights Reserved.