private void verifyModifyExportRule(List<ExportRule> listExportRule) throws Exception {
  if (listExportRule == null) {
    return;
  }
  _log.info("{} Export Rule(s) Requested to Modify {} - Iterating ..",listExportRule.size());
  for (  ExportRule exportRule : listExportRule) {
    exportRule.setIsToProceed(true,ExportOperationErrorType.NO_ERROR);
    _log.info("Verifying Export Rule {}",exportRule.toString());
    scanForDuplicateSecFlavor(exportRule);
    if (!exportRule.isToProceed()) {
      _log.info("Same Security Flavor found across the exports {}",exportRule.toString());
      break;
    }
    FileExportRule rule=validateHosts(exportRule);
    if (rule != null) {
      verifyExportAnon(exportRule);
    }
 else {
      if (exportRule.isToProceed()) {
        _log.info("Export not found to modify");
        exportRule.setIsToProceed(false,ExportOperationErrorType.EXPORT_NOT_FOUND);
      }
    }
  }
}

private void verifyModifyExportRule ( List < ExportRule > listExportRule ) throws Exception { if ( listExportRule == null ) { return ; } _log . info ( "{} Export Rule(s) Requested to Modify {} - Iterating .." , listExportRule . size ( ) ) ; for ( ExportRule exportRule : listExportRule ) { exportRule . setIsToProceed ( true , ExportOperationErrorType . NO_ERROR ) ; _log . info ( "Verifying Export Rule {}" , exportRule . toString ( ) ) ; scanForDuplicateSecFlavor ( exportRule ) ; if ( ! exportRule . isToProceed ( ) ) { _log . info ( "Same Security Flavor found across the exports {}" , exportRule . toString ( ) ) ; break ; } FileExportRule rule = validateHosts ( exportRule ) ; if ( rule != null ) { verifyExportAnon ( exportRule ) ; } else { if ( exportRule . isToProceed ( ) ) { _log . info ( "Export not found to modify" ) ; exportRule . setIsToProceed ( false , ExportOperationErrorType . EXPORT_NOT_FOUND ) ; } } } }
verify each export rule that can be added
