Class RenditionCreator
java.lang.Object
org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
org.nuxeo.ecm.platform.rendition.service.RenditionCreator
- Author:
- Thomas Roger
-
Field Summary
Modifier and TypeFieldDescriptionprotected DocumentModel
static final String
protected String
protected Blob
protected RenditionDefinition
protected String
protected final String
protected String
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
Constructor Summary
ConstructorDescriptionRenditionCreator
(DocumentModel liveDocument, DocumentModel versionDocument, Blob renditionBlob, RenditionDefinition renditionDefinition) -
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentModel
createRenditionDocument
(DocumentModel sourceDocument) protected String
protected void
removeBlobs
(DocumentModel rendition) void
run()
This method will be called byUnrestrictedSessionRunner.runUnrestricted()
withUnrestrictedSessionRunner.session
available as an unrestricted session.protected void
setCorrectVersion
(DocumentModel rendition, DocumentModel versionDocument) protected void
updateMainBlob
(DocumentModel rendition) Methods inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
checkUnrestricted, getOriginatingUsername, runUnrestricted, setOriginatingUsername
-
Field Details
-
FILE
- See Also:
-
detachedRendition
-
liveDocumentId
-
versionDocumentId
-
renditionBlob
-
renditionName
-
renditionDefinition
- Since:
- 8.1
-
renditionVariant
- Since:
- 8.1
-
-
Constructor Details
-
RenditionCreator
public RenditionCreator(DocumentModel liveDocument, DocumentModel versionDocument, Blob renditionBlob, RenditionDefinition renditionDefinition) - Since:
- 8.1
-
-
Method Details
-
getDetachedRendition
-
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
-
createRenditionDocument
-
removeBlobs
-
updateMainBlob
-
setCorrectVersion
-
getSourceDocumentModificationDatePropertyName
-