private String handleZoningUpdate(URI export,List<URI> initiators,Map<URI,Integer> blockObjectMap,Workflow workflow,String waitFor,List<ExportMask> exportMasksToCreateOnDevice,List<ExportMask> exportMasksToUpdateOnDevice){
  String zoningStepId=workflow.createStepId();
  List<URI> exportMaskURIs=new ArrayList<URI>();
  for (  ExportMask mask : exportMasksToCreateOnDevice) {
    exportMaskURIs.add(mask.getId());
  }
  for (  ExportMask mask : exportMasksToUpdateOnDevice) {
    exportMaskURIs.add(mask.getId());
  }
  List<URI> volumeURIs=new ArrayList<URI>();
  volumeURIs.addAll(blockObjectMap.keySet());
  Workflow.Method zoningExecuteMethod=_networkDeviceController.zoneExportMasksCreateMethod(export,exportMaskURIs,volumeURIs);
  Workflow.Method zoningRollbackMethod=_networkDeviceController.zoneRollbackMethod(export,zoningStepId);
  zoningStepId=workflow.createStep(ZONING_STEP,String.format("Zone ExportGroup %s for initiators %s",export,initiators.toString()),waitFor,nullURI,"network-system",_networkDeviceController.getClass(),zoningExecuteMethod,zoningRollbackMethod,zoningStepId);
  return zoningStepId;
}

private String handleZoningUpdate ( URI export , List < URI > initiators , Map < URI , Integer > blockObjectMap , Workflow workflow , String waitFor , List < ExportMask > exportMasksToCreateOnDevice , List < ExportMask > exportMasksToUpdateOnDevice ) { String zoningStepId = workflow . createStepId ( ) ; List < URI > exportMaskURIs = new ArrayList < URI > ( ) ; for ( ExportMask mask : exportMasksToCreateOnDevice ) { exportMaskURIs . add ( mask . getId ( ) ) ; } for ( ExportMask mask : exportMasksToUpdateOnDevice ) { exportMaskURIs . add ( mask . getId ( ) ) ; } List < URI > volumeURIs = new ArrayList < URI > ( ) ; volumeURIs . addAll ( blockObjectMap . keySet ( ) ) ; Workflow . Method zoningExecuteMethod = _networkDeviceController . zoneExportMasksCreateMethod ( export , exportMaskURIs , volumeURIs ) ; Workflow . Method zoningRollbackMethod = _networkDeviceController . zoneRollbackMethod ( export , zoningStepId ) ; zoningStepId = workflow . createStep ( ZONING_STEP , String . format ( "Zone ExportGroup %s for initiators %s" , export , initiators . toString ( ) ) , waitFor , nullURI , "network-system" , _networkDeviceController . getClass ( ) , zoningExecuteMethod , zoningRollbackMethod , zoningStepId ) ; return zoningStepId ; }
handles creating a workflow method for updating the zoning for both the new exportmasks being created and those being updated .
