Package org.nuxeo.ecm.quota
Interface QuotaStatsUpdater
-
- All Known Implementing Classes:
AbstractQuotaStatsUpdater
,DocumentsCountUpdater
,DocumentsSizeUpdater
public interface QuotaStatsUpdater
Interface to be implemented byQuotaStatsUpdater
s registered to theQuotaStatsService
.They use an unrestricted
CoreSession
to do the update.- Since:
- 5.5
- Author:
- Thomas Roger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
computeInitialStatistics(CoreSession session, QuotaStatsInitialWork currentWorker)
Deprecated.since 10.1, use other signaturevoid
computeInitialStatistics(CoreSession session, QuotaStatsInitialWork currentWorker, String path)
Compute the initial statistics under the given path for thisQuotaStatsUpdater
.String
getDescriptionLabel()
String
getLabel()
String
getName()
void
setDescriptionLabel(String descriptionLabel)
void
setLabel(String label)
void
setName(String name)
void
updateStatistics(CoreSession session, DocumentEventContext docCtx, Event event)
Update the statistics for the givendocCtx
andevent
.
-
-
-
Method Detail
-
updateStatistics
void updateStatistics(CoreSession session, DocumentEventContext docCtx, Event event)
Update the statistics for the givendocCtx
andevent
. 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 unrestrictedCoreSession
to 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 unrestrictedCoreSession
to be used
-
computeInitialStatistics
void computeInitialStatistics(CoreSession session, QuotaStatsInitialWork currentWorker, String path)
Compute the initial statistics under the given path for thisQuotaStatsUpdater
.- Parameters:
session
- an unrestrictedCoreSession
to be usedpath
- the root of the recomputation, ornull
for the whole repository- Since:
- 10.1
-
setName
void setName(String name)
-
getName
String getName()
-
setLabel
void setLabel(String label)
-
getLabel
String getLabel()
-
setDescriptionLabel
void setDescriptionLabel(String descriptionLabel)
-
getDescriptionLabel
String getDescriptionLabel()
-
-