Class LdapUserQuery
- java.lang.Object
-
- org.apache.archiva.redback.users.AbstractUserQuery
-
- org.apache.archiva.redback.users.ldap.LdapUserQuery
-
- All Implemented Interfaces:
UserQuery
public class LdapUserQuery extends AbstractUserQuery
-
-
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 LdapUserQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLdapFilter(UserMapper mapper)
void
setFirstResult(int firstResult)
Sets the index (zero based) of the first result to include.void
setMaxResults(int maxResults)
Sets the maximum number of users to return.void
setOrderBy(String orderBy)
Sets the property used to order the results of this query.-
Methods inherited from class org.apache.archiva.redback.users.AbstractUserQuery
getEmail, getFirstResult, getFullName, getMaxResults, getOrderBy, getUsername, isAscending, setAscending, setEmail, setFullName, setUsername
-
-
-
-
Constructor Detail
-
LdapUserQuery
public LdapUserQuery()
-
-
Method Detail
-
setFirstResult
public void setFirstResult(int firstResult)
Description copied from interface:UserQuery
Sets the index (zero based) of the first result to include. Useful for paging.- Specified by:
setFirstResult
in interfaceUserQuery
- Overrides:
setFirstResult
in classAbstractUserQuery
- Parameters:
firstResult
- the first index
-
setMaxResults
public void setMaxResults(int maxResults)
Description copied from interface:UserQuery
Sets the maximum number of users to return.- Specified by:
setMaxResults
in interfaceUserQuery
- Overrides:
setMaxResults
in classAbstractUserQuery
- Parameters:
maxResults
- the maximum number of users to return.
-
setOrderBy
public void setOrderBy(String orderBy)
Description copied from interface:UserQuery
Sets the property used to order the results of this query. This is one ofUserQuery.ORDER_BY_USERNAME
,UserQuery.ORDER_BY_FULLNAME
orUserQuery.ORDER_BY_EMAIL
.- Specified by:
setOrderBy
in interfaceUserQuery
- Overrides:
setOrderBy
in classAbstractUserQuery
- Parameters:
orderBy
- the order property.
-
getLdapFilter
public String getLdapFilter(UserMapper mapper)
-
-