com.atlassian.crowd.search.query.entity.restriction
Interface BooleanRestriction

All Superinterfaces:
SearchRestriction
All Known Implementing Classes:
BooleanRestrictionImpl

public interface BooleanRestriction
extends SearchRestriction

A boolean search restriction. Users of this interface will ensure that only items satisfying all the restrictions returned by getRestrictions() using the boolean logic returned by getBooleanLogic() are returned.


Nested Class Summary
static class BooleanRestriction.BooleanLogic
           
 
Method Summary
 BooleanRestriction.BooleanLogic getBooleanLogic()
          Returns the boolean logic used against the collection of SearchRestriction returned by getRestrictions() to determine if an item should be included in a search result.
 Collection<SearchRestriction> getRestrictions()
          Returns a collection of restrictions.
 

Method Detail

getRestrictions

Collection<SearchRestriction> getRestrictions()
Returns a collection of restrictions. Only items satisfying the restrictions using the boolean logic are returned. I.e. if the list of restrictions are empty, then no results are returned.

Returns:
a collection of SearchRestriction
See Also:
to implement no restrictions.

getBooleanLogic

BooleanRestriction.BooleanLogic getBooleanLogic()
Returns the boolean logic used against the collection of SearchRestriction returned by getRestrictions() to determine if an item should be included in a search result.

Returns:
boolean logic


Copyright © 2013 Atlassian. All Rights Reserved.