com.atlassian.jira.bc.user.search
Class UserMatcherPredicate
java.lang.Object
com.atlassian.jira.bc.user.search.UserMatcherPredicate
- All Implemented Interfaces:
- com.google.common.base.Predicate<com.atlassian.crowd.embedded.api.User>
public class UserMatcherPredicate
- extends Object
- implements com.google.common.base.Predicate<com.atlassian.crowd.embedded.api.User>
Matcher to compare User parts (username, Full Name and email) with a query string and return true any part matches.
- Since:
- v5.0
Method Summary |
boolean |
apply(com.atlassian.crowd.embedded.api.User user)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.common.base.Predicate |
equals |
UserMatcherPredicate
public UserMatcherPredicate(String query,
boolean canMatchAddresses)
- Parameters:
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 searched
apply
public boolean apply(com.atlassian.crowd.embedded.api.User user)
- Specified by:
apply
in interface com.google.common.base.Predicate<com.atlassian.crowd.embedded.api.User>
Copyright © 2002-2013 Atlassian. All Rights Reserved.