com.atlassian.crowd.search.builder
Class Combine

java.lang.Object
  extended by com.atlassian.crowd.search.builder.Combine

public class Combine
extends Object

Builder for MultiTermRestrictions. For usage see QueryBuilder.


Constructor Summary
Combine()
           
 
Method Summary
static BooleanRestriction allOf(Collection<SearchRestriction> restrictions)
          Returns an AND boolean search restriction where all of the search restrictions have to be satisfied.
static BooleanRestriction allOf(SearchRestriction... restrictions)
          Returns an AND boolean search restriction where all of the search restrictions have to be satisfied.
static BooleanRestriction anyOf(Collection<SearchRestriction> restrictions)
          Returns an OR boolean search restriction where only one or more of the search restrictions have to be satisfied.
static BooleanRestriction anyOf(SearchRestriction... restrictions)
          Returns an OR boolean search restriction where only one or more of the search restrictions have to be satisfied.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Combine

public Combine()
Method Detail

anyOf

public static BooleanRestriction anyOf(SearchRestriction... restrictions)
Returns an OR boolean search restriction where only one or more of the search restrictions have to be satisfied.

Parameters:
restrictions - search restrictions
Returns:
OR boolean search restriction

allOf

public static BooleanRestriction allOf(SearchRestriction... restrictions)
Returns an AND boolean search restriction where all of the search restrictions have to be satisfied.

Parameters:
restrictions - search restrictions
Returns:
AND boolean search restriction

anyOf

public static BooleanRestriction anyOf(Collection<SearchRestriction> restrictions)
Returns an OR boolean search restriction where only one or more of the search restrictions have to be satisfied.

Parameters:
restrictions - search restrictions
Returns:
OR boolean search restriction

allOf

public static BooleanRestriction allOf(Collection<SearchRestriction> restrictions)
Returns an AND boolean search restriction where all of the search restrictions have to be satisfied.

Parameters:
restrictions - search restrictions
Returns:
AND boolean search restriction


Copyright © 2013 Atlassian. All Rights Reserved.