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.
|
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)
apply
in interface com.google.common.base.Predicate<ApplicationUser>
Copyright © 2002-2018 Atlassian. All Rights Reserved.