Class RenditionLiveDocFetcher
- java.lang.Object
-
- org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
-
- org.nuxeo.ecm.platform.rendition.publisher.RenditionLiveDocFetcher
-
public class RenditionLiveDocFetcher extends UnrestrictedSessionRunner
Fetched the live doc for a given proxy on a Rendition- Author:
- Tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected CoreSession
coreSession
protected DocumentModel
liveDocument
protected DocumentModel
proxy
-
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RenditionLiveDocFetcher(CoreSession session, DocumentModel source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentModel
getLiveDocument()
void
run()
This method will be called byUnrestrictedSessionRunner.runUnrestricted()
withUnrestrictedSessionRunner.session
available as an unrestricted session.-
Methods inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
checkUnrestricted, getOriginatingUsername, runUnrestricted, setOriginatingUsername
-
-
-
-
Field Detail
-
proxy
protected final DocumentModel proxy
-
coreSession
protected final CoreSession coreSession
-
liveDocument
protected DocumentModel liveDocument
-
-
Constructor Detail
-
RenditionLiveDocFetcher
protected RenditionLiveDocFetcher(CoreSession session, DocumentModel source)
-
-
Method Detail
-
run
public void run()
Description copied from class:UnrestrictedSessionRunner
This method will be called byUnrestrictedSessionRunner.runUnrestricted()
withUnrestrictedSessionRunner.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)
.- Specified by:
run
in classUnrestrictedSessionRunner
-
getLiveDocument
public DocumentModel getLiveDocument()
-
-