001package org.nuxeo.ecm.quota.automation;
002
003import org.nuxeo.ecm.quota.size.QuotaInfo;
004
005public class SimpleQuotaInfo {
006
007    protected long innerSize;
008
009    protected long totalSize;
010
011    protected long maxQuota;
012
013    public SimpleQuotaInfo() {
014        innerSize = -1;
015        totalSize = -1;
016        maxQuota = -1;
017    }
018
019    public SimpleQuotaInfo(QuotaInfo info) {
020        innerSize = info.getInnerSize().getValue();
021        totalSize = info.getTotalSize().getValue();
022        maxQuota = info.getMaxQuota().getValue();
023    }
024
025    public long getInnerSize() {
026        return innerSize;
027    }
028
029    public void setInnerSize(long innerSize) {
030        this.innerSize = innerSize;
031    }
032
033    public long getTotalSize() {
034        return totalSize;
035    }
036
037    public void setTotalSize(long totalSize) {
038        this.totalSize = totalSize;
039    }
040
041    public long getMaxQuota() {
042        return maxQuota;
043    }
044
045    public void setMaxQuota(long maxQuota) {
046        this.maxQuota = maxQuota;
047    }
048
049}