public abstract class AbstractQuotaStatsUpdater extends Object implements QuotaStatsUpdater
QuotaStatsUpdater to handle common cases.
 Provides abstract methods to override for common events.
| Modifier and Type | Field and Description | 
|---|---|
protected String | 
descriptionLabel  | 
protected String | 
label  | 
protected static org.apache.commons.logging.Log | 
log  | 
protected String | 
name  | 
| Constructor and Description | 
|---|
AbstractQuotaStatsUpdater()  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeInitialStatistics, computeInitialStatisticsprotected String descriptionLabel
protected static org.apache.commons.logging.Log log
public AbstractQuotaStatsUpdater()
public 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)
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 usedprotected List<DocumentModel> getAncestors(CoreSession session, DocumentModel doc)
protected abstract void handleQuotaExceeded(QuotaExceededException e, Event event)
protected abstract boolean needToProcessEventOnDocument(Event event, DocumentModel doc)
protected abstract void processDocumentCreated(CoreSession session, DocumentModel doc)
protected abstract void processDocumentCopied(CoreSession session, DocumentModel doc)
protected abstract void processDocumentCheckedIn(CoreSession session, DocumentModel doc)
protected abstract void processDocumentCheckedOut(CoreSession session, DocumentModel doc)
protected abstract void processDocumentUpdated(CoreSession session, DocumentModel doc)
protected abstract void processDocumentMoved(CoreSession session, DocumentModel doc, DocumentModel sourceParent)
protected abstract void processDocumentAboutToBeRemoved(CoreSession session, DocumentModel doc)
protected abstract void processDocumentBeforeUpdate(CoreSession session, DocumentModel doc)
protected abstract void processDocumentTrashOp(CoreSession session, DocumentModel doc, boolean isTrashed)
protected abstract void processDocumentRestored(CoreSession session, DocumentModel doc)
protected abstract void processDocumentBeforeRestore(CoreSession session, DocumentModel doc)
Copyright © 2019 Nuxeo. All rights reserved.