public abstract class AbstractQuotaStatsUpdater extends Object implements QuotaStatsUpdater
QuotaStatsUpdater to handle common cases.
Provides abstract methods to override for common events.
| Constructor and Description |
|---|
AbstractQuotaStatsUpdater() |
| Modifier and Type | Method and Description |
|---|---|
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 given
docCtx and event. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeInitialStatisticspublic void setName(String name)
setName in interface QuotaStatsUpdaterpublic String getName()
getName in interface QuotaStatsUpdaterpublic void setLabel(String label)
setLabel in interface QuotaStatsUpdaterpublic String getLabel()
getLabel in interface QuotaStatsUpdaterpublic void setDescriptionLabel(String descriptionLabel)
setDescriptionLabel in interface QuotaStatsUpdaterpublic String getDescriptionLabel()
getDescriptionLabel in interface QuotaStatsUpdaterpublic void updateStatistics(CoreSession session, DocumentEventContext docCtx, Event event) throws ClientException
QuotaStatsUpdaterdocCtx and event.
Signature was changed in 5.6 to pass the Event instead of the eventName
to allow the implementer to rollback the transaction if neededupdateStatistics in interface QuotaStatsUpdatersession - an unrestricted CoreSession to be usedClientExceptionCopyright © 2014 Nuxeo SA. All rights reserved.