Example usage for javax.mail Quota Quota

List of usage examples for javax.mail Quota Quota

Introduction

In this page you can find the example usage for javax.mail Quota Quota.

Prototype

public Quota(String quotaRoot) 

Source Link

Document

Create a Quota object for the named quotaroot with no associated resources.

Usage

From source file:com.hs.mail.imap.dao.MySqlUserDao.java

public Quota getQuota(long ownerID, String quotaRoot) {
    Quota quota = new Quota(quotaRoot);
    quota.setResourceLimit("STORAGE", getQuotaLimit(ownerID));
    quota.resources[0].usage = getQuotaUsage(ownerID);
    return quota;
}