Skip navigation links

Oracle Fusion Middleware User and Role Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14658-01


oracle.security.idm
Interface ComplexSearchFilter

All Superinterfaces:
SearchFilter

public interface ComplexSearchFilter
extends SearchFilter

A complex search filter represents a complex logical expression that can be used to filter results from underlying identity repository. Complex search filter combines multiple SearchFilter instances together with a single logical operator(AND/OR). Each of these component SearchFilter can itself be a complex filter thus resulting in capability to form really complex nested search filter. A complex search filter can be created as follows:

  // 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);
  
Since:
10.1.3
See Also:
IdentityStore.getComplexSearchFilter(SearchFilter[], int), SimpleSearchFilter

Field Summary
static int TYPE_AND
          Boolean AND operator to specify complex filter type
static int TYPE_OR
          Boolean OR operator to specify complex filter type

 

Method Summary
 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

 

Methods inherited from interface oracle.security.idm.SearchFilter
getNativeRepresentation, isNegated, negate, setNegate

 

Field Detail

TYPE_AND

static final int TYPE_AND
Boolean AND operator to specify complex filter type
See Also:
Constant Field Values

TYPE_OR

static final int TYPE_OR
Boolean OR operator to specify complex filter type
See Also:
Constant Field Values

Method Detail

addFilterComponent

void addFilterComponent(SearchFilter filter)
Add the SearchFilter component to this Complex filter's list

getOperatorType

int getOperatorType()
Logical operator type which binds the SearchFilter components together

Skip navigation links

Oracle Fusion Middleware User and Role Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14658-01


Copyright © 2005, 2009, Oracle. All rights reserved.