public void deleteIDRepos(String realmName,Set names) throws AMConsoleException {
  String[] params=new String[2];
  params[0]=realmName;
  String curName="";
  try {
    ServiceConfigManager svcCfgMgr=new ServiceConfigManager(IdConstants.REPO_SERVICE,getUserSSOToken());
    ServiceConfig cfg=svcCfgMgr.getOrganizationConfig(realmName,null);
    for (Iterator iter=names.iterator(); iter.hasNext(); ) {
      String name=(String)iter.next();
      curName=name;
      params[1]=name;
      logEvent("ATTEMPT_DELETE_ID_REPO",params);
      cfg.removeSubConfig(name);
      logEvent("SUCCEED_DELETE_ID_REPO",params);
    }
  }
 catch (  SMSException e) {
    String strError=getErrorString(e);
    String[] paramsEx={realmName,curName,strError};
    logEvent("SMS_EXCEPTION_DELETE_ID_REPO",paramsEx);
    throw new AMConsoleException(strError);
  }
catch (  SSOException e) {
    String strError=getErrorString(e);
    String[] paramsEx={realmName,curName,strError};
    logEvent("SSO_EXCEPTION_DELETE_ID_REPO",paramsEx);
    throw new AMConsoleException(strError);
  }
}

public void deleteIDRepos ( String realmName , Set names ) throws AMConsoleException { String [ ] params = new String [ 2 ] ; params [ 0 ] = realmName ; String curName = "" ; try { ServiceConfigManager svcCfgMgr = new ServiceConfigManager ( IdConstants . REPO_SERVICE , getUserSSOToken ( ) ) ; ServiceConfig cfg = svcCfgMgr . getOrganizationConfig ( realmName , null ) ; for ( Iterator iter = names . iterator ( ) ; iter . hasNext ( ) ; ) { String name = ( String ) iter . next ( ) ; curName = name ; params [ 1 ] = name ; logEvent ( "ATTEMPT_DELETE_ID_REPO" , params ) ; cfg . removeSubConfig ( name ) ; logEvent ( "SUCCEED_DELETE_ID_REPO" , params ) ; } } catch ( SMSException e ) { String strError = getErrorString ( e ) ; String [ ] paramsEx = { realmName , curName , strError } ; logEvent ( "SMS_EXCEPTION_DELETE_ID_REPO" , paramsEx ) ; throw new AMConsoleException ( strError ) ; } catch ( SSOException e ) { String strError = getErrorString ( e ) ; String [ ] paramsEx = { realmName , curName , strError } ; logEvent ( "SSO_EXCEPTION_DELETE_ID_REPO" , paramsEx ) ; throw new AMConsoleException ( strError ) ; } }
deletes id repo objects .
