Class RenditionsRemover
- java.lang.Object
-
- org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
-
- org.nuxeo.ecm.platform.rendition.service.RenditionsRemover
-
public class RenditionsRemover extends UnrestrictedSessionRunner
Remove proxy to the same stored rendition with a different version.- Author:
- Tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentModelproxystatic StringRENDITION_PROXY_PUBLISHED-
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
-
Constructor Summary
Constructors Constructor Description RenditionsRemover(DocumentModel source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EventServicegetEventService()protected voidnotifyEvent(String eventId, DocumentModel doc, Map<String,Serializable> options)protected voidnotifyRenditionPublished(List<String> removedProxyIds)voidrun()This method will be called byUnrestrictedSessionRunner.runUnrestricted()withUnrestrictedSessionRunner.sessionavailable as an unrestricted session.-
Methods inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
checkUnrestricted, getOriginatingUsername, runUnrestricted, setOriginatingUsername
-
-
-
-
Field Detail
-
RENDITION_PROXY_PUBLISHED
public static final String RENDITION_PROXY_PUBLISHED
- See Also:
- Constant Field Values
-
proxy
protected final DocumentModel proxy
-
-
Constructor Detail
-
RenditionsRemover
public RenditionsRemover(DocumentModel source)
-
-
Method Detail
-
run
public void run()
Description copied from class:UnrestrictedSessionRunnerThis method will be called byUnrestrictedSessionRunner.runUnrestricted()withUnrestrictedSessionRunner.sessionavailable as an unrestricted session.It can also be called directly in which case the
UnrestrictedSessionRunner.sessionavailable will be the one passed to#UnrestrictedSessionRunner(CoreSession).- Specified by:
runin classUnrestrictedSessionRunner
-
notifyEvent
protected void notifyEvent(String eventId, DocumentModel doc, Map<String,Serializable> options)
-
getEventService
protected EventService getEventService()
-
-