@Component @Named(value="officeviewer") @Singleton public class DefaultOfficeViewerScriptService extends Object implements OfficeViewerScriptService
OfficeViewerScriptService.| Constructor and Description |
|---|
DefaultOfficeViewerScriptService() |
| 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.
|
public Exception getCaughtException()
getCaughtException in interface OfficeViewerScriptServicenull if
no exception has been thrownpublic String view(org.xwiki.model.reference.AttachmentReference attachmentReference)
OfficeViewerScriptServiceview in interface OfficeViewerScriptServiceattachmentReference - reference to the office attachment to be viewednull if an error occurspublic String view(org.xwiki.model.reference.AttachmentReference attachmentReference, Map<String,String> parameters)
OfficeViewerScriptServiceview in interface OfficeViewerScriptServiceattachmentReference - reference to the office attachment to be viewedparameters - view parameters specific to the underlying OfficeViewer implementationnull if an error occurspublic boolean isMimeTypeSupported(String mimeType)
OfficeViewerScriptServiceisMimeTypeSupported in interface OfficeViewerScriptServicemimeType - a mime typetrue if the specified mime type can be viewed, false otherwiseCopyright © 2004–2019 XWiki. All rights reserved.