public class SizeUpdateEventContext extends DocumentEventContext
QuotaStatsService
synchronously and the Asynchrous
listener ( QuotaComputerProcessor
that actually does the work.Modifier and Type | Field and Description |
---|---|
static String |
_UPDATE_TRASH_SIZE |
static String |
BLOB_DELTA_PROPERTY_KEY |
static String |
BLOB_SIZE_PROPERTY_KEY |
static String |
DOCUMENT_UPDATE_INITIAL_STATISTICS |
static String |
MARKER_KEY |
static String |
MARKER_VALUE |
static String |
PARENT_UUIDS_PROPERTY_KEY |
static String |
QUOTA_UPDATE_NEEDED |
static String |
SOURCE_EVENT_PROPERTY_KEY |
static String |
VERSIONS_SIZE_ON_TOTAL_PROPERTY_KEY |
static String |
VERSIONS_SIZE_PROPERTY_KEY |
CATEGORY_PROPERTY_KEY, COMMENT_PROPERTY_KEY
Constructor and Description |
---|
SizeUpdateEventContext(CoreSession session,
BlobSizeInfo bsi,
String sourceEvent,
DocumentModel sourceDocument) |
SizeUpdateEventContext(CoreSession session,
DocumentEventContext evtCtx,
BlobSizeInfo bsi,
String sourceEvent) |
SizeUpdateEventContext(CoreSession session,
DocumentEventContext evtCtx,
DocumentModel sourceDocument,
BlobSizeInfo bsi,
String sourceEvent) |
SizeUpdateEventContext(CoreSession session,
DocumentEventContext evtCtx,
long totalSize,
String sourceEvent) |
Modifier and Type | Method and Description |
---|---|
long |
getBlobDelta() |
long |
getBlobSize() |
List<String> |
getParentUUIds() |
String |
getSourceEvent() |
long |
getTrashSize() |
long |
getVersionsSize() |
long |
getVersionsSizeOnTotal() |
Event |
newQuotaUpdateEvent() |
void |
setBlobDelta(long blobDelta) |
void |
setBlobSize(long blobSize) |
void |
setParentUUIds(List<String> parentUUIds) |
void |
setVersionsSize(long versionsSize) |
void |
setVersionsSizeOnTotal(long blobSize) |
String |
toString() |
static SizeUpdateEventContext |
unwrap(DocumentEventContext docCtx) |
getCategory, getComment, getDestination, getSourceDocument, setCategory, setComment, setProperties
getCoreSession, getPrincipal, setArgs, setCoreSession, setPrincipal
getArguments, getProperties, getProperty, getRepositoryName, hasProperty, newEvent, newEvent, setProperty, setRepositoryName
public static final String QUOTA_UPDATE_NEEDED
public static final String DOCUMENT_UPDATE_INITIAL_STATISTICS
public static final String BLOB_SIZE_PROPERTY_KEY
public static final String BLOB_DELTA_PROPERTY_KEY
public static final String VERSIONS_SIZE_PROPERTY_KEY
public static final String VERSIONS_SIZE_ON_TOTAL_PROPERTY_KEY
public static final String PARENT_UUIDS_PROPERTY_KEY
public static final String SOURCE_EVENT_PROPERTY_KEY
public static final String MARKER_KEY
public static final String MARKER_VALUE
public static final String _UPDATE_TRASH_SIZE
public SizeUpdateEventContext(CoreSession session, DocumentEventContext evtCtx, DocumentModel sourceDocument, BlobSizeInfo bsi, String sourceEvent)
public SizeUpdateEventContext(CoreSession session, BlobSizeInfo bsi, String sourceEvent, DocumentModel sourceDocument)
public SizeUpdateEventContext(CoreSession session, DocumentEventContext evtCtx, BlobSizeInfo bsi, String sourceEvent)
public SizeUpdateEventContext(CoreSession session, DocumentEventContext evtCtx, long totalSize, String sourceEvent)
public static SizeUpdateEventContext unwrap(DocumentEventContext docCtx)
public long getBlobSize()
public void setBlobSize(long blobSize)
public void setVersionsSize(long versionsSize)
public long getVersionsSize()
public void setVersionsSizeOnTotal(long blobSize)
public long getVersionsSizeOnTotal()
public long getBlobDelta()
public void setBlobDelta(long blobDelta)
public String getSourceEvent()
public long getTrashSize()
public Event newQuotaUpdateEvent()
Copyright © 2013 Nuxeo SA. All Rights Reserved.