Search in sources :

Example 1 with QuotaDirectoryDeleteParam

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);
}
Also used : QuotaDirectoryDeleteParam(com.emc.storageos.model.file.QuotaDirectoryDeleteParam)

Example 2 with QuotaDirectoryDeleteParam

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);
}
Also used : ViPRCoreClient(com.emc.vipr.client.ViPRCoreClient) QuotaDirectoryDeleteParam(com.emc.storageos.model.file.QuotaDirectoryDeleteParam) QuotaDirectoryRestRep(com.emc.storageos.model.file.QuotaDirectoryRestRep) FlashException(controllers.util.FlashException)

Aggregations

QuotaDirectoryDeleteParam (com.emc.storageos.model.file.QuotaDirectoryDeleteParam)2 QuotaDirectoryRestRep (com.emc.storageos.model.file.QuotaDirectoryRestRep)1 ViPRCoreClient (com.emc.vipr.client.ViPRCoreClient)1 FlashException (controllers.util.FlashException)1