Package org.nuxeo.ecm.quota.size
Interface QuotaAware
-
- All Known Implementing Classes:
QuotaAwareDocument
public interface QuotaAware
Interface to manage DocumentModel that supports Quotas- Since:
- 5.6
- Author:
- Tiry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addInnerSize(long additionalSize)
void
addTotalSize(long additionalSize)
void
addTrashSize(long additionalSize)
void
addVersionsSize(long additionalSize)
void
clearInfos()
Resets quota info but keeps the user-specified max quota size, if present.DocumentModel
getDoc()
long
getInnerSize()
long
getMaxQuota()
QuotaInfo
getQuotaInfo()
long
getTotalSize()
long
getTrashSize()
long
getVersionsSize()
void
resetInfos()
void
save()
void
setAll(long innerSize, long totalSize, long trashSize, long versionsSize)
Set all quota info.void
setMaxQuota(long maxSize)
void
setMaxQuota(long maxSize, boolean skipValidation)
-
-
-
Method Detail
-
getInnerSize
long getInnerSize()
-
getTotalSize
long getTotalSize()
-
getTrashSize
long getTrashSize()
-
getVersionsSize
long getVersionsSize()
-
getMaxQuota
long getMaxQuota()
-
addInnerSize
void addInnerSize(long additionalSize)
-
addTotalSize
void addTotalSize(long additionalSize)
-
addTrashSize
void addTrashSize(long additionalSize)
-
addVersionsSize
void addVersionsSize(long additionalSize)
-
save
void save()
-
getDoc
DocumentModel getDoc()
-
setMaxQuota
void setMaxQuota(long maxSize)
-
setMaxQuota
void setMaxQuota(long maxSize, boolean skipValidation)
-
getQuotaInfo
QuotaInfo getQuotaInfo()
-
resetInfos
void resetInfos()
-
clearInfos
void clearInfos()
Resets quota info but keeps the user-specified max quota size, if present.- Since:
- 10.1
-
setAll
void setAll(long innerSize, long totalSize, long trashSize, long versionsSize)
Set all quota info.- Since:
- 10.1
-
-