Class Restrictions
java.lang.Object
com.atlassian.crowd.search.builder.Restrictions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> SearchRestriction
optional
(Function<T, SearchRestriction> provider, T value) static BooleanRestriction
userSearchRestriction
(String searchText) Returns a condition that matches a user iff the providedsearchText
is 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 providedsearchText
is 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 ifvalue
is not nullvalue
- restriction value- Returns:
-