@Manager public class DefaultDocumentViewerManager extends Object implements DocumentViewerManager
Default implementation of the DocumentViewerManager interface.
Constructor and Description |
---|
DefaultDocumentViewerManager(WorkObjectService workObjectService,
AmbiguousIdHelper ambiguousIdHelper) |
Modifier and Type | Method and Description |
---|---|
String |
getAnnotations(String ambiguousId)
Returns the current document annotations.
|
String |
getCategories(String ambiguousId)
Returns the current categories.
|
String |
getComments(String ambiguousId)
Returns the current document comments.
|
List<WorkObject> |
getUsers(List<String> userIds)
Returns the user work objects corresponding to the given user IDs.
|
void |
putAnnotations(String ambiguousId,
String annotations)
Updates the document annotations.
|
void |
putComments(String ambiguousId,
String comments)
Updates the document comments.
|
public DefaultDocumentViewerManager(WorkObjectService workObjectService, AmbiguousIdHelper ambiguousIdHelper)
@Transactional(readOnly=true) public String getAnnotations(String ambiguousId)
DocumentViewerManager
Returns the current document annotations.
getAnnotations
in interface DocumentViewerManager
ambiguousId
- the document globaL ID@Transactional public void putAnnotations(String ambiguousId, String annotations)
DocumentViewerManager
Updates the document annotations.
putAnnotations
in interface DocumentViewerManager
ambiguousId
- the document global IDannotations
- the new annotations@Transactional(readOnly=true) public String getComments(String ambiguousId)
DocumentViewerManager
Returns the current document comments.
getComments
in interface DocumentViewerManager
ambiguousId
- the document global ID@Transactional public void putComments(String ambiguousId, String comments)
DocumentViewerManager
Updates the document comments.
putComments
in interface DocumentViewerManager
ambiguousId
- the document global IDcomments
- the new comments@Transactional(readOnly=true) public String getCategories(String ambiguousId)
DocumentViewerManager
Returns the current categories.
getCategories
in interface DocumentViewerManager
ambiguousId
- the document global ID@Transactional(readOnly=true) public List<WorkObject> getUsers(List<String> userIds)
DocumentViewerManager
Returns the user work objects corresponding to the given user IDs.
getUsers
in interface DocumentViewerManager
userIds
- the user global IDsCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.