use of com.emc.storageos.model.file.QuotaDirectoryDeleteParam in project coprhd-controller by CoprHD.
the class DeactivateQuotaDirectory method doExecute.
@Override
protected Task<QuotaDirectoryRestRep> doExecute() throws Exception {
QuotaDirectoryDeleteParam param = new QuotaDirectoryDeleteParam();
param.setForceDelete(false);
return getClient().quotaDirectories().deleteQuotaDirectory(quotaDirectoryId, param);
}
use of com.emc.storageos.model.file.QuotaDirectoryDeleteParam in project coprhd-controller by CoprHD.
the class FileSystems method deleteFileSystemQuotaDirectory.
@FlashException(referrer = { "fileSystem" })
public static void deleteFileSystemQuotaDirectory(String fileSystemId, String quotaDirectoryId) {
ViPRCoreClient client = BourneUtil.getViprClient();
// Avoid force delete for quota directory!!
QuotaDirectoryDeleteParam param = new QuotaDirectoryDeleteParam(false);
Task<QuotaDirectoryRestRep> task = client.quotaDirectories().deleteQuotaDirectory(uri(quotaDirectoryId), param);
flash.put("info", MessagesUtils.get("resources.filesystem.quota.deactivate"));
fileSystem(fileSystemId);
}
Aggregations