com.atlassian.crowd.embedded.api
Interface Query<T>

Type Parameters:
T - the type of element the query is expecting to return (eg. User, Group, etc.)
All Known Implementing Classes:
AliasQuery, ApplicationQuery, DirectoryQuery, EntityQuery, GroupMembershipQuery, GroupMembersOfGroupQuery, GroupQuery, MembershipQuery, TokenQuery, UserMembershipQuery, UserMembersOfGroupQuery, UserQuery

public interface Query<T>

Represents a search query for user management. Typical queries will search for users, groups or user names, group names.


Method Summary
 int getMaxResults()
          The maximum number of elements to return.
 Class<T> getReturnType()
          The type of elements to return.
 SearchRestriction getSearchRestriction()
          Restrictions to apply to the query.
 int getStartIndex()
          The index of the first element to return.
 

Method Detail

getStartIndex

int getStartIndex()
The index of the first element to return.

Returns:
a positive index value.

getMaxResults

int getMaxResults()
The maximum number of elements to return.

Returns:
a number of elements.

getReturnType

Class<T> getReturnType()
The type of elements to return.

Returns:
the expected type of elements to be returned by the search.

getSearchRestriction

SearchRestriction getSearchRestriction()
Restrictions to apply to the query. Typically finding users of a given name, etc.

Returns:
the search resctiction to apply to this query.


Copyright © 2013 Atlassian. All Rights Reserved.