public IdSearchResults searchIdentities(IdType type,String pattern,Map avPairs,boolean recursive,int maxResults,int maxTime,Set returnAttributes,boolean returnAllAttributes) throws IdRepoException, SSOException {
  IdSearchControl crtl=new IdSearchControl();
  crtl.setSearchModifiers(IdSearchOpModifier.OR,avPairs);
  crtl.setRecursive(recursive);
  crtl.setMaxResults(maxResults);
  crtl.setTimeOut(maxTime);
  crtl.setReturnAttributes(returnAttributes);
  crtl.setAllReturnAttributes(returnAllAttributes);
  CrestQuery crestQuery=new CrestQuery(pattern);
  return searchIdentities(type,crestQuery,crtl);
}

public IdSearchResults searchIdentities ( IdType type , String pattern , Map avPairs , boolean recursive , int maxResults , int maxTime , Set returnAttributes , boolean returnAllAttributes ) throws IdRepoException , SSOException { IdSearchControl crtl = new IdSearchControl ( ) ; crtl . setSearchModifiers ( IdSearchOpModifier . OR , avPairs ) ; crtl . setRecursive ( recursive ) ; crtl . setMaxResults ( maxResults ) ; crtl . setTimeOut ( maxTime ) ; crtl . setReturnAttributes ( returnAttributes ) ; crtl . setAllReturnAttributes ( returnAllAttributes ) ; CrestQuery crestQuery = new CrestQuery ( pattern ) ; return searchIdentities ( type , crestQuery , crtl ) ; }
searches for identities of a certain type . the iterator returns amidentity objects for use by the application .
