com.atlassian.crowd.search.query.entity
Class EntityQuery

java.lang.Object
  extended by com.atlassian.crowd.search.query.entity.EntityQuery
Direct Known Subclasses:
AliasQuery, DirectoryQuery, GroupQuery, TokenQuery, UserQuery

public class EntityQuery
extends Object


Field Summary
static int ALL_RESULTS
          Deprecated. do not make a query for everything. If you do "need" everything, double check that you actually "need" it.
static int MAX_RESULTS_SIZE
           
 
Constructor Summary
EntityQuery(EntityDescriptor entityDescriptor, SearchRestriction searchRestriction, int startIndex, int maxResults)
           
EntityQuery(EntityDescriptor entityDescriptor, SearchRestriction searchRestriction, int startIndex, int maxResults, ReturnType returnType)
           
EntityQuery(EntityQuery query, int startIndex, int maxResults)
           
EntityQuery(EntityQuery query, ReturnType newReturnType)
           
 
Method Summary
 EntityQuery asNames()
           
 boolean equals(Object o)
           
 EntityDescriptor getEntityDescriptor()
           
 int getMaxResults()
           
 ReturnType getReturnType()
           
 SearchRestriction getSearchRestriction()
           
 int getStartIndex()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_RESULTS_SIZE

public static final int MAX_RESULTS_SIZE
See Also:
Constant Field Values

ALL_RESULTS

public static final int ALL_RESULTS
Deprecated. do not make a query for everything. If you do "need" everything, double check that you actually "need" it.
This attribute is supported for backwards compatibility and will likely be removed in the very near future. If you need to find "all" entities, then consider making multiple successive calls to Crowd to recieve partial results. That way, the entire result set is never stored in memory on the Crowd server at any one time.

See Also:
Constant Field Values
Constructor Detail

EntityQuery

public EntityQuery(EntityDescriptor entityDescriptor,
                   SearchRestriction searchRestriction,
                   int startIndex,
                   int maxResults)

EntityQuery

public EntityQuery(EntityDescriptor entityDescriptor,
                   SearchRestriction searchRestriction,
                   int startIndex,
                   int maxResults,
                   ReturnType returnType)

EntityQuery

public EntityQuery(EntityQuery query,
                   ReturnType newReturnType)

EntityQuery

public EntityQuery(EntityQuery query,
                   int startIndex,
                   int maxResults)
Method Detail

getEntityDescriptor

public EntityDescriptor getEntityDescriptor()

getSearchRestriction

public SearchRestriction getSearchRestriction()

getStartIndex

public int getStartIndex()

getMaxResults

public int getMaxResults()

asNames

public EntityQuery asNames()

getReturnType

public ReturnType getReturnType()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.