Class Combine
java.lang.Object
com.atlassian.crowd.search.builder.Combine
Builder for MultiTermRestrictions.
For usage see
QueryBuilder.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanRestrictionallOf(SearchRestriction... restrictions) Returns anANDboolean search restriction where all of the search restrictions have to be satisfied.static BooleanRestrictionallOf(Collection<? extends SearchRestriction> restrictions) Returns anANDboolean search restriction where all of the search restrictions have to be satisfied.static SearchRestrictionallOfIfNeeded(Collection<? extends SearchRestriction> restrictions) static BooleanRestrictionanyOf(SearchRestriction... restrictions) Returns anORboolean search restriction where only one or more of the search restrictions have to be satisfied.static BooleanRestrictionanyOf(Collection<? extends SearchRestriction> restrictions) Returns anORboolean search restriction where only one or more of the search restrictions have to be satisfied.static SearchRestrictionanyOfIfNeeded(Collection<? extends SearchRestriction> restrictions) static SearchRestrictionoptionalAllOf(SearchRestriction... optionalRestrictions) Returns a combined restriction where all of the non-empty search restrictions have to be satisfied.
-
Constructor Details
-
Combine
public Combine()
-
-
Method Details
-
anyOf
Returns anORboolean search restriction where only one or more of the search restrictions have to be satisfied.- Parameters:
restrictions- search restrictions- Returns:
ORboolean search restriction
-
allOf
Returns anANDboolean search restriction where all of the search restrictions have to be satisfied.- Parameters:
restrictions- search restrictions- Returns:
ANDboolean search restriction
-
anyOf
Returns anORboolean search restriction where only one or more of the search restrictions have to be satisfied.- Parameters:
restrictions- search restrictions- Returns:
ORboolean search restriction
-
allOf
Returns anANDboolean search restriction where all of the search restrictions have to be satisfied.- Parameters:
restrictions- search restrictions- Returns:
ANDboolean search restriction
-
optionalAllOf
Returns a combined restriction where all of the non-empty search restrictions have to be satisfied.- Parameters:
optionalRestrictions- restrictions,NullRestriction.INSTANCEare considered empty and skipped- Returns:
- combined search restriction
-
allOfIfNeeded
-
anyOfIfNeeded
-