public interface DocumentService
Modifier and Type | Method and Description |
---|---|
void |
checkin(String sid,
long docId,
String comment,
String filename,
boolean release,
DataHandler content)
Checks in an existing document with the given identifier to create a new
version.
|
void |
checkout(String sid,
long docId)
Checkouts an existing document with the given identifier.
|
WSDocument |
create(String sid,
WSDocument document,
DataHandler content)
Create a new document.
|
WSDocument |
createAlias(String sid,
long docId,
long folderId)
Create a new document alias for the given document id and inside the
given folder id.
|
void |
delete(String sid,
long docId)
Deletes an existing document with the given identifier.
|
WSDocument[] |
getAliases(String sid,
long docId)
Gets the aliases of the given document
|
DataHandler |
getContent(String sid,
long docId)
Gets the document content of an existing document with the given
identifier.
|
WSDocument |
getDocument(String sid,
long docId)
Gets document metadata of an existing document with the given identifier.
|
WSDocument |
getDocumentByCustomId(String sid,
String customId)
Gets document metadata of an existing document with the given custom identifier.
|
WSDocument[] |
getDocuments(String sid,
Long[] docIds)
Gets document metadata of a collection of existing documents with the
given identifiers.
|
WSDocument[] |
getRecentDocuments(String sid,
Integer maxHits)
Lists of last modified documents of the current session's user.
|
DataHandler |
getVersionContent(String sid,
long docId,
String version)
Gets the document content of an existing document with the given
identifier.
|
WSDocument[] |
getVersions(String sid,
long docId)
Gets the version history of an existing document with the given
identifier.
|
boolean |
isReadable(String sid,
long docId)
Test if a document identifier is valid.
|
WSDocument[] |
list(String sid,
long folderId)
Deprecated.
|
WSDocument[] |
listDocuments(String sid,
long folderId,
String fileName)
Gets a document in a specific folder
|
void |
lock(String sid,
long docId)
Locks an existing document with the given identifier.
|
void |
move(String sid,
long docId,
long folderId)
Moves an existing document with the given identifier.
|
void |
reindex(String sid,
long docId)
Reindexes(or indexes) a document
|
void |
rename(String sid,
long docId,
String name)
Renames the title of an existing document with the given identifier.
|
void |
renameFile(String sid,
long docId,
String name)
Renames the filename of an existing document with the given identifier.
|
void |
restore(String sid,
long docId,
long folderId)
Restores an existing document with the given identifier.
|
void |
sendEmail(String sid,
Long[] docIds,
String recipients,
String subject,
String message)
Sends a set of documents as mail attachments
|
void |
unlock(String sid,
long docId)
Unlocks an existing document with the given identifier.
|
void |
update(String sid,
WSDocument document)
Updates an existing document with the value object containing the
document's metadata.
|
WSDocument create(String sid, WSDocument document, DataHandler content) throws Exception
sid
- Session identifierdocument
- Web service value object containing the document's
metadatacontent
- The document's binary contentException
void delete(String sid, long docId) throws Exception
sid
- Session identifierdocId
- The document idException
void lock(String sid, long docId) throws Exception
sid
- Session identifierdocId
- The document idException
void unlock(String sid, long docId) throws Exception
sid
- Session identifierdocId
- The document idException
void rename(String sid, long docId, String name) throws Exception
sid
- Session identifierdocId
- The document idname
- The new document titleException
void renameFile(String sid, long docId, String name) throws Exception
sid
- Session identifierdocId
- The document idname
- The new document file nameException
void move(String sid, long docId, long folderId) throws Exception
sid
- Session identifierdocId
- The document idfolderId
- The folder id of the new document folderException
WSDocument getDocument(String sid, long docId) throws Exception
sid
- Session identifierdocId
- The document idException
WSDocument getDocumentByCustomId(String sid, String customId) throws Exception
sid
- Session identifiercustomId
- The custom idException
WSDocument[] getDocuments(String sid, Long[] docIds) throws Exception
sid
- Session identifierdocIds
- The documents idsException
WSDocument[] getAliases(String sid, long docId) throws Exception
sid
- Session identifierdocId
- The master document IDException
void update(String sid, WSDocument document) throws Exception
sid
- Session identifierdoc
- The value object containing the document's metadata.Exception
DataHandler getContent(String sid, long docId) throws Exception
sid
- Session identifierdocId
- The document idException
DataHandler getVersionContent(String sid, long docId, String version) throws Exception
sid
- Session identifierdocId
- The document idversion
- The specific version(it can be empty)Exception
void checkout(String sid, long docId) throws Exception
sid
- Session identifierdocId
- The document idException
void checkin(String sid, long docId, String comment, String filename, boolean release, DataHandler content) throws Exception
sid
- Session identifierdocId
- The document idcomment
- The check in operation commentfilename
- The document file namerelease
- True if this is a new release(eg: 2.0) rather than a
subversion(eg: 1.1)content
- The document's binary contentException
boolean isReadable(String sid, long docId) throws Exception
sid
- Session identifierdocId
- The document idException
void restore(String sid, long docId, long folderId) throws Exception
sid
- Session identifierdocId
- The document idfolderId
- The target folder idException
WSDocument[] getVersions(String sid, long docId) throws Exception
sid
- Session identifierdocId
- The document idException
@Deprecated WSDocument[] list(String sid, long folderId) throws Exception
sid
- Session identifierfolderId
- The document idException
WSDocument[] listDocuments(String sid, long folderId, String fileName) throws Exception
sid
- Session identifierfolderId
- The folder idfileName
- Optional file name filterException
WSDocument[] getRecentDocuments(String sid, Integer maxHits) throws Exception
sid
- Session identifiermaxHits
- Maximum number of returned recordsException
void sendEmail(String sid, Long[] docIds, String recipients, String subject, String message) throws Exception
sid
- Session identifiersdocIds
- Set of document idsrecipients
- Set of recipients(comma separated)subject
- The email subjectmessage
- The email message bodyException
WSDocument createAlias(String sid, long docId, long folderId) throws Exception
sid
- Session identifierdocId
- The original document idfolderId
- Identifier of the folder in which will be stored the
alias.Exception
Copyright © 2008-2014 Logical Objects. All Rights Reserved.