@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)
DocumentViewerManagerReturns the current document annotations.
getAnnotations in interface DocumentViewerManagerambiguousId - the document globaL ID@Transactional public void putAnnotations(String ambiguousId, String annotations)
DocumentViewerManagerUpdates the document annotations.
putAnnotations in interface DocumentViewerManagerambiguousId - the document global IDannotations - the new annotations@Transactional(readOnly=true) public String getComments(String ambiguousId)
DocumentViewerManagerReturns the current document comments.
getComments in interface DocumentViewerManagerambiguousId - the document global ID@Transactional public void putComments(String ambiguousId, String comments)
DocumentViewerManagerUpdates the document comments.
putComments in interface DocumentViewerManagerambiguousId - the document global IDcomments - the new comments@Transactional(readOnly=true) public String getCategories(String ambiguousId)
DocumentViewerManagerReturns the current categories.
getCategories in interface DocumentViewerManagerambiguousId - the document global ID@Transactional(readOnly=true) public List<WorkObject> getUsers(List<String> userIds)
DocumentViewerManagerReturns the user work objects corresponding to the given user IDs.
getUsers in interface DocumentViewerManageruserIds - the user global IDsCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.