|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Role public interface OfficeViewerScriptService
Exposes utility methods for viewing office attachments in server-side scripts.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
String view(org.xwiki.model.reference.AttachmentReference attachmentReference)
attachmentReference - reference to the office attachment to be viewed
null if an error occurs
String 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 implementation
null if an error occursException getCaughtException()
null if
no exception has been thrownboolean isMimeTypeSupported(String mimeType)
mimeType - a mime type
true if the specified mime type can be viewed, false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||