public interface ComplexSearchFilter extends SearchFilter
// A complex search filter with following logical expression // (name == "john") OR (userid == "jdoe") IdentityStore store = ....... SimpleSearchFilter filters[] = new SimpleSearchFilter[2]; filters[0] = store.getSimpleSearchFilter(UserProfile.NAME, SimpleSearchFilter.TYPE_EQUAL, "john"); filters[1] = store.getSimpleSearchFilter(UserProfile.USER_ID, SimpleSearchFilter.TYPE_EQUAL, "jdoe"); ComplexSearchFilter cf = store.getComplexSearchFilter(filters, ComplexSearchFilter.TYPE_OR);
IdentityStore.getComplexSearchFilter(SearchFilter[], int)
, SimpleSearchFilter
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_AND
Boolean AND operator to specify complex filter type
|
static int |
TYPE_OR
Boolean OR operator to specify complex filter type
|
Modifier and Type | Method and Description |
---|---|
void |
addFilterComponent(SearchFilter filter)
Add the SearchFilter component to this Complex filter's list
|
int |
getOperatorType()
Logical operator type which binds the SearchFilter components together
|
getNativeRepresentation, isNegated, negate, setNegate
static final int TYPE_AND
static final int TYPE_OR
void addFilterComponent(SearchFilter filter)
int getOperatorType()