public interface PreviewManager
Exposes API for retrieving preview.
| Modifier and Type | Interface and Description |
|---|---|
static class |
PreviewManager.ErrorMessage
Error message class which is used to generate a proper error response.
|
| Modifier and Type | Method and Description |
|---|---|
void |
evictCachedFile(String ambiguousId)
Evicts cached file for the given work object ID.
|
String |
getJsonErrorMessage(String messageKey,
String cause)
Utility method to get error message and cause in a json string.
|
void |
getPreviewContent(String ambiguousId,
boolean forceDownload,
String acceptHeader,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Get preview content of a work object.
|
void |
getPreviewInfo(String ambiguousId,
String acceptHeader,
javax.servlet.http.HttpServletResponse response)
Get preview information of a work object.
|
void getPreviewInfo(String ambiguousId, String acceptHeader, javax.servlet.http.HttpServletResponse response) throws IOException
Get preview information of a work object.
ambiguousId - the ID of the work object (either work object ID value or global ID value)acceptHeader - accept headerresponse - HttpServletResponseIOException - in case of error while retrieving preview infovoid getPreviewContent(String ambiguousId, boolean forceDownload, String acceptHeader, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
Get preview content of a work object.
ambiguousId - the ID of the work object (either work object ID value or global ID value)forceDownload - force download flagacceptHeader - accept headerrequest - HttpServletRequestresponse - HttpServletResponseIOException - in case of error while retrieving preview contentvoid evictCachedFile(String ambiguousId)
Evicts cached file for the given work object ID.
ambiguousId - the ID of the work object (either work object ID value or global ID value)Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.