Class Restrictions
java.lang.Object
com.atlassian.crowd.search.builder.Restrictions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> SearchRestrictionoptional(Function<T, SearchRestriction> provider, T value) static BooleanRestrictionuserSearchRestriction(String searchText) Returns a condition that matches a user iff the providedsearchTextis a substring of any name related field or an email field.
-
Constructor Details
-
Restrictions
public Restrictions()
-
-
Method Details
-
userSearchRestriction
Returns a condition that matches a user iff the providedsearchTextis a substring of any name related field or an email field. String match is case insensitive.- Parameters:
searchText- substring to search for- Returns:
-
optional
- Parameters:
provider- restriction provider, will be called only ifvalueis not nullvalue- restriction value- Returns:
-