| java.lang.Object | |
| ↳ | com.pdftron.collab.DataRepository |
Repository handling the work with documents and annotations.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Completable |
addDocumentUnread(String docId, String annotId)
Updates unread count for the document
rxjava version
| ||||||||||
| void |
addDocumentUnreadImpl(String docId, String annotId)
Update unread count for the document
Must run on background thread
| ||||||||||
| Completable | consumeLastAnnotations(ArrayList<String> ids) | ||||||||||
| void | consumeLastAnnotationsImpl(ArrayList<String> ids) | ||||||||||
|
|
getAnnotation(String annotationId)
Get annotation by id
| ||||||||||
|
|
getAnnotations(String documentId)
Get all annotations associated with a document
| ||||||||||
|
|
getDocument()
Get the active document
| ||||||||||
| static DataRepository | getInstance(Application application) | ||||||||||
|
|
getLastAnnotations()
Get the last annotation
| ||||||||||
|
|
getReplies(String annotationId)
Get all annotation replies associated with an annotation
| ||||||||||
|
|
getReplyReviewState(String annotationId)
Gets the annotation reply that indicates the review state of an annotation
| ||||||||||
|
|
getUser()
Get the active user
| ||||||||||
| Completable |
removeDocumentUnread(String docId, String annotId)
Updates unread count
rxjava version
| ||||||||||
| void |
removeDocumentUnreadImpl(String docId, String annotId)
Updates unread count
Must run on background thread
| ||||||||||
| void |
sendAnnotation(String action, String xfdfCommand, String xfdfJSON, String documentId, String userName)
Called when client has new annotation events
Must run on a background thread.
| ||||||||||
| void |
setCustomService(CustomService connection)
Link to your choice of backend service
| ||||||||||
| Completable |
updateActiveAnnotation(String userId, String annotId)
Updates current active annotation
rxjava version
| ||||||||||
| void |
updateActiveAnnotationImpl(String userId, String annotId)
Updates current active annotation
Must run on background thread
| ||||||||||
| Completable |
updateAnnotationUnreads(String annotId)
Updates last read timestamp for an annotation
rxjava version
| ||||||||||
| void |
updateAnnotationUnreadsImpl(String annotId)
Updates last read timestamp for an annotation
Must run on background thread
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Updates unread count for the document rxjava version
| docId | the document id |
|---|---|
| annotId | the annotation id |
Update unread count for the document Must run on background thread
| docId | the document id |
|---|---|
| annotId | the annotation id |
| JSONException |
|---|
Get annotation by id
| annotationId | the annotation unique identifier |
|---|
Get all annotations associated with a document
| documentId | the document unique identifier |
|---|
Get the active document
Get the last annotation
Get all annotation replies associated with an annotation
| annotationId | the annotation unique identifier |
|---|
Gets the annotation reply that indicates the review state of an annotation
| annotationId | the annotation unique identifier |
|---|
Get the active user
Updates unread count rxjava version
| docId | the document id |
|---|---|
| annotId | the annotation id |
Updates unread count Must run on background thread
| docId | the document id |
|---|---|
| annotId | the annotation id |
| JSONException |
|---|
Called when client has new annotation events Must run on a background thread.
| action | one of add/modify/delete |
|---|---|
| xfdfCommand | the annotation XFDF command string |
| xfdfJSON | the annotation XFDF information |
| documentId | the document identifier |
| userName | optional user name, user unique identifier should be part of the XFDF command instead |
Link to your choice of backend service
| connection | the backend service |
|---|
Updates current active annotation rxjava version
| userId | the user id |
|---|---|
| annotId | the active annotation id |
Updates current active annotation Must run on background thread
| userId | the user id |
|---|---|
| annotId | the active annotation id |
Updates last read timestamp for an annotation rxjava version
| annotId | the annotation id |
|---|
Updates last read timestamp for an annotation Must run on background thread
| annotId | the annotation id |
|---|