Package org.nuxeo.ecm.quota
Interface QuotaStatsUpdater
- 
- All Known Implementing Classes:
- AbstractQuotaStatsUpdater,- DocumentsCountUpdater,- DocumentsSizeUpdater
 
 public interface QuotaStatsUpdaterInterface to be implemented byQuotaStatsUpdaters registered to theQuotaStatsService.They use an unrestricted CoreSessionto do the update.- Since:
- 5.5
- Author:
- Thomas Roger
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidcomputeInitialStatistics(CoreSession session, QuotaStatsInitialWork currentWorker)Deprecated.since 10.1, use other signaturevoidcomputeInitialStatistics(CoreSession session, QuotaStatsInitialWork currentWorker, String path)Compute the initial statistics under the given path for thisQuotaStatsUpdater.StringgetDescriptionLabel()StringgetLabel()StringgetName()voidsetDescriptionLabel(String descriptionLabel)voidsetLabel(String label)voidsetName(String name)voidupdateStatistics(CoreSession session, DocumentEventContext docCtx, Event event)Update the statistics for the givendocCtxandevent.
 
- 
- 
- 
Method Detail- 
updateStatisticsvoid updateStatistics(CoreSession session, DocumentEventContext docCtx, Event event) 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 unrestricted- CoreSessionto be used
 
 - 
computeInitialStatistics@Deprecated default void computeInitialStatistics(CoreSession session, QuotaStatsInitialWork currentWorker) Deprecated.since 10.1, use other signatureCompute the initial statistics on the whole repository for thisQuotaStatsUpdater.- Parameters:
- session- an unrestricted- CoreSessionto be used
 
 - 
computeInitialStatisticsvoid computeInitialStatistics(CoreSession session, QuotaStatsInitialWork currentWorker, String path) Compute the initial statistics under the given path for thisQuotaStatsUpdater.- Parameters:
- session- an unrestricted- CoreSessionto be used
- path- the root of the recomputation, or- nullfor the whole repository
- Since:
- 10.1
 
 - 
setNamevoid setName(String name) 
 - 
getNameString getName() 
 - 
setLabelvoid setLabel(String label) 
 - 
getLabelString getLabel() 
 - 
setDescriptionLabelvoid setDescriptionLabel(String descriptionLabel) 
 - 
getDescriptionLabelString getDescriptionLabel() 
 
- 
 
-