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, wait
computeInitialStatistics
public void setName(String name)
setName
in interface QuotaStatsUpdater
public String getName()
getName
in interface QuotaStatsUpdater
public void setLabel(String label)
setLabel
in interface QuotaStatsUpdater
public String getLabel()
getLabel
in interface QuotaStatsUpdater
public void setDescriptionLabel(String descriptionLabel)
setDescriptionLabel
in interface QuotaStatsUpdater
public String getDescriptionLabel()
getDescriptionLabel
in interface QuotaStatsUpdater
public void updateStatistics(CoreSession session, DocumentEventContext docCtx, Event event) throws ClientException
QuotaStatsUpdater
docCtx
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 QuotaStatsUpdater
session
- an unrestricted CoreSession
to be usedClientException
Copyright © 2012 Nuxeo SA. All Rights Reserved.