001/* 002 * (C) Copyright 2012 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 * Contributors: 017 * Thierry Delprat 018 */ 019package org.nuxeo.ecm.quota.automation; 020 021import org.nuxeo.ecm.quota.size.QuotaInfo; 022 023public class SimpleQuotaInfo { 024 025 protected long innerSize; 026 027 protected long totalSize; 028 029 protected long maxQuota; 030 031 public SimpleQuotaInfo() { 032 innerSize = -1; 033 totalSize = -1; 034 maxQuota = -1; 035 } 036 037 public SimpleQuotaInfo(QuotaInfo info) { 038 innerSize = info.getInnerSize().getValue(); 039 totalSize = info.getTotalSize().getValue(); 040 maxQuota = info.getMaxQuota().getValue(); 041 } 042 043 public long getInnerSize() { 044 return innerSize; 045 } 046 047 public void setInnerSize(long innerSize) { 048 this.innerSize = innerSize; 049 } 050 051 public long getTotalSize() { 052 return totalSize; 053 } 054 055 public void setTotalSize(long totalSize) { 056 this.totalSize = totalSize; 057 } 058 059 public long getMaxQuota() { 060 return maxQuota; 061 } 062 063 public void setMaxQuota(long maxQuota) { 064 this.maxQuota = maxQuota; 065 } 066 067}