public class RenditionsRemover extends UnrestrictedSessionRunner
Modifier and Type | Field and Description |
---|---|
protected DocumentModel |
proxy |
static String |
RENDITION_PROXY_PUBLISHED |
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
Modifier | Constructor and Description |
---|---|
protected |
RenditionsRemover(DocumentModel source) |
Modifier and Type | Method and Description |
---|---|
protected EventService |
getEventService() |
protected void |
notifyEvent(String eventId,
DocumentModel doc,
Map<String,Serializable> options) |
protected void |
notifyRenditionPublished(List<String> removedProxyIds) |
void |
run()
This method will be called by
UnrestrictedSessionRunner.runUnrestricted() with UnrestrictedSessionRunner.session available as an unrestricted
session. |
getOriginatingUsername, isUnrestricted, runUnrestricted, setOriginatingUsername
public static final String RENDITION_PROXY_PUBLISHED
protected final DocumentModel proxy
protected RenditionsRemover(DocumentModel source)
public void run()
UnrestrictedSessionRunner
UnrestrictedSessionRunner.runUnrestricted()
with UnrestrictedSessionRunner.session
available as an unrestricted
session.
It can also be called directly in which case the UnrestrictedSessionRunner.session
available will be the one passed to
#UnrestrictedSessionRunner(CoreSession)
.
run
in class UnrestrictedSessionRunner
protected void notifyRenditionPublished(List<String> removedProxyIds)
protected void notifyEvent(String eventId, DocumentModel doc, Map<String,Serializable> options)
protected EventService getEventService()
Copyright © 2016 Nuxeo SA. All rights reserved.