public interface QuotaAware
Modifier and Type | Field and Description |
---|---|
static String |
QUOTA_TOTALSIZE_CACHE_NAME |
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 |
getTotalSizeCache()
Returns value of "total size" cache of document OR
null if cache does not exist or key does not exist in cache. |
long |
getTrashSize() |
long |
getVersionsSize() |
void |
invalidateTotalSizeCache()
Invalidates "total size" key-value in cache if exists.
|
void |
putTotalSizeCache(long size)
Stores "total size" value in cache if it exists.
|
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) |
boolean |
totalSizeCacheExists() |
static final String QUOTA_TOTALSIZE_CACHE_NAME
long getInnerSize()
long getTotalSize()
long getTrashSize()
long getVersionsSize()
long getMaxQuota()
void setInnerSize(long size, boolean save)
void addInnerSize(long additionalSize, boolean save)
void addTotalSize(long additionalSize, boolean save)
void addTrashSize(long additionalSize, boolean save)
void addVersionsSize(long additionalSize, boolean save)
void save()
void save(boolean disableNotifications)
DocumentModel getDoc()
void setMaxQuota(long maxSize, boolean save)
void setMaxQuota(long maxSize, boolean save, boolean skipValidation)
QuotaInfo getQuotaInfo()
void resetInfos(boolean save)
void invalidateTotalSizeCache() throws IOException
IOException
- when unable to invalidate key-valueLong getTotalSizeCache() throws IOException
null
if cache does not exist or key does not exist in cache.Long
object or null
IOException
void putTotalSizeCache(long size) throws IOException
size
- IOException
- if unable to store valueboolean totalSizeCacheExists()
true
if "total size" cache exists otherwise false
.Copyright © 2015 Nuxeo SA. All rights reserved.