Package org.apache.archiva.redback.users
Class AbstractUserQuery
- java.lang.Object
-
- org.apache.archiva.redback.users.AbstractUserQuery
-
- All Implemented Interfaces:
UserQuery
- Direct Known Subclasses:
LdapUserQuery,SimpleUserQuery
public abstract class AbstractUserQuery extends Object implements UserQuery
Abstract Implementation of UserQuery. Intended to be subclassed by UserManager providers.
-
-
Field Summary
-
Fields inherited from interface org.apache.archiva.redback.users.UserQuery
ALLOWED_ORDER_FIELDS, ORDER_BY_EMAIL, ORDER_BY_FULLNAME, ORDER_BY_USERNAME
-
-
Constructor Summary
Constructors Constructor Description AbstractUserQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEmail()Returns the case insensitive substring email criteria.longgetFirstResult()Returns the index (zero based) of the first result to include.StringgetFullName()Returns the case insensitive substring full name criteria.longgetMaxResults()Returns the maximum number of users to return.StringgetOrderBy()Returns the property used to order the results of this query.StringgetUsername()Returns the case insensitive substring user name criteria.booleanisAscending()Returns true if the results should be returned in ascending order.voidsetAscending(boolean ascending)Set this to true if the results should be returned in ascending order.voidsetEmail(String email)Sets the case insensitive substring email criteria.voidsetFirstResult(int firstResult)Sets the index (zero based) of the first result to include.voidsetFullName(String fullName)Sets the case insensitive substring full name criteria.voidsetMaxResults(int maxResults)Sets the maximum number of users to return.voidsetOrderBy(String orderBy)Sets the property used to order the results of this query.voidsetUsername(String userName)Sets the case insensitive substring user name criteria.
-
-
-
Constructor Detail
-
AbstractUserQuery
public AbstractUserQuery()
-
-
Method Detail
-
getUsername
public String getUsername()
Description copied from interface:UserQueryReturns the case insensitive substring user name criteria.- Specified by:
getUsernamein interfaceUserQuery- Returns:
- the username criteria.
-
setUsername
public void setUsername(String userName)
Description copied from interface:UserQuerySets the case insensitive substring user name criteria.- Specified by:
setUsernamein interfaceUserQuery- Parameters:
userName- the username criteria
-
getFullName
public String getFullName()
Description copied from interface:UserQueryReturns the case insensitive substring full name criteria.- Specified by:
getFullNamein interfaceUserQuery- Returns:
- the username criteria.
-
setFullName
public void setFullName(String fullName)
Description copied from interface:UserQuerySets the case insensitive substring full name criteria.- Specified by:
setFullNamein interfaceUserQuery- Parameters:
fullName- the full name criteria
-
getEmail
public String getEmail()
Description copied from interface:UserQueryReturns the case insensitive substring email criteria.
-
setEmail
public void setEmail(String email)
Description copied from interface:UserQuerySets the case insensitive substring email criteria.
-
getFirstResult
public long getFirstResult()
Description copied from interface:UserQueryReturns the index (zero based) of the first result to include. Useful for paging.- Specified by:
getFirstResultin interfaceUserQuery- Returns:
- the first index
-
setFirstResult
public void setFirstResult(int firstResult)
Description copied from interface:UserQuerySets the index (zero based) of the first result to include. Useful for paging.- Specified by:
setFirstResultin interfaceUserQuery- Parameters:
firstResult- the first index
-
getMaxResults
public long getMaxResults()
Description copied from interface:UserQueryReturns the maximum number of users to return.- Specified by:
getMaxResultsin interfaceUserQuery- Returns:
- the maximum number of users to return.
-
setMaxResults
public void setMaxResults(int maxResults)
Description copied from interface:UserQuerySets the maximum number of users to return.- Specified by:
setMaxResultsin interfaceUserQuery- Parameters:
maxResults- the maximum number of users to return.
-
getOrderBy
public String getOrderBy()
Description copied from interface:UserQueryReturns the property used to order the results of this query. This is one ofUserQuery.ORDER_BY_USERNAME,UserQuery.ORDER_BY_FULLNAMEorUserQuery.ORDER_BY_EMAIL.- Specified by:
getOrderByin interfaceUserQuery- Returns:
- the order property.
-
setOrderBy
public void setOrderBy(String orderBy)
Description copied from interface:UserQuerySets the property used to order the results of this query. This is one ofUserQuery.ORDER_BY_USERNAME,UserQuery.ORDER_BY_FULLNAMEorUserQuery.ORDER_BY_EMAIL.- Specified by:
setOrderByin interfaceUserQuery- Parameters:
orderBy- the order property.
-
isAscending
public boolean isAscending()
Description copied from interface:UserQueryReturns true if the results should be returned in ascending order.- Specified by:
isAscendingin interfaceUserQuery- Returns:
- ascending
-
setAscending
public void setAscending(boolean ascending)
Description copied from interface:UserQuerySet this to true if the results should be returned in ascending order.- Specified by:
setAscendingin interfaceUserQuery- Parameters:
ascending- true if the results should be returned in ascending
-
-