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, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void addBookmarks(String sid, long[] ids, int type) throws InvalidSessionException
DocumentService
addBookmarks
in interface DocumentService
InvalidSessionException
public void addDocuments(String sid, String encoding, boolean importZip, GUIDocument metadata) throws InvalidSessionException
DocumentService
addDocuments
in interface DocumentService
sid
- The session identifierencoding
- The zip encodingimportZip
- If .zip files have to be unpacked and the contained
documents imported.InvalidSessionException
public void addDocuments(String sid, String language, long folderId, String encoding, boolean importZip, Long templateId) throws InvalidSessionException
DocumentService
addDocuments
in interface DocumentService
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 templateInvalidSessionException
public GUIDocument checkin(String sid, GUIDocument document, boolean major) throws InvalidSessionException
DocumentService
checkin
in interface DocumentService
sid
- The session identifierdocument
- The document to updatemajor
- True if this is a major versionInvalidSessionException
public void checkout(String sid, long docId) throws InvalidSessionException
DocumentService
checkout
in interface DocumentService
InvalidSessionException
public void delete(String sid, long[] ids) throws InvalidSessionException
DocumentService
delete
in interface DocumentService
InvalidSessionException
public void deleteBookmarks(String sid, long[] bookmarkIds) throws InvalidSessionException
DocumentService
deleteBookmarks
in interface DocumentService
InvalidSessionException
public void deleteLinks(String sid, long[] ids) throws InvalidSessionException
DocumentService
deleteLinks
in interface DocumentService
InvalidSessionException
public GUIExtendedAttribute[] getAttributes(String sid, long templateId) throws InvalidSessionException
DocumentService
getAttributes
in interface DocumentService
InvalidSessionException
public GUIDocument getById(String sid, long docId) throws InvalidSessionException
DocumentService
getById
in interface DocumentService
InvalidSessionException
public static GUIDocument fromDocument(Document doc, GUIFolder folder)
public GUIVersion[] getVersionsById(String sid, long id1, long id2) throws InvalidSessionException
DocumentService
getVersionsById
in interface DocumentService
InvalidSessionException
public void linkDocuments(String sid, long[] inDocIds, long[] outDocIds) throws InvalidSessionException
DocumentService
linkDocuments
in interface DocumentService
InvalidSessionException
public void lock(String sid, long[] docIds, String comment) throws InvalidSessionException
DocumentService
lock
in interface DocumentService
InvalidSessionException
public void makeImmutable(String sid, long[] docIds, String comment) throws InvalidSessionException
DocumentService
makeImmutable
in interface DocumentService
InvalidSessionException
public void markHistoryAsRead(String sid, String event) throws InvalidSessionException
DocumentService
markHistoryAsRead
in interface DocumentService
sid
- The session identifierevent
- The history event to mark as readInvalidSessionException
public void markIndexable(String sid, long[] docIds) throws InvalidSessionException
DocumentService
markIndexable
in interface DocumentService
InvalidSessionException
public void markUnindexable(String sid, long[] docIds) throws InvalidSessionException
DocumentService
markUnindexable
in interface DocumentService
InvalidSessionException
public void restore(String sid, long docId, long folderId) throws InvalidSessionException
DocumentService
restore
in interface DocumentService
InvalidSessionException
public GUIDocument save(String sid, GUIDocument document) throws InvalidSessionException
DocumentService
save
in interface DocumentService
document
- The document to saveInvalidSessionException
protected Document toDocument(GUIDocument document)
public String sendAsEmail(String sid, GUIEmail email) throws InvalidSessionException
DocumentService
sendAsEmail
in interface DocumentService
InvalidSessionException
public void unlock(String sid, long[] docIds) throws InvalidSessionException
DocumentService
unlock
in interface DocumentService
InvalidSessionException
public void updateBookmark(String sid, GUIBookmark bookmark) throws InvalidSessionException
DocumentService
updateBookmark
in interface DocumentService
InvalidSessionException
public void updateLink(String sid, long id, String type) throws InvalidSessionException
DocumentService
updateLink
in interface DocumentService
sid
- The session identifierid
- The link identifiertype
- The new type to be setInvalidSessionException
public void cleanUploadedFileFolder(String sid) throws InvalidSessionException
DocumentService
cleanUploadedFileFolder
in interface DocumentService
InvalidSessionException
public GUIRating getRating(String sid, long docId) throws InvalidSessionException
DocumentService
getRating
in interface DocumentService
InvalidSessionException
public int saveRating(String sid, GUIRating rating) throws InvalidSessionException
DocumentService
saveRating
in interface DocumentService
InvalidSessionException
public long addNote(String sid, long docId, String message) throws InvalidSessionException
DocumentService
addNote
in interface DocumentService
InvalidSessionException
public void deleteNotes(String sid, long[] ids) throws InvalidSessionException
DocumentService
deleteNotes
in interface DocumentService
InvalidSessionException
public void bulkUpdate(String sid, long[] ids, GUIDocument vo) throws InvalidSessionException
DocumentService
bulkUpdate
in interface DocumentService
InvalidSessionException
protected void checkPublished(User user, Document doc) throws Exception
Exception
public void updateNote(String sid, long docId, long noteId, String message) throws InvalidSessionException
DocumentService
updateNote
in interface DocumentService
InvalidSessionException
public GUIDocument deleteVersions(String sid, long[] ids) throws InvalidSessionException
DocumentService
deleteVersions
in interface DocumentService
InvalidSessionException
public GUIDocument createEmpty(String sid, GUIDocument vo) throws InvalidSessionException
DocumentService
createEmpty
in interface DocumentService
InvalidSessionException
Copyright © 2008-2014 Logical Objects. All Rights Reserved.