@RemoteServiceRelativePath(value="document")
public interface DocumentService
extends com.google.gwt.user.client.rpc.RemoteService
| Modifier and Type | Method and Description |
|---|---|
void |
addBookmarks(String sid,
long[] targetIds,
int type)
Adds new bookmarks
|
void |
addDocuments(String sid,
String encoding,
boolean importZip,
GUIDocument metadata)
Adds new documents previously uploaded, with metadata specification.
|
void |
addDocuments(String sid,
String language,
long folderId,
String encoding,
boolean importZip,
Long templateId)
Adds new documents previously uploaded
|
long |
addNote(String sid,
long docId,
String message)
Adds a new document note on the given document
|
void |
bulkUpdate(String sid,
long[] ids,
GUIDocument vo)
Applies to a selection of documents all the given data.
|
GUIDocument |
checkin(String sid,
GUIDocument document,
boolean major)
Checks-in a new document version
|
void |
checkout(String sid,
long docId)
Checks out the document
|
void |
cleanUploadedFileFolder(String sid)
Cleans the uploaded files folder.
|
GUIDocument |
createEmpty(String sid,
GUIDocument vo)
Creates a new empty document
|
void |
delete(String sid,
long[] ids)
Deletes a selection of documents
|
void |
deleteBookmarks(String sid,
long[] bookmarkIds)
Deletes a set of bookmarks
|
void |
deleteLinks(String sid,
long[] ids)
Deletes a selection of links
|
void |
deleteNotes(String sid,
long[] ids)
Deletes a selection of document notes
|
GUIDocument |
deleteVersions(String sid,
long[] ids)
Deletes a selection of versions
|
GUIExtendedAttribute[] |
getAttributes(String sid,
long templateId)
Retrieves all attributes of the specified template
|
GUIDocument |
getById(String sid,
long docId)
Retrieves a specific document by its ID
|
GUIRating |
getRating(String sid,
long docId)
Retrieves the rating of the given document.
|
GUIVersion[] |
getVersionsById(String sid,
long id1,
long id2)
Retrieves two specific versions by its ID
|
void |
linkDocuments(String sid,
long[] inDocIds,
long[] outDocIds)
Links a set of documents
|
void |
lock(String sid,
long[] docIds,
String comment)
Locks a set of documents
|
void |
makeImmutable(String sid,
long[] docIds,
String comment)
Makes immutable a set of documents
|
void |
markHistoryAsRead(String sid,
String event)
Marks as read the histories related to the current user and the given
event.
|
void |
markIndexable(String sid,
long[] docIds)
Marks a set of documents as indexable
|
void |
markUnindexable(String sid,
long[] docIds)
Marks a set of documents as unindexable
|
void |
restore(String sid,
long docId,
long folderId)
Restores a given document
|
GUIDocument |
save(String sid,
GUIDocument document)
Saves the document in the DB
|
int |
saveRating(String sid,
GUIRating rating)
Save a rating vote on a document.
|
String |
sendAsEmail(String sid,
GUIEmail email)
Sends a document as email(attachment or download ticket)
|
void |
unlock(String sid,
long[] docIds)
Unlocks a set of documents
|
void |
updateBookmark(String sid,
GUIBookmark bookmark)
Updates a single bookmark's data
|
void |
updateLink(String sid,
long id,
String type)
Updates the links type
|
void |
updateNote(String sid,
long docId,
long noteId,
String message)
Updates a document note on the given document
|
GUIDocument getById(String sid, long docId) throws InvalidSessionException
InvalidSessionExceptionGUIDocument save(String sid, GUIDocument document) throws Exception
document - The document to saveExceptionGUIExtendedAttribute[] getAttributes(String sid, long templateId) throws InvalidSessionException
InvalidSessionExceptionGUIVersion[] getVersionsById(String sid, long id1, long id2) throws InvalidSessionException
InvalidSessionExceptionString sendAsEmail(String sid, GUIEmail email) throws InvalidSessionException
InvalidSessionExceptionvoid updateLink(String sid, long id, String type) throws InvalidSessionException
sid - The session identifierid - The link identifiertype - The new type to be setInvalidSessionExceptionvoid deleteLinks(String sid, long[] ids) throws InvalidSessionException
InvalidSessionExceptionGUIDocument deleteVersions(String sid, long[] ids) throws InvalidSessionException
InvalidSessionExceptionvoid linkDocuments(String sid, long[] inDocIds, long[] outDocIds) throws InvalidSessionException
InvalidSessionExceptionvoid delete(String sid, long[] ids) throws InvalidSessionException
InvalidSessionExceptionvoid makeImmutable(String sid, long[] docIds, String comment) throws InvalidSessionException
InvalidSessionExceptionvoid unlock(String sid, long[] docIds) throws InvalidSessionException
InvalidSessionExceptionvoid lock(String sid, long[] docIds, String comment) throws InvalidSessionException
InvalidSessionExceptionvoid checkout(String sid, long docId) throws InvalidSessionException
InvalidSessionExceptionvoid addDocuments(String sid, String language, long folderId, String encoding, boolean importZip, Long templateId) throws InvalidSessionException
sid - The session identifierlanguage - The language applied to all documentsfolderId - The destination folder identifierencoding - The zip encodingimportZip - If .zip files have to be unpacked and the contained
documents importedtemplateId - The documents templateInvalidSessionExceptionvoid addDocuments(String sid, String encoding, boolean importZip, GUIDocument metadata) throws InvalidSessionException
sid - The session identifiervo - The metadata applied to all new documentsencoding - The zip encodingimportZip - If .zip files have to be unpacked and the contained
documents imported.InvalidSessionExceptionGUIDocument checkin(String sid, GUIDocument document, boolean major) throws Exception
sid - The session identifierdocument - The document to updatemajor - True if this is a major versionExceptionvoid restore(String sid, long docId, long folderId) throws InvalidSessionException
InvalidSessionExceptionvoid addBookmarks(String sid, long[] targetIds, int type) throws InvalidSessionException
InvalidSessionExceptionvoid deleteBookmarks(String sid, long[] bookmarkIds) throws InvalidSessionException
InvalidSessionExceptionvoid updateBookmark(String sid, GUIBookmark bookmark) throws InvalidSessionException
InvalidSessionExceptionvoid markHistoryAsRead(String sid, String event) throws InvalidSessionException
sid - The session identifierevent - The history event to mark as readInvalidSessionExceptionvoid markUnindexable(String sid, long[] docIds) throws InvalidSessionException
InvalidSessionExceptionvoid markIndexable(String sid, long[] docIds) throws InvalidSessionException
InvalidSessionExceptionvoid cleanUploadedFileFolder(String sid) throws InvalidSessionException
InvalidSessionExceptionGUIRating getRating(String sid, long docId) throws InvalidSessionException
InvalidSessionExceptionint saveRating(String sid, GUIRating rating) throws InvalidSessionException
InvalidSessionExceptionlong addNote(String sid, long docId, String message) throws InvalidSessionException
InvalidSessionExceptionvoid updateNote(String sid, long docId, long noteId, String message) throws InvalidSessionException
InvalidSessionExceptionvoid deleteNotes(String sid, long[] ids) throws InvalidSessionException
InvalidSessionExceptionvoid bulkUpdate(String sid, long[] ids, GUIDocument vo) throws InvalidSessionException
InvalidSessionExceptionGUIDocument createEmpty(String sid, GUIDocument vo) throws InvalidSessionException
InvalidSessionExceptionCopyright © 2008-2014 Logical Objects. All Rights Reserved.