@Override public void handleRequest(RequestContext rc) throws CLIException {
  super.handleRequest(rc);
  ldapLogin();
  metaAlias=getStringOptionValue(ARGUMENT_METADATA);
  bulkFedData=getStringOptionValue(ARGUMENT_BULK_DATA);
  spec=FederationManager.getIDFFSubCommandSpecification(rc);
  String[] params={metaAlias,bulkFedData,spec};
  writeLog(LogWriter.LOG_ACCESS,Level.INFO,"ATTEMPT_IMPORT_BULK_FED_DATA",params);
  try {
    if (spec.equals(FederationManager.DEFAULT_SPECIFICATION)) {
      saml2GetRoleAndEntityId();
      Map nameIds=new HashMap();
      validateFile(nameIds);
      handleSAML2Request(nameIds);
      writeLog(LogWriter.LOG_ACCESS,Level.INFO,"SUCCEEDED_IMPORT_BULK_FED_DATA",params);
    }
 else     if (spec.equals(FedCLIConstants.IDFF_SPECIFICATION)) {
      idffGetRoleAndEntityId();
      Map nameIds=new HashMap();
      validateFile(nameIds);
      handleIDFFRequest(nameIds);
      writeLog(LogWriter.LOG_ACCESS,Level.INFO,"SUCCEEDED_IMPORT_BULK_FED_DATA",params);
    }
 else {
      throw new CLIException(getResourceString("unsupported-specification"),ExitCodes.REQUEST_CANNOT_BE_PROCESSED);
    }
  }
 catch (  CLIException e) {
    String[] args={metaAlias,bulkFedData,spec,e.getMessage()};
    writeLog(LogWriter.LOG_ERROR,Level.INFO,"FAILED_IMPORT_BULK_FED_DATA",args);
    throw e;
  }
}

@ Override public void handleRequest ( RequestContext rc ) throws CLIException { super . handleRequest ( rc ) ; ldapLogin ( ) ; metaAlias = getStringOptionValue ( ARGUMENT_METADATA ) ; bulkFedData = getStringOptionValue ( ARGUMENT_BULK_DATA ) ; spec = FederationManager . getIDFFSubCommandSpecification ( rc ) ; String [ ] params = { metaAlias , bulkFedData , spec } ; writeLog ( LogWriter . LOG_ACCESS , Level . INFO , "ATTEMPT_IMPORT_BULK_FED_DATA" , params ) ; try { if ( spec . equals ( FederationManager . DEFAULT_SPECIFICATION ) ) { saml2GetRoleAndEntityId ( ) ; Map nameIds = new HashMap ( ) ; validateFile ( nameIds ) ; handleSAML2Request ( nameIds ) ; writeLog ( LogWriter . LOG_ACCESS , Level . INFO , "SUCCEEDED_IMPORT_BULK_FED_DATA" , params ) ; } else if ( spec . equals ( FedCLIConstants . IDFF_SPECIFICATION ) ) { idffGetRoleAndEntityId ( ) ; Map nameIds = new HashMap ( ) ; validateFile ( nameIds ) ; handleIDFFRequest ( nameIds ) ; writeLog ( LogWriter . LOG_ACCESS , Level . INFO , "SUCCEEDED_IMPORT_BULK_FED_DATA" , params ) ; } else { throw new CLIException ( getResourceString ( "unsupported-specification" ) , ExitCodes . REQUEST_CANNOT_BE_PROCESSED ) ; } } catch ( CLIException e ) { String [ ] args = { metaAlias , bulkFedData , spec , e . getMessage ( ) } ; writeLog ( LogWriter . LOG_ERROR , Level . INFO , "FAILED_IMPORT_BULK_FED_DATA" , args ) ; throw e ; } }
imports bulk federation data .
