use of com.emc.storageos.hds.model.Delete in project coprhd-controller by CoprHD.
the class HDSBatchApiExportManager method constructRemoveLUNsQuery.
/**
* Constructs a batch query for the given Path objects to remove LUN's from
* storage system.
*
* @param systemId
* - represents storage system objectID.
* @param pathList
* - List of Path objects.
* @return - XML String to remove the Paths from storage system
*/
private String constructRemoveLUNsQuery(String systemId, List<Path> pathList, String model) {
Map<String, Object> attributeMap = new HashMap<String, Object>();
StorageArray array = new StorageArray(systemId);
Delete deleteOp = new Delete(HDSConstants.LUN_TARGET);
attributeMap.put(HDSConstants.STORAGEARRAY, array);
attributeMap.put(HDSConstants.DELETE, deleteOp);
attributeMap.put(HDSConstants.MODEL, model);
attributeMap.put(HDSConstants.PATH_LIST, pathList);
return InputXMLGenerationClient.getInputXMLString(HDSConstants.DELETE_PATH_FROM_HSD_OP, attributeMap, HDSConstants.HITACHI_INPUT_XML_CONTEXT_FILE, HDSConstants.HITACHI_SMOOKS_CONFIG_FILE);
}
use of com.emc.storageos.hds.model.Delete in project coprhd-controller by CoprHD.
the class HDSBatchApiExportManager method constructDeleteHSDsQuery.
/**
* Constructs a batch query to delete given HSD's from the storage system.
*
* @param systemId
* - represents the storage system ObjectID.
* @param hsdList
* - List of HostStorageDomain objects.
* @return - XML string to delete the HostStorageDomain's
*/
private String constructDeleteHSDsQuery(String systemId, List<HostStorageDomain> hsdList, String model) {
Map<String, Object> attributeMap = new HashMap<String, Object>();
StorageArray array = new StorageArray(systemId);
Delete deleteOp = new Delete(HDSConstants.HOST_STORAGE_DOMAIN);
attributeMap.put(HDSConstants.STORAGEARRAY, array);
attributeMap.put(HDSConstants.DELETE, deleteOp);
attributeMap.put(HDSConstants.MODEL, model);
attributeMap.put(HDSConstants.HOSTGROUP_LIST, hsdList);
return InputXMLGenerationClient.getInputXMLString(HDSConstants.BATCH_DELETE_HSDS_FROM_SYSTEM, attributeMap, HDSConstants.HITACHI_INPUT_XML_CONTEXT_FILE, HDSConstants.HITACHI_SMOOKS_CONFIG_FILE);
}
Aggregations