@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 OfficeViewerScriptService
null
if
no exception has been thrownpublic String view(org.xwiki.model.reference.AttachmentReference attachmentReference)
OfficeViewerScriptService
view
in interface OfficeViewerScriptService
attachmentReference
- reference to the office attachment to be viewednull
if an error occurspublic String view(org.xwiki.model.reference.AttachmentReference attachmentReference, Map<String,String> parameters)
OfficeViewerScriptService
view
in interface OfficeViewerScriptService
attachmentReference
- reference to the office attachment to be viewedparameters
- view parameters specific to the underlying OfficeResourceViewer
implementationnull
if an error occurspublic boolean isMimeTypeSupported(String mimeType)
OfficeViewerScriptService
isMimeTypeSupported
in interface OfficeViewerScriptService
mimeType
- a mime typetrue
if the specified mime type can be viewed, false
otherwiseCopyright © 2004–2022 XWiki. All rights reserved.