public class DocumentServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements DocumentService
| Constructor and Description |
|---|
DocumentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBookmarks(String sid,
long[] ids,
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
|
protected void |
checkPublished(User user,
Document doc) |
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
|
static GUIDocument |
fromDocument(Document doc,
GUIFolder folder) |
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)
|
protected Document |
toDocument(GUIDocument document)
Produces a plain new Document from a GUIDocument
|
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
|
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic void addBookmarks(String sid, long[] ids, int type) throws InvalidSessionException
DocumentServiceaddBookmarks in interface DocumentServiceInvalidSessionExceptionpublic void addDocuments(String sid, String encoding, boolean importZip, GUIDocument metadata) throws InvalidSessionException
DocumentServiceaddDocuments in interface DocumentServicesid - The session identifierencoding - The zip encodingimportZip - If .zip files have to be unpacked and the contained
documents imported.InvalidSessionExceptionpublic void addDocuments(String sid, String language, long folderId, String encoding, boolean importZip, Long templateId) throws InvalidSessionException
DocumentServiceaddDocuments in interface DocumentServicesid - 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 templateInvalidSessionExceptionpublic GUIDocument checkin(String sid, GUIDocument document, boolean major) throws InvalidSessionException
DocumentServicecheckin in interface DocumentServicesid - The session identifierdocument - The document to updatemajor - True if this is a major versionInvalidSessionExceptionpublic void checkout(String sid, long docId) throws InvalidSessionException
DocumentServicecheckout in interface DocumentServiceInvalidSessionExceptionpublic void delete(String sid, long[] ids) throws InvalidSessionException
DocumentServicedelete in interface DocumentServiceInvalidSessionExceptionpublic void deleteBookmarks(String sid, long[] bookmarkIds) throws InvalidSessionException
DocumentServicedeleteBookmarks in interface DocumentServiceInvalidSessionExceptionpublic void deleteLinks(String sid, long[] ids) throws InvalidSessionException
DocumentServicedeleteLinks in interface DocumentServiceInvalidSessionExceptionpublic GUIExtendedAttribute[] getAttributes(String sid, long templateId) throws InvalidSessionException
DocumentServicegetAttributes in interface DocumentServiceInvalidSessionExceptionpublic GUIDocument getById(String sid, long docId) throws InvalidSessionException
DocumentServicegetById in interface DocumentServiceInvalidSessionExceptionpublic static GUIDocument fromDocument(Document doc, GUIFolder folder)
public GUIVersion[] getVersionsById(String sid, long id1, long id2) throws InvalidSessionException
DocumentServicegetVersionsById in interface DocumentServiceInvalidSessionExceptionpublic void linkDocuments(String sid, long[] inDocIds, long[] outDocIds) throws InvalidSessionException
DocumentServicelinkDocuments in interface DocumentServiceInvalidSessionExceptionpublic void lock(String sid, long[] docIds, String comment) throws InvalidSessionException
DocumentServicelock in interface DocumentServiceInvalidSessionExceptionpublic void makeImmutable(String sid, long[] docIds, String comment) throws InvalidSessionException
DocumentServicemakeImmutable in interface DocumentServiceInvalidSessionExceptionpublic void markHistoryAsRead(String sid, String event) throws InvalidSessionException
DocumentServicemarkHistoryAsRead in interface DocumentServicesid - The session identifierevent - The history event to mark as readInvalidSessionExceptionpublic void markIndexable(String sid, long[] docIds) throws InvalidSessionException
DocumentServicemarkIndexable in interface DocumentServiceInvalidSessionExceptionpublic void markUnindexable(String sid, long[] docIds) throws InvalidSessionException
DocumentServicemarkUnindexable in interface DocumentServiceInvalidSessionExceptionpublic void restore(String sid, long docId, long folderId) throws InvalidSessionException
DocumentServicerestore in interface DocumentServiceInvalidSessionExceptionpublic GUIDocument save(String sid, GUIDocument document) throws InvalidSessionException
DocumentServicesave in interface DocumentServicedocument - The document to saveInvalidSessionExceptionprotected Document toDocument(GUIDocument document)
public String sendAsEmail(String sid, GUIEmail email) throws InvalidSessionException
DocumentServicesendAsEmail in interface DocumentServiceInvalidSessionExceptionpublic void unlock(String sid, long[] docIds) throws InvalidSessionException
DocumentServiceunlock in interface DocumentServiceInvalidSessionExceptionpublic void updateBookmark(String sid, GUIBookmark bookmark) throws InvalidSessionException
DocumentServiceupdateBookmark in interface DocumentServiceInvalidSessionExceptionpublic void updateLink(String sid, long id, String type) throws InvalidSessionException
DocumentServiceupdateLink in interface DocumentServicesid - The session identifierid - The link identifiertype - The new type to be setInvalidSessionExceptionpublic void cleanUploadedFileFolder(String sid) throws InvalidSessionException
DocumentServicecleanUploadedFileFolder in interface DocumentServiceInvalidSessionExceptionpublic GUIRating getRating(String sid, long docId) throws InvalidSessionException
DocumentServicegetRating in interface DocumentServiceInvalidSessionExceptionpublic int saveRating(String sid, GUIRating rating) throws InvalidSessionException
DocumentServicesaveRating in interface DocumentServiceInvalidSessionExceptionpublic long addNote(String sid, long docId, String message) throws InvalidSessionException
DocumentServiceaddNote in interface DocumentServiceInvalidSessionExceptionpublic void deleteNotes(String sid, long[] ids) throws InvalidSessionException
DocumentServicedeleteNotes in interface DocumentServiceInvalidSessionExceptionpublic void bulkUpdate(String sid, long[] ids, GUIDocument vo) throws InvalidSessionException
DocumentServicebulkUpdate in interface DocumentServiceInvalidSessionExceptionprotected void checkPublished(User user, Document doc) throws Exception
Exceptionpublic void updateNote(String sid, long docId, long noteId, String message) throws InvalidSessionException
DocumentServiceupdateNote in interface DocumentServiceInvalidSessionExceptionpublic GUIDocument deleteVersions(String sid, long[] ids) throws InvalidSessionException
DocumentServicedeleteVersions in interface DocumentServiceInvalidSessionExceptionpublic GUIDocument createEmpty(String sid, GUIDocument vo) throws InvalidSessionException
DocumentServicecreateEmpty in interface DocumentServiceInvalidSessionExceptionCopyright © 2008-2014 Logical Objects. All Rights Reserved.