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
Modifier and TypeMethodDescriptionvoid
addInnerSize
(long additionalSize) void
addTotalSize
(long additionalSize) void
addTrashSize
(long additionalSize) void
addVersionsSize
(long additionalSize) void
Resets quota info but keeps the user-specified max quota size, if present.getDoc()
long
long
long
long
long
void
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 Details
-
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
-