|
Oracle® On Track Communication SDK Documentation Release 1(1.0) E20955-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface XDocumentModule.Server
Server interface for the Documents Module API.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface waggle.core.api.XAPIInterface |
---|
XAPIInterface.Client, XAPIInterface.Server |
Method Summary | |
---|---|
XDocumentInfo |
createDocument(XObjectID conversationID, String name, XAPIInputStream inputStream, String mimeType, long length) Create a new Document from an InputStream. |
XDocumentInfo |
createDocumentAttachment(XObjectID documentID, String name, XAPIInputStream inputStream, String mimeType, long length) Create a new Document attachment from an InputStream. |
XDocumentInfo |
createDocumentAttachmentString(XObjectID documentID, String name, String contentString, String mimeType) Create a new Document attachment from an InputStream. |
XDocumentInfo |
createDocumentString(XObjectID conversationID, String name, String contentString, String mimeType) Create a new Document from a String. |
void |
createVersion(XObjectID contentID, XAPIInputStream inputStream, String mimeType, long length) Create a new Version for a Content object. |
void |
createVersionString(XObjectID contentID, String string, String mimeType) Create a new Version for a Content object. |
XSearchResultsInfo |
findSimilar(XObjectID contentID, XDocumentSearchOrder orderBy) Find Similar content. |
InputStream |
getContent(XObjectID contentID) Read the content for a Content object. |
InputStream |
getContentRange(XObjectID contentID, long start, long end) Read the content for a Content object. |
XContentStringInfo |
getContentString(XObjectID contentID) Read the content for a Content object. |
XDocumentInfo |
getDocument(XObjectID contentID) Get a Document information. |
InputStream |
getPage(XObjectID contentID, int pageNumber) Read a page image for a Content object. |
InputStream |
getRendition(XObjectID contentID) Read the PDF rendition for a Content object. |
InputStream |
getThumbnail(XObjectID contentID) Read the thumbnail image for a Content object. |
XVersionInfo |
getVersion(XObjectID contentID) Return an ordered list of a Document's Versions. |
List<XVersionInfo> |
getVersions(XObjectID contentID) Return an ordered list of a Document's Versions. |
void |
lockDocument(XObjectID contentID, long lockMS) Lock a Document to the current User for some number of milliseconds. |
void |
removeDocument(XObjectID documentID) Remove a Document. |
void |
removeVersion(XObjectID versionID) Remove a Version. |
void |
unlockDocument(XObjectID contentID) Unlock on a Document. |
void |
unremoveDocument(XObjectID documentID) Un-remove a Document. |
void |
unremoveVersion(XObjectID versionID) Un-remove a Version. |
void |
updateVersion(XObjectID versionID, XUpdater updater) Update a Version. |
Method Detail |
---|
XDocumentInfo createDocument(XObjectID conversationID, String name, XAPIInputStream inputStream, String mimeType, long length)
conversationID
- The Conversation.name
- The name.inputStream
- The InputStream containing the content.mimeType
- The mimetype of the content.length
- The length of the content.XDocumentInfo createDocumentString(XObjectID conversationID, String name, String contentString, String mimeType)
conversationID
- The Conversation.name
- The name.contentString
- The string containing the content.mimeType
- The mimetype of the content.XDocumentInfo createDocumentAttachment(XObjectID documentID, String name, XAPIInputStream inputStream, String mimeType, long length)
documentID
- The Document.name
- The name.inputStream
- The InputStream containing the content.mimeType
- The mimetype of the content.length
- The length of the content.XDocumentInfo createDocumentAttachmentString(XObjectID documentID, String name, String contentString, String mimeType)
documentID
- The Document.name
- The name.contentString
- The string containing the content.mimeType
- The mimetype of the content.XDocumentInfo getDocument(XObjectID contentID)
contentID
- The Content. Can be either a Document or Version.void lockDocument(XObjectID contentID, long lockMS)
contentID
- The Content. Can be either a Document or Version.lockMS
- The number of milliseconds the document will remain in the locked state.void unlockDocument(XObjectID contentID)
contentID
- The Content. Can be either a Document or Version.void removeDocument(XObjectID documentID)
documentID
- The Document.void unremoveDocument(XObjectID documentID)
documentID
- The Document.XVersionInfo getVersion(XObjectID contentID)
contentID
- The Content. Can be either a Document or Version.List<XVersionInfo> getVersions(XObjectID contentID)
contentID
- The Content. Can be either a Document or Version.void updateVersion(XObjectID versionID, XUpdater updater)
versionID
- The Version.updater
- The fields to be updated.void removeVersion(XObjectID versionID)
versionID
- The Version.void unremoveVersion(XObjectID versionID)
versionID
- The Version.void createVersion(XObjectID contentID, XAPIInputStream inputStream, String mimeType, long length)
contentID
- The Content. Can be either a Document or Version.inputStream
- The input stream.mimeType
- The mimeType.length
- The length.void createVersionString(XObjectID contentID, String string, String mimeType)
contentID
- The Content. Can be either a Document or Version.string
- The string.mimeType
- The mimeType.InputStream getContent(XObjectID contentID)
contentID
- The Content. Can be either a Document or Version.InputStream getContentRange(XObjectID contentID, long start, long end)
contentID
- The Content. Can be either a Document or Version.start
- The starting position (zero-based, inclusive).end
- The ending position (zero-based, inclusive).XContentStringInfo getContentString(XObjectID contentID)
contentID
- The Content. Can be either a Document or Version.InputStream getRendition(XObjectID contentID)
contentID
- The Content. Can be either a Document or Version.InputStream getThumbnail(XObjectID contentID)
contentID
- The Content object.InputStream getPage(XObjectID contentID, int pageNumber)
contentID
- The Content. Can be either a Document or Version.pageNumber
- The page number.XSearchResultsInfo findSimilar(XObjectID contentID, XDocumentSearchOrder orderBy)
contentID
- The Content. Can be either a Document or Version. The Content for which you want to find similar content.orderBy
- Optional; you can specify the sort order for results. If null, results will be returned most-relevant first.
|
Oracle® On Track Communication SDK Documentation Release 1(1.0) E20955-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |