Search in sources :

Example 1 with QuotaUsage

use of com.zimbra.cs.account.soap.SoapProvisioning.QuotaUsage in project zm-mailbox by Zimbra.

the class ProvUtil method doGetQuotaUsage.

private void doGetQuotaUsage(String[] args) throws ServiceException {
    if (!(prov instanceof SoapProvisioning)) {
        throwSoapOnly();
    }
    SoapProvisioning sp = (SoapProvisioning) prov;
    List<QuotaUsage> result = sp.getQuotaUsage(args[1]);
    for (QuotaUsage u : result) {
        console.printf("%s %d %d\n", u.getName(), u.getLimit(), u.getUsed());
    }
}
Also used : SoapProvisioning(com.zimbra.cs.account.soap.SoapProvisioning) QuotaUsage(com.zimbra.cs.account.soap.SoapProvisioning.QuotaUsage)

Aggregations

SoapProvisioning (com.zimbra.cs.account.soap.SoapProvisioning)1 QuotaUsage (com.zimbra.cs.account.soap.SoapProvisioning.QuotaUsage)1