Class SimpleUserQuery
- java.lang.Object
-
- org.apache.archiva.redback.users.AbstractUserQuery
-
- org.apache.archiva.redback.users.memory.SimpleUserQuery
-
- All Implemented Interfaces:
UserQuery
public class SimpleUserQuery 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 SimpleUserQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<User>
getComparator()
Returns a comparator used for sorting a collection of User objects based on the ordering set on this UserQuery'sAbstractUserQuery.setOrderBy(String)
andAbstractUserQuery.setAscending(boolean)
.boolean
matches(User user)
Returns true if this user should be considered a match of the current query-
Methods inherited from class org.apache.archiva.redback.users.AbstractUserQuery
getEmail, getFirstResult, getFullName, getMaxResults, getOrderBy, getUsername, isAscending, setAscending, setEmail, setFirstResult, setFullName, setMaxResults, setOrderBy, setUsername
-
-
-
-
Constructor Detail
-
SimpleUserQuery
public SimpleUserQuery()
-
-
Method Detail
-
matches
public boolean matches(User user)
Returns true if this user should be considered a match of the current query- Parameters:
user
-- Returns:
-
getComparator
public Comparator<User> getComparator()
Returns a comparator used for sorting a collection of User objects based on the ordering set on this UserQuery'sAbstractUserQuery.setOrderBy(String)
andAbstractUserQuery.setAscending(boolean)
.- Returns:
-
-