public class DCTMRenditionImpl extends AbstractRenditionImpl
IRendition
for Dctm. Note that most of the generate methods are currently unimplemented.priorityUpgradeValue, renditionPriorityValues
Modifier | Constructor and Description |
---|---|
protected |
DCTMRenditionImpl()
Spring is in charge of all instantiating
|
Modifier and Type | Method and Description |
---|---|
void |
addRendition(java.lang.String ticket,
java.lang.String objectId,
java.io.InputStream content,
java.lang.String mimetype)
This adds the given rendition in the inputstream to the document.
|
boolean |
canBeRenditioned(java.lang.String ticket,
java.lang.String objectId,
java.lang.String targetMimetype)
Returns true if a rendition of the given document to the target is possible; false otherwise.
|
boolean |
checkIfRenditioningAndUpgradePriority(java.lang.String ticket,
java.lang.String objectId)
Returns true if the object is currently renditioning; false otherwise, and increases the priority if it is renditioning
|
void |
generateRendition(java.lang.String ticket,
java.lang.String objectId,
java.lang.String sourceMimetype,
java.lang.String targetMimetype)
This rendition attempts to transform a document using any asynchronous transformer which exists
for these mimetypes, and defers to synchronous transformers if none are available.
|
void |
generateRenditionAsync(java.lang.String ticket,
java.lang.String objectId,
java.lang.String sourceMimetype,
java.lang.String targetMimetype)
Attempts to generate a rendition asynchronously, using the given objectId, sourceMimetype, and targetMimetype.
|
void |
generateRenditionSync(java.lang.String ticket,
java.lang.String objectId,
java.lang.String sourceMimetype,
java.lang.String targetMimetype)
Generates a rendition synchronously, not returning until a rendition exists on the given
objectId.
|
boolean |
isRenditioning(java.lang.String ticket,
java.lang.String objectId)
Returns true if the object is currently renditioning; false otherwise.
|
void |
removeRendition(java.lang.String ticket,
java.lang.String objectId,
java.lang.String mimeType)
This removes the rendition with the given mimetype from the document.
|
boolean |
renditioningFailed(java.lang.String ticket,
java.lang.String objectId)
Returns true if the given objectId has failed to receive a rendition; false otherwise.
|
void |
setRenditioningPriority(java.lang.String ticket,
java.lang.String objectId,
java.lang.Integer priority)
Sets the renditioning priority on the given objectId.
|
getPriorityUpgradeValue, getRenditionPriorityValues, setPriorityUpgradeValue, setRenditionPriorityValues
protected DCTMRenditionImpl()
public void generateRendition(java.lang.String ticket, java.lang.String objectId, java.lang.String sourceMimetype, java.lang.String targetMimetype)
IRendition
com.tsgrp.opencontent.core.extendedcontent.IExtendedContent#generateRendition(java.lang.String, java.lang.String)
public void generateRenditionAsync(java.lang.String ticket, java.lang.String objectId, java.lang.String sourceMimetype, java.lang.String targetMimetype)
IRendition
public void addRendition(java.lang.String ticket, java.lang.String objectId, java.io.InputStream content, java.lang.String mimetype)
IRendition
public void removeRendition(java.lang.String ticket, java.lang.String objectId, java.lang.String mimeType)
IRendition
public void generateRenditionSync(java.lang.String ticket, java.lang.String objectId, java.lang.String sourceMimetype, java.lang.String targetMimetype) throws OCRuntimeException
IRendition
OCRuntimeException
- if no configured synchronous transformer is available for these mimetypespublic boolean checkIfRenditioningAndUpgradePriority(java.lang.String ticket, java.lang.String objectId)
IRendition
public boolean isRenditioning(java.lang.String ticket, java.lang.String objectId)
IRendition
public void setRenditioningPriority(java.lang.String ticket, java.lang.String objectId, java.lang.Integer priority)
IRendition
priority
- If null then priority will be set to the lowest priority availablepublic boolean canBeRenditioned(java.lang.String ticket, java.lang.String objectId, java.lang.String targetMimetype)
IRendition
public boolean renditioningFailed(java.lang.String ticket, java.lang.String objectId)
IRendition