public class QuotaAwareDocument extends Object implements QuotaAware
Modifier and Type | Field and Description |
---|---|
protected DocumentModel |
doc |
static String |
DOCUMENTS_SIZE_INNER_SIZE_PROPERTY |
static String |
DOCUMENTS_SIZE_MAX_SIZE_PROPERTY |
static String |
DOCUMENTS_SIZE_STATISTICS_FACET |
static String |
DOCUMENTS_SIZE_TOTAL_SIZE_PROPERTY |
static String |
DOCUMENTS_SIZE_TRASH_SIZE_PROPERTY |
static String |
DOCUMENTS_SIZE_VERSIONS_SIZE_PROPERTY |
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
QuotaAwareDocument(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
protected Number |
addDelta(String property,
long delta) |
void |
addInnerSize(long delta) |
void |
addTotalSize(long delta) |
void |
addTrashSize(long delta) |
void |
addVersionsSize(long delta) |
DocumentModel |
getDoc() |
long |
getInnerSize() |
long |
getMaxQuota() |
QuotaInfo |
getQuotaInfo() |
long |
getTotalSize() |
long |
getTrashSize() |
long |
getVersionsSize() |
void |
resetInfos() |
void |
save() |
void |
setMaxQuota(long maxSize) |
void |
setMaxQuota(long maxSize,
boolean skipValidation) |
public static final String DOCUMENTS_SIZE_STATISTICS_FACET
public static final String DOCUMENTS_SIZE_INNER_SIZE_PROPERTY
public static final String DOCUMENTS_SIZE_TOTAL_SIZE_PROPERTY
public static final String DOCUMENTS_SIZE_TRASH_SIZE_PROPERTY
public static final String DOCUMENTS_SIZE_VERSIONS_SIZE_PROPERTY
public static final String DOCUMENTS_SIZE_MAX_SIZE_PROPERTY
protected DocumentModel doc
protected static final org.apache.commons.logging.Log log
public QuotaAwareDocument(DocumentModel doc)
public DocumentModel getDoc()
getDoc
in interface QuotaAware
public long getInnerSize()
getInnerSize
in interface QuotaAware
public long getTotalSize()
getTotalSize
in interface QuotaAware
public long getTrashSize()
getTrashSize
in interface QuotaAware
public long getVersionsSize()
getVersionsSize
in interface QuotaAware
public void addInnerSize(long delta)
addInnerSize
in interface QuotaAware
public void addTotalSize(long delta)
addTotalSize
in interface QuotaAware
public void addTrashSize(long delta)
addTrashSize
in interface QuotaAware
public void addVersionsSize(long delta)
addVersionsSize
in interface QuotaAware
public void save()
save
in interface QuotaAware
public long getMaxQuota()
getMaxQuota
in interface QuotaAware
public void setMaxQuota(long maxSize)
setMaxQuota
in interface QuotaAware
public void setMaxQuota(long maxSize, boolean skipValidation)
setMaxQuota
in interface QuotaAware
public QuotaInfo getQuotaInfo()
getQuotaInfo
in interface QuotaAware
public void resetInfos()
resetInfos
in interface QuotaAware
Copyright © 2018 Nuxeo. All rights reserved.