public interface DocumentContentConverterService
Provides content conversion support for documents.
Modifier and Type | Method and Description |
---|---|
void |
evictCachedFile(String globalId)
Evicts cached file for given object
|
Set<com.google.common.net.MediaType> |
getAcceptableMediaTypes()
Returns set of supported media types, which is converter able to convert
|
org.springframework.core.io.Resource |
getConvertedContent(String documentId)
Returns converted content for a given document work object.
|
ContentMetadata |
getConvertedContentMetadata(String documentId)
Returns converted
ContentMetadata for the given document work object reference |
Pair<ContentMetadata,org.springframework.core.io.Resource> |
getConvertedContentMetadataAndInputStream(String documentId)
Returns converted content for the given document identifier
|
ContentReference |
getConvertedContentReference(String documentId)
Returns converted
ContentReference for the given document work object reference |
boolean |
isConvertible(WorkObject workObject)
Is given workObject convertible by this service
|
void |
shutdown()
Cleans up all temporary resources
|
org.springframework.core.io.Resource getConvertedContent(String documentId)
Returns converted content for a given document work object.
documentId
- the document identifierPair<ContentMetadata,org.springframework.core.io.Resource> getConvertedContentMetadataAndInputStream(String documentId)
Returns converted content for the given document identifier
documentId
- document identifierContentMetadata
and converted content InputStream
ContentReference getConvertedContentReference(String documentId)
Returns converted ContentReference
for the given document work object reference
documentId
- document identifierContentReference
ContentMetadata getConvertedContentMetadata(String documentId)
Returns converted ContentMetadata
for the given document work object reference
documentId
- document identifierContentMetadata
boolean isConvertible(WorkObject workObject)
Is given workObject convertible by this service
workObject
- to convertvoid shutdown()
Cleans up all temporary resources
void evictCachedFile(String globalId)
Evicts cached file for given object
globalId
- object identifier for which cache is evictedSet<com.google.common.net.MediaType> getAcceptableMediaTypes()
Returns set of supported media types, which is converter able to convert
MediaType
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.