public class Restrictions extends Object
Constructor and Description |
---|
Restrictions() |
Modifier and Type | Method and Description |
---|---|
static <T> SearchRestriction |
optional(Function<T,SearchRestriction> provider,
T value)
|
static BooleanRestriction |
userSearchRestriction(String searchText)
Returns a condition that matches a user iff the provided
searchText is a substring of any name related
field or an email field. |
public static BooleanRestriction userSearchRestriction(String searchText)
searchText
is a substring of any name related
field or an email field. String match is case insensitive.searchText
- substring to search forpublic static <T> SearchRestriction optional(Function<T,SearchRestriction> provider, T value)
provider
- restriction provider, will be called only if value
is not nullvalue
- restriction valueCopyright © 2020 Atlassian. All rights reserved.