Class RenditionFinder
- java.lang.Object
-
- org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
-
- org.nuxeo.ecm.platform.rendition.service.RenditionFinder
-
public class RenditionFinder extends UnrestrictedSessionRunner
Retrieves stored Rendition associated to a DocumentModel.Can run Unrestricted or not.
- Author:
- Tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected RenditionDefinitionrenditionDefinitionprotected StringrenditionNameprotected StringrenditionVariantprotected DocumentModelsourceprotected DocumentModelstoredRendition-
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRenditionFinder(DocumentModel source, RenditionDefinition renditionDefinition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetSourceDocumentModificationDatePropertyName()DocumentModelgetStoredRendition()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
-
source
protected final DocumentModel source
-
storedRendition
protected DocumentModel storedRendition
-
renditionName
protected final String renditionName
-
renditionDefinition
protected RenditionDefinition renditionDefinition
- Since:
- 8.1
-
renditionVariant
protected final String renditionVariant
- Since:
- 8.1
-
-
Constructor Detail
-
RenditionFinder
protected RenditionFinder(DocumentModel source, RenditionDefinition renditionDefinition)
- Since:
- 8.1
-
-
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
-
getStoredRendition
public DocumentModel getStoredRendition()
-
getSourceDocumentModificationDatePropertyName
protected String getSourceDocumentModificationDatePropertyName()
-
-