public class QuotaComputerProcessor extends Object implements PostCommitEventListener
QuotaSyncListenerChecker
when Quota needs to be recomputedModifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
QuotaComputerProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
debugCheck(SizeUpdateEventContext quotaCtx) |
protected List<DocumentModel> |
getParents(DocumentModel sourceDocument,
CoreSession session) |
void |
handleEvent(EventBundle eventBundle)
Handles the set of events that were raised during the life of an user operation.
|
protected void |
processOnParents(List<DocumentModel> parents,
long delta) |
protected void |
processOnParents(List<DocumentModel> parents,
long delta,
long trash,
boolean total,
boolean trashOp) |
protected void |
processOnParents(List<DocumentModel> parents,
long deltaTotal,
long trashSize,
long deltaVersions,
boolean total,
boolean trashOp,
boolean versionsOp) |
void |
processQuotaComputation(SizeUpdateEventContext quotaCtx) |
protected static final org.apache.commons.logging.Log log
public QuotaComputerProcessor()
public void handleEvent(EventBundle eventBundle)
PostCommitEventListener
The events are fired as a BundleEvent
after the transaction is committed.
handleEvent
in interface PostCommitEventListener
eventBundle
- the events to handleprotected void debugCheck(SizeUpdateEventContext quotaCtx)
public void processQuotaComputation(SizeUpdateEventContext quotaCtx)
protected void processOnParents(List<DocumentModel> parents, long delta)
protected void processOnParents(List<DocumentModel> parents, long delta, long trash, boolean total, boolean trashOp)
protected void processOnParents(List<DocumentModel> parents, long deltaTotal, long trashSize, long deltaVersions, boolean total, boolean trashOp, boolean versionsOp)
protected List<DocumentModel> getParents(DocumentModel sourceDocument, CoreSession session)
Copyright © 2015 Nuxeo SA. All rights reserved.