@Role
public interface OfficeViewerScriptService
extends org.xwiki.script.service.ScriptService
| Modifier and Type | Method and Description |
|---|---|
Exception |
getCaughtException() |
boolean |
isMimeTypeSupported(String mimeType)
Checks if a given mime type is supported for viewing.
|
String |
view(org.xwiki.model.reference.AttachmentReference attachmentReference)
Builds a XHTML representation of the specified office attachment.
|
String |
view(org.xwiki.model.reference.AttachmentReference attachmentReference,
Map<String,String> parameters)
Builds a XHTML representation of the specified office attachment.
|
String view(org.xwiki.model.reference.AttachmentReference attachmentReference)
attachmentReference - reference to the office attachment to be viewednull if an error occursString view(org.xwiki.model.reference.AttachmentReference attachmentReference, Map<String,String> parameters)
attachmentReference - reference to the office attachment to be viewedparameters - view parameters specific to the underlying OfficeViewer implementationnull if an error occursException getCaughtException()
null if
no exception has been thrownboolean isMimeTypeSupported(String mimeType)
mimeType - a mime typetrue if the specified mime type can be viewed, false otherwiseCopyright © 2004–2019 XWiki. All rights reserved.