use of com.emc.storageos.model.file.FileSystemDeleteParam in project coprhd-controller by CoprHD.
the class DeactivateFileSystem method doExecute.
@Override
protected Task<FileShareRestRep> doExecute() throws Exception {
FileSystemDeleteParam param = new FileSystemDeleteParam();
// force delete is applicable only for Inventory delete only!!
if (fileDeletionType != null && fileDeletionType.equals(FileControllerConstants.DeleteTypeEnum.VIPR_ONLY)) {
param.setForceDelete(true);
} else {
param.setForceDelete(false);
}
param.setDeleteType(fileDeletionType.toString());
return getClient().fileSystems().deactivate(fileSystemId, param);
}
use of com.emc.storageos.model.file.FileSystemDeleteParam in project coprhd-controller by CoprHD.
the class FileSystems method deleteFileSystem.
@FlashException(referrer = { "fileSystem" })
public static void deleteFileSystem(String fileSystemId, String deleteType) {
if (StringUtils.isNotBlank(fileSystemId)) {
ViPRCoreClient client = BourneUtil.getViprClient();
boolean forceDelete = false;
Task<FileShareRestRep> task = client.fileSystems().deactivate(uri(fileSystemId), new FileSystemDeleteParam(forceDelete, deleteType));
flash.put("info", MessagesUtils.get("resources.filesystem.deactivate"));
}
fileSystem(fileSystemId);
}
Aggregations