use of com.emc.storageos.model.file.QuotaDirectoryRestRep in project coprhd-controller by CoprHD.
the class FileSystems method fileSystemQuotaDirectories.
@FlashException(referrer = { "fileSystem" })
public static void fileSystemQuotaDirectories(String fileSystemId) {
ViPRCoreClient client = BourneUtil.getViprClient();
List<QuotaDirectoryRestRep> quotas = client.quotaDirectories().getByFileSystem(uri(fileSystemId));
render(quotas);
}
use of com.emc.storageos.model.file.QuotaDirectoryRestRep 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