public class QuotaAwareDocument extends Object implements QuotaAware
Modifier and Type | Field and Description |
---|---|
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 |
Constructor and Description |
---|
QuotaAwareDocument(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
void |
addInnerSize(long additionalSize,
boolean save) |
void |
addTotalSize(long additionalSize,
boolean save) |
void |
addTrashSize(long additionalSize,
boolean save) |
void |
addVersionsSize(long additionalSize,
boolean save) |
DocumentModel |
getDoc() |
long |
getInnerSize() |
long |
getMaxQuota() |
QuotaInfo |
getQuotaInfo() |
long |
getTotalSize() |
long |
getTrashSize() |
long |
getVersionsSize() |
void |
resetInfos(boolean save) |
void |
save() |
void |
save(boolean disableNotifications) |
void |
setInnerSize(long size,
boolean save) |
void |
setMaxQuota(long maxSize,
boolean save) |
void |
setMaxQuota(long maxSize,
boolean save,
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
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 setInnerSize(long size, boolean save) throws ClientException
setInnerSize
in interface QuotaAware
ClientException
public void addInnerSize(long additionalSize, boolean save) throws ClientException
addInnerSize
in interface QuotaAware
ClientException
public void addTotalSize(long additionalSize, boolean save) throws ClientException
addTotalSize
in interface QuotaAware
ClientException
public void addTrashSize(long additionalSize, boolean save) throws ClientException
addTrashSize
in interface QuotaAware
ClientException
public void addVersionsSize(long additionalSize, boolean save) throws ClientException
addVersionsSize
in interface QuotaAware
ClientException
public void save() throws ClientException
save
in interface QuotaAware
ClientException
public void save(boolean disableNotifications) throws ClientException
save
in interface QuotaAware
ClientException
public long getMaxQuota()
getMaxQuota
in interface QuotaAware
public void setMaxQuota(long maxSize, boolean save, boolean skipValidation) throws ClientException
setMaxQuota
in interface QuotaAware
ClientException
public void setMaxQuota(long maxSize, boolean save) throws ClientException
setMaxQuota
in interface QuotaAware
ClientException
public QuotaInfo getQuotaInfo()
getQuotaInfo
in interface QuotaAware
public void resetInfos(boolean save) throws ClientException
resetInfos
in interface QuotaAware
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.