public interface IRendition
Modifier and Type | Method and Description |
---|---|
void |
addRendition(java.lang.String ticket,
java.lang.String objectId,
java.io.InputStream rendition,
java.lang.String renditionMimetype)
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.
|
int |
getPriorityUpgradeValue()
Returns the value we want to upgrade the rendition priority to when we check if a doc is renditioning
by calling checkIfRenditioningAndUpgradePriority
|
java.util.List<java.lang.Integer> |
getRenditionPriorityValues()
Returns a List of the possible rendition priority values
|
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 |
setPriorityUpgradeValue(int priorityUpgradeValue) |
void |
setRenditioningPriority(java.lang.String ticket,
java.lang.String objectId,
java.lang.Integer priority)
Sets the renditioning priority on the given objectId.
|
void generateRendition(java.lang.String ticket, java.lang.String objectId, java.lang.String sourceMimetype, java.lang.String targetMimetype)
ticket
- objectId
- sourceMimetype
- targetMimetype
- void generateRenditionAsync(java.lang.String ticket, java.lang.String objectId, java.lang.String sourceMimetype, java.lang.String targetMimetype)
ticket
- objectId
- sourceMimetype
- targetMimetype
- void generateRenditionSync(java.lang.String ticket, java.lang.String objectId, java.lang.String sourceMimetype, java.lang.String targetMimetype) throws OCRuntimeException
ticket
- objectId
- sourceMimetype
- targetMimetype
- OCRuntimeException
- if no configured synchronous transformer is available for these mimetypesvoid addRendition(java.lang.String ticket, java.lang.String objectId, java.io.InputStream rendition, java.lang.String renditionMimetype)
ticket
- objectId
- rendition
- renditionMimetype
- void removeRendition(java.lang.String ticket, java.lang.String objectId, java.lang.String mimeType)
ticket
- objectId
- mimeType
- boolean checkIfRenditioningAndUpgradePriority(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- boolean isRenditioning(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
- void setRenditioningPriority(java.lang.String ticket, java.lang.String objectId, java.lang.Integer priority)
ticket
- objectId
- priority
- If null then priority will be set to the lowest priority availablejava.util.List<java.lang.Integer> getRenditionPriorityValues()
int getPriorityUpgradeValue()
void setPriorityUpgradeValue(int priorityUpgradeValue)
boolean canBeRenditioned(java.lang.String ticket, java.lang.String objectId, java.lang.String targetMimetype)
boolean renditioningFailed(java.lang.String ticket, java.lang.String objectId)
ticket
- objectId
-