public AMSearchResults searchUsers(AMSearchControl searchControl,String avfilter) throws AMException, SSOException {
  int scope;
  String base;
  String gfilter;
  if (profileType == DYNAMIC_GROUP || profileType == ASSIGNABLE_DYNAMIC_GROUP) {
    String[] array=dsServices.getGroupFilterAndScope(token,entryDN,profileType);
    scope=Integer.parseInt(array[0]);
    base=array[1];
    gfilter=array[2];
  }
 else {
    scope=AMConstants.SCOPE_SUB;
    base=getOrganizationDN();
    gfilter="(iplanet-am-static-group-dn=" + entryDN + ")";
  }
  String filter="(&" + gfilter + getSearchFilter(AMObject.USER)+ avfilter+ ")";
  if (debug.messageEnabled()) {
    debug.message("AMGroupImpl.searchUsers: " + filter);
  }
  searchControl.setSearchScope(scope);
  SearchControl sc=searchControl.getSearchControl();
  String returnAttrs[]=searchControl.getReturnAttributes();
  return dsServices.search(super.token,base,filter,sc,returnAttrs);
}

public AMSearchResults searchUsers ( AMSearchControl searchControl , String avfilter ) throws AMException , SSOException { int scope ; String base ; String gfilter ; if ( profileType == DYNAMIC_GROUP || profileType == ASSIGNABLE_DYNAMIC_GROUP ) { String [ ] array = dsServices . getGroupFilterAndScope ( token , entryDN , profileType ) ; scope = Integer . parseInt ( array [ 0 ] ) ; base = array [ 1 ] ; gfilter = array [ 2 ] ; } else { scope = AMConstants . SCOPE_SUB ; base = getOrganizationDN ( ) ; gfilter = "(iplanet-am-static-group-dn=" + entryDN + ")" ; } String filter = "(&" + gfilter + getSearchFilter ( AMObject . USER ) + avfilter + ")" ; if ( debug . messageEnabled ( ) ) { debug . message ( "AMGroupImpl.searchUsers: " + filter ) ; } searchControl . setSearchScope ( scope ) ; SearchControl sc = searchControl . getSearchControl ( ) ; String returnAttrs [ ] = searchControl . getReturnAttributes ( ) ; return dsServices . search ( super . token , base , filter , sc , returnAttrs ) ; }
searches for users in this group using wildcards . wildcards can be specified such as a * , * , * a .
