Class LazyRendition
- java.lang.Object
-
- org.nuxeo.ecm.platform.rendition.impl.AbstractRendition
-
- org.nuxeo.ecm.platform.rendition.impl.LazyRendition
-
- All Implemented Interfaces:
Rendition
- Direct Known Subclasses:
LiveRendition
public abstract class LazyRendition extends AbstractRendition implements Rendition
Implementation of theRendition
interface that allows lazy computation of the rendition Blobs- Author:
- Tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Blob>
blobs
static String
EMPTY_MARKER
static String
ERROR_MARKER
static String
IN_PROGRESS_MARKER
static String
STALE_MARKER
-
Fields inherited from class org.nuxeo.ecm.platform.rendition.impl.AbstractRendition
definition, log
-
-
Constructor Summary
Constructors Constructor Description LazyRendition(RenditionDefinition definition)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract List<Blob>
computeRenditionBlobs()
Blob
getBlob()
Returns the rendered Blob ornull
if none.List<Blob>
getBlobs()
Returns the rendered Blobs ornull
if none.boolean
isCompleted()
Checks if this rendition's computation has completed.-
Methods inherited from class org.nuxeo.ecm.platform.rendition.impl.AbstractRendition
getCmisName, getDefinition, getIcon, getKind, getLabel, getModificationDate, getName, getProviderType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.platform.rendition.Rendition
getCmisName, getHostDocument, getIcon, getKind, getLabel, getModificationDate, getName, getProviderType, isStored
-
-
-
-
Field Detail
-
EMPTY_MARKER
public static final String EMPTY_MARKER
- See Also:
- Constant Field Values
-
ERROR_MARKER
public static final String ERROR_MARKER
- See Also:
- Constant Field Values
-
STALE_MARKER
public static final String STALE_MARKER
- See Also:
- Constant Field Values
-
IN_PROGRESS_MARKER
public static final String IN_PROGRESS_MARKER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LazyRendition
public LazyRendition(RenditionDefinition definition)
-
-
Method Detail
-
getBlob
public Blob getBlob()
Description copied from interface:Rendition
Returns the rendered Blob ornull
if none.
-
getBlobs
public List<Blob> getBlobs()
Description copied from interface:Rendition
Returns the rendered Blobs ornull
if none.
-
isCompleted
public boolean isCompleted()
Description copied from interface:Rendition
Checks if this rendition's computation has completed.- Specified by:
isCompleted
in interfaceRendition
-
-