public Set searchGroups(String wildcard,int level,String groupSearchTemplate,Map avPairs) throws AMException, SSOException {
  String filter;
  if (groupSearchTemplate != null && groupSearchTemplate.length() > 0) {
    filter=getSearchFilter(AMObject.GROUP,groupSearchTemplate);
  }
 else {
    filter="(|" + getSearchFilter(AMObject.GROUP) + getSearchFilter(AMObject.DYNAMIC_GROUP)+ getSearchFilter(AMObject.ASSIGNABLE_DYNAMIC_GROUP)+ ")";
  }
  return searchObjects(AMNamingAttrManager.getNamingAttr(GROUP),filter,wildcard,avPairs,level);
}

public Set searchGroups ( String wildcard , int level , String groupSearchTemplate , Map avPairs ) throws AMException , SSOException { String filter ; if ( groupSearchTemplate != null && groupSearchTemplate . length ( ) > 0 ) { filter = getSearchFilter ( AMObject . GROUP , groupSearchTemplate ) ; } else { filter = "(|" + getSearchFilter ( AMObject . GROUP ) + getSearchFilter ( AMObject . DYNAMIC_GROUP ) + getSearchFilter ( AMObject . ASSIGNABLE_DYNAMIC_GROUP ) + ")" ; } return searchObjects ( AMNamingAttrManager . getNamingAttr ( GROUP ) , filter , wildcard , avPairs , level ) ; }
searches for groups in this group container using wildcards . wildcards can be specified such as a * , * , * a . uses the groupsearchtemplate , if provided . otherwise the default search template is used .
