public class UserMatcherPredicate extends Object implements com.google.common.base.Predicate<ApplicationUser>
Constructor and Description |
---|
UserMatcherPredicate(String query,
boolean canMatchAddresses) |
UserMatcherPredicate(String nameQuery,
String emailQuery,
boolean canMatchAddresses)
Search both nameQuery and emailQuery unless one is empty.
|
Modifier and Type | Method and Description |
---|---|
boolean |
apply(ApplicationUser user) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, isEqual, negate, or
public UserMatcherPredicate(String query, boolean canMatchAddresses)
query
- The query to compare. Query can not be null. Empty string will return true for all, so don't pass one in.canMatchAddresses
- Whether email should be searchedpublic UserMatcherPredicate(String nameQuery, String emailQuery, boolean canMatchAddresses)
If canMatchAddresses is false, email matching is ignored.
UserMatcherPredicate(String, boolean)
constructor
When emailQuery is not empty and canMatchAddresses is true, it corresponds to the search behaviour in the user picker popup browser where email search field is entered some value.
nameQuery
- The query on user nameemailQuery
- The query on emailcanMatchAddresses
- Whether email should be searchedpublic boolean apply(ApplicationUser user)
Copyright © 2002-2021 Atlassian. All Rights Reserved.