Package org.nuxeo.ecm.quota
Interface QuotaStatsUpdater
- All Known Implementing Classes:
AbstractQuotaStatsUpdater,DocumentsCountUpdater,DocumentsSizeUpdater
public interface QuotaStatsUpdater
Interface to be implemented by
QuotaStatsUpdaters registered to the
QuotaStatsService.
They use an unrestricted CoreSession to do the update.
- Since:
- 5.5
- Author:
- Thomas Roger
-
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeInitialStatistics(CoreSession session, QuotaStatsInitialWork currentWorker, String path) Compute the initial statistics under the given path for thisQuotaStatsUpdater.getLabel()getName()voidsetDescriptionLabel(String descriptionLabel) voidvoidvoidupdateStatistics(CoreSession session, DocumentEventContext docCtx, Event event) Update the statistics for the givendocCtxandevent.
-
Method Details
-
updateStatistics
Update the statistics for the givendocCtxandevent. Signature was changed in 5.6 to pass the Event instead of the eventName to allow the implementer to rollback the transaction if needed- Parameters:
session- an unrestrictedCoreSessionto be used
-
computeInitialStatistics
void computeInitialStatistics(CoreSession session, QuotaStatsInitialWork currentWorker, String path) Compute the initial statistics under the given path for thisQuotaStatsUpdater.- Parameters:
session- an unrestrictedCoreSessionto be usedpath- the root of the recomputation, ornullfor the whole repository- Since:
- 10.1
-
setName
-
getName
String getName() -
setLabel
-
getLabel
String getLabel() -
setDescriptionLabel
-
getDescriptionLabel
String getDescriptionLabel()
-