Class JpaUserQuery
- java.lang.Object
-
- org.apache.archiva.redback.users.jpa.JpaUserQuery
-
- All Implemented Interfaces:
UserQuery
public class JpaUserQuery extends Object implements UserQuery
Created by martin on 23.09.16.
-
-
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 JpaUserQuery()
-
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.booleanhasEmail()booleanhasFullName()booleanhasUsername()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
-
JpaUserQuery
public JpaUserQuery()
-
-
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
-
hasUsername
public boolean hasUsername()
-
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.
-
hasEmail
public boolean hasEmail()
-
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
-
hasFullName
public boolean hasFullName()
-
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.
-
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
-
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.
-
-