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, wait
computeInitialStatistics
protected String descriptionLabel
protected static org.apache.commons.logging.Log log
public AbstractQuotaStatsUpdater()
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)
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 usedprotected List<DocumentModel> getAncestors(CoreSession session, DocumentModel doc)
protected abstract void handleQuotaExceeded(QuotaExceededException e, Event event)
protected abstract boolean needToProcessEventOnDocument(Event event, DocumentModel targetDoc)
protected abstract void processDocumentCreated(CoreSession session, DocumentModel doc, DocumentEventContext docCtx)
protected abstract void processDocumentCopied(CoreSession session, DocumentModel doc, DocumentEventContext docCtx)
protected abstract void processDocumentCheckedIn(CoreSession session, DocumentModel doc, DocumentEventContext docCtx)
protected abstract void processDocumentCheckedOut(CoreSession session, DocumentModel doc, DocumentEventContext docCtx)
protected abstract void processDocumentUpdated(CoreSession session, DocumentModel doc, DocumentEventContext docCtx)
protected abstract void processDocumentMoved(CoreSession session, DocumentModel doc, DocumentModel sourceParent, DocumentEventContext docCtx)
protected abstract void processDocumentAboutToBeRemoved(CoreSession session, DocumentModel doc, DocumentEventContext docCtx)
protected abstract void processDocumentBeforeUpdate(CoreSession session, DocumentModel targetDoc, DocumentEventContext docCtx)
protected abstract void processDocumentTrashOp(CoreSession session, DocumentModel doc, DocumentEventContext docCtx)
protected abstract void processDocumentRestored(CoreSession session, DocumentModel doc, DocumentEventContext docCtx)
protected abstract void processDocumentBeforeRestore(CoreSession session, DocumentModel doc, DocumentEventContext docCtx)
Copyright © 2015 Nuxeo SA. All rights reserved.