Class DocumentAnnotationRequest
- Vault API Coverage:
- https://developer.veevavault.com/api/25.1/#document-annotations
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enum AnnotationType represents the valid annotation types.static enum
Enum PlacemarkType represents the valid placemark types.static enum
Enum ReferenceType represents the valid reference types. -
Field Summary
Fields inherited from class com.veeva.vault.vapil.api.request.VaultRequest
HTTP_HEADER_AUTHORIZATION, HTTP_HEADER_REFERENCE_ID, HTTP_HEADER_VAULT_CLIENT_ID, referenceId, requestClientId, vaultClient
-
Method Summary
Modifier and TypeMethodDescriptionAdd Annotation Replies
Create up to 500 annotation replies.Create Multiple Annotations
Create up to 500 annotations.Delete AnnotationsexportDocumentAnnotationsToPdf
(int docId) Export Document Annotations to PDFexportDocumentVersionAnnotationsToPdf
(int docId, int majorVersion, int minorVersion) Export Document Version Annotations to PDFimportDocumentAnnotationsFromPdf
(int docId) Import Document Annotations from PDFimportDocumentVersionAnnotationsFromPdf
(int docId, int majorVersion, int minorVersion) Import Document Version Annotations from PDF
Load annotations from a PDF to Vault.readAnnotationsByDocumentVersionAndType
(int docId, int majorVersion, int minorVersion) Read Annotations by Document Version and Type
Retrieve annotations from a specific document version.Read Annotations by Document Version and Type (By Page)readAnnotationsById
(int docId, int majorVersion, int minorVersion, int annotationId) Read Annotations by IDreadRepliesOfParentAnnotation
(int docId, int majorVersion, int minorVersion, int annotationId) Read Replies of Parent Annotation
Given a parent annotation ID, retrieves all replies to the annotation.Read Replies of Parent Annotation (By Page)retrieveAnchorIds
(int docId) Retrieve Anchor IDsRetrieve Annotation Placemark Type Metadata
Retrieves the metadata of a specified annotation placemark type.Retrieve Annotation Reference Type Metadata
Retrieves the metadata of a specified annotation reference type.Retrieve Annotation Type Metadata
Retrieves the metadata of an annotation type, including metadata and value sets for all supported fields on the annotation type.retrieveDocumentVersionNotesAsCSV
(int docId, int majorVersion, int minorVersion) Retrieve Document Version Notes as CSV
Retrieve notes in CSV format for any document that has a viewable rendition and at least one annotation.retrieveVideoAnnotations
(int docId, int majorVersion, int minorVersion) Retrieve Video Annotations
Retrieve annotations on a video document.setAnnotationTypes
(Set<String> annotationTypes) The type(s) of annotations to retrieve.setBinaryFile
(String filename, byte[] binaryContent) Specify source data in an input fileSet the Header Content Type to CSVSet the Header Content Type to JSONsetInputPath
(String inputPath) Specify source data in an input fileSet a raw JSON string to the Annotation requestThis parameter paginates the results by specifying the maximum number of records per page in the response.This parameter is used to paginate the results.setOutputPath
(String outputPath) Specify source data in an output filesetPaginationId
(String paginationId) A unique identifier used to load requests with paginated results.setRequestString
(String requestString) Specify source data in an input string, such as a JSON requestUpdate Annotations
Update up to 500 existing annotations.Methods inherited from class com.veeva.vault.vapil.api.request.VaultRequest
getBaseObjectMapper, send, send, sendReturnBinary, sendReturnBinary, sendToFile, sendToFile, setHeaderClientId, setHeaderReferenceId, setVaultClient
-
Method Details
-
exportDocumentAnnotationsToPdf
Export Document Annotations to PDFExport the latest version of any document, along with its annotations, as an annotated PDF. This is equivalent to the Export Annotations action in the Vault document viewer UI.
- Parameters:
docId
- The document id field value.- Returns:
- VaultResponse
- Vault API Endpoint:
GET /api/{version}/objects/documents/{doc_id}/annotations/file
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#retrieve-document-annotations
- Example Request:
Example 1 - Bytes VaultResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .exportDocumentAnnotationsToPdf(docId); Example 2 - File VaultResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .setOutputPath(outputPath) .exportDocumentAnnotationsToPdf(docId);
- Example Response:
Example 1 - Bytes byte[] bytes = response.getBinaryContent(); Example 2 - File System.out.println("Output file: " + response.getOutputFilePath());
-
exportDocumentVersionAnnotationsToPdf
public VaultResponse exportDocumentVersionAnnotationsToPdf(int docId, int majorVersion, int minorVersion) Export Document Version Annotations to PDFExport a specific version of any document, along with its annotations, as an annotated PDF. This is equivalent to the Export Annotations action in the Vault document viewer UI.
- Parameters:
docId
- The Document IdmajorVersion
- The document major_version_number__v field valueminorVersion
- The document minor_version_number__v field value- Returns:
- VaultResponse
- Vault API Endpoint:
GET /api/{version}/objects/documents/{doc_id}/versions/{major_version}/{minor_version}/annotations/file
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#retrieve-document-version-annotations
- Example Request:
Example 1 - Bytes VaultResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .exportDocumentVersionAnnotationsToPdf(docId, majorVersionNumber, minorVersionNumber); Example 2 - File VaultResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .setOutputPath(outputPath) .exportDocumentVersionAnnotationsToPdf(docId, majorVersionNumber, minorVersionNumber);
- Example Response:
Example 1 - Bytes byte[] bytes = response.getBinaryContent(); Example 2 - File System.out.println("Output file: " + response.getOutputFilePath());
-
retrieveAnchorIds
Retrieve Anchor IDsRetrieve all anchor IDs from a document.
- Parameters:
docId
- The document id field value.- Returns:
- DocumentAnnotationAnchorResponse
- Vault API Endpoint:
GET /api/{version}/objects/documents/{doc_id}/anchors
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#retrieve-anchor-ids
- Example Request:
DocumentAnnotationAnchorResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .retrieveAnchorIds(docId);
- Example Response:
System.out.println(response.getResponse()); if (response.isSuccessful()) { for (DocumentAnnotationAnchorResponse.AnchorData data : response.wgetAnchorDataList()) { System.out.println("\n**** Data Item **** "); System.out.println("anchorId = " + data.getAnchorId()); System.out.println("noteId = " + data.getNoteId()); System.out.println("anchorName = " + data.getAnchorName()); System.out.println("noteAuthor = " + data.getNoteAuthor()); System.out.println("noteTimestamp = " + data.getNoteTimestamp()); System.out.println("pageNumber = " + data.getPageNumber()); } }
-
retrieveDocumentVersionNotesAsCSV
public VaultResponse retrieveDocumentVersionNotesAsCSV(int docId, int majorVersion, int minorVersion) Retrieve Document Version Notes as CSV
Retrieve notes in CSV format for any document that has a viewable rendition and at least one annotation. You must have a Full User license type.- Parameters:
docId
- The Document IdmajorVersion
- The document major_version_number__v field valueminorVersion
- The document minor_version_number__v field value- Returns:
- VaultResponse
- Vault API Endpoint:
GET /api/{version}/objects/documents/{doc_id}/versions/{major_version}/{minor_version}/doc-export-annotations-to-csv
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#retrieve-document-version-notes-as-csv
- Example Request:
Example 1 - To File VaultResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .setOutputPath(outputPath.toString()) .retrieveDocumentVersionNotesAsCSV(docId, majorVersion, minorVersion); Example 2 - Get the file and manually download (retrieve the file as bytes in the response) VaultResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .setOutputPath(null) .retrieveDocumentVersionNotesAsCSV(docId, majorVersion, minorVersion);
- Example Response:
if (response.getResponseStatus().equals(VaultResponse.HTTP_RESPONSE_SUCCESS)) { try (OutputStream os = new FileOutputStream(outputPath.toString())) { os.write(response.getBinaryContent()); } catch (IOException ignored) {} } System.out.println("File was saved to: " + response.getOutputFilePath());
-
retrieveVideoAnnotations
Retrieve Video Annotations
Retrieve annotations on a video document.- Parameters:
docId
- The Document IdmajorVersion
- The document major_version_number__v field valueminorVersion
- The document minor_version_number__v field value- Returns:
- VaultResponse
- Vault API Endpoint:
GET /api/{version}/objects/documents/{doc_id}/versions/{major_version}/{minor_version}/export-video-annotations
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#retrieve-video-annotations
- Example Request:
VaultResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .setOutputPath(outputPath.toString()) .retrieveVideoAnnotations(docId, majorVersion, minorVersion);
-
importDocumentAnnotationsFromPdf
Import Document Annotations from PDFLoad annotations from a PDF to Vault. This is equivalent to the Import Annotations action in the Vault document viewer UI.
- Parameters:
docId
- The document id field value.- Returns:
- DocumentAnnotationImportResponse
- Vault API Endpoint:
POST /api/{version}/objects/documents/{doc_id}/annotations/file
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#upload-document-annotations
- Example Request:
DocumentAnnotationImportResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .setInputPath(PATH_ANNOTATIONS_FILE) .importDocumentAnnotationsFromPdf(docId);
- Example Response:
System.out.println("New Annotations: " + response.getNewCount()); System.out.println("Replies: " + response.getReplies()); System.out.println("Failures: " + response.getFailures());
-
importDocumentVersionAnnotationsFromPdf
public DocumentAnnotationImportResponse importDocumentVersionAnnotationsFromPdf(int docId, int majorVersion, int minorVersion) Import Document Version Annotations from PDF
Load annotations from a PDF to Vault. This is equivalent to the Import Annotations action in the Vault document viewer UI.- Parameters:
docId
- The Document IdmajorVersion
- The document major_version_number__v field valueminorVersion
- The document minor_version_number__v field value- Returns:
- DocumentAnnotationImportResponse
- Vault API Endpoint:
POST /api/{version}/objects/documents/{doc_id}/versions/{major_version}/{minor_version}/annotations/file
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#upload-document-version-annotations
- Example Request:
DocumentAnnotationImportResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .setInputPath(PATH_ANNOTATIONS_FILE) .importDocumentVersionAnnotationsFromPdf(docId, majorVersionNumber, minorVersionNumber);
- Example Response:
System.out.println("New Annotations: " + response.getNewCount()); System.out.println("Replies: " + response.getReplies()); System.out.println("Failures: " + response.getFailures());
-
retrieveAnnotationTypeMetadata
public DocumentAnnotationTypeMetadataResponse retrieveAnnotationTypeMetadata(DocumentAnnotationRequest.AnnotationType annotationType) Retrieve Annotation Type Metadata
Retrieves the metadata of an annotation type, including metadata and value sets for all supported fields on the annotation type.- Parameters:
annotationType
- The annotation type- Returns:
- DocumentAnnotationTypeMetadataResponse
- Vault API Endpoint:
GET /api/{version}/metadata/objects/documents/annotations/types/{annotation_type}
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#retrieve-annotation-type-metadata
- Example Request:
DocumentAnnotationTypeMetadataResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .retrieveAnnotationTypeMetadata(AnnotationType.NOTE);
- Example Response:
AnnotationTypeMetadata data = response.getData(); System.out.println("Annotation Type Name: " + data.getName()); for (AnnotationTypeMetadata.AnnotationField field : data.getFields()) { System.out.println("Annotation Type Field"); System.out.println("Field Name: " + field.getName()); System.out.println("Field Type: " + field.getType()); }
-
retrieveAnnotationPlacemarkTypeMetadata
public DocumentAnnotationPlacemarkTypeMetadataResponse retrieveAnnotationPlacemarkTypeMetadata(DocumentAnnotationRequest.PlacemarkType placemarkType) Retrieve Annotation Placemark Type Metadata
Retrieves the metadata of a specified annotation placemark type.- Parameters:
placemarkType
- The placemark type- Returns:
- DocumentAnnotationPlacemarkTypeMetadataResponse
- Vault API Endpoint:
GET /api/{version}/metadata/objects/documents/annotations/placemarks/types/{placemark_type}
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#retrieve-annotation-placemark-type-metadata
- Example Request:
DocumentAnnotationPlacemarkTypeMetadataResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .retrieveAnnotationPlacemarkTypeMetadata(DocumentAnnotationRequest.PlacemarkType.TEXT);
- Example Response:
PlacemarkTypeMetadata data = response.getData(); System.out.println("Placemark Type Name: " + data.getName()); for (PlacemarkTypeMetadata.PlacemarkField field : data.getFields()) { System.out.println("Placemark Type Field"); System.out.println("Field Name: " + field.getName()); }
-
retrieveAnnotationReferenceTypeMetadata
public DocumentAnnotationReferenceTypeMetadataResponse retrieveAnnotationReferenceTypeMetadata(DocumentAnnotationRequest.ReferenceType referenceType) Retrieve Annotation Reference Type Metadata
Retrieves the metadata of a specified annotation reference type.- Parameters:
referenceType
- The reference type- Returns:
- DocumentAnnotationReferenceTypeMetadataResponse
- Vault API Endpoint:
GET /api/{version}/metadata/objects/documents/annotations/references/types/{reference_type}
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#retrieve-annotation-reference-type-metadata
- Example Request:
DocumentAnnotationReferenceTypeMetadataResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .retrieveAnnotationReferenceTypeMetadata(DocumentAnnotationRequest.ReferenceType.DOCUMENT);
- Example Response:
ReferenceTypeMetadata data = response.getData(); System.out.println("Reference Type Name: " + data.getName()); for (ReferenceTypeMetadata.ReferenceField field : data.getFields()) { System.out.println("Reference Type Field"); System.out.println("Field Name: " + field.getName()); }
-
createMultipleAnnotations
Create Multiple Annotations
Create up to 500 annotations.- Returns:
- DocumentAnnotationBulkResponse
- Vault API Endpoint:
POST /api/{version}/objects/documents/annotations/batch
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#retrieve-annotation-reference-type-metadata
- Example Request:
Example 1 - Json String DocumentAnnotationBulkResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .setJson(jsonString) .createMultipleAnnotations(); Example 2 - Json File DocumentAnnotationBulkResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .setInputPath(filePath) .createMultipleAnnotations();
- Example Response:
for (DocumentAnnotationResponse annotation : response.getData()) { System.out.println("Response Status: " + annotation.getResponseStatus()); System.out.println("Annotation ID: " + annotation.getId()); System.out.println("Document Version ID: " + annotation.getDocumentVersionId()); }
-
addAnnotationReplies
Add Annotation Replies
Create up to 500 annotation replies.- Returns:
- DocumentAnnotationBulkResponse
- Vault API Endpoint:
POST /api/{version}/objects/documents/annotations/replies/batch
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#add-annotation-replies
- Example Request:
Example 1 - Json String DocumentAnnotationBulkResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .setJson(jsonString) .addAnnotationReplies(); Example 2 - Json File DocumentAnnotationBulkResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .setInputPath(filePath) .addAnnotationReplies();
- Example Response:
for (DocumentAnnotationResponse annotation : response.getData()) { System.out.println("Response Status: " + annotation.getResponseStatus()); System.out.println("Annotation ID: " + annotation.getId()); System.out.println("Document Version ID: " + annotation.getDocumentVersionId()); }
-
updateAnnotations
Update Annotations
Update up to 500 existing annotations.- Returns:
- DocumentAnnotationBulkResponse
- Vault API Endpoint:
PUT /api/{version}/objects/documents/annotations/batch
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#update-annotations
- Example Request:
Example 1 - Json String DocumentAnnotationBulkResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .setJson(jsonString) .updateAnnotations(); Example 2 - Json File DocumentAnnotationBulkResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .setInputPath(filePath) .updateAnnotations();
- Example Response:
for (DocumentAnnotationResponse annotation : response.getData()) { System.out.println("Response Status: " + annotation.getResponseStatus()); System.out.println("Annotation ID: " + annotation.getId()); System.out.println("Document Version ID: " + annotation.getDocumentVersionId()); }
-
readAnnotationsByDocumentVersionAndType
public DocumentAnnotationReadResponse readAnnotationsByDocumentVersionAndType(int docId, int majorVersion, int minorVersion) Read Annotations by Document Version and Type
Retrieve annotations from a specific document version. You can retrieve all annotations or choose to retrieve only certain annotation types.- Parameters:
docId
- The Document IdmajorVersion
- The document major_version_number__v field valueminorVersion
- The document minor_version_number__v field value- Returns:
- DocumentAnnotationReadResponse
- Vault API Endpoint:
POST GET /api/{version}/objects/documents/{doc_id}/versions/{major_version}/{minor_version}/annotations
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#read-annotations-by-document-version-and-type
- Example Request:
DocumentAnnotationReadResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .readAnnotationsByDocumentVersionAndType(docId, majorVersionNumber, minorVersionNumber);
- Example Response:
for (DocumentAnnotation annotation : response.getData()) { System.out.println("Annotation ID: " + annotation.getId()); System.out.println("Comment: " + annotation.getComment()); System.out.println("Type: " + annotation.getType()); }
-
readAnnotationsByDocumentVersionAndTypeByPage
Read Annotations by Document Version and Type (By Page)Retrieve annotations from a specific document version using the previous_page or next_page parameter of a previous request
- Parameters:
pageUrl
- The URL from the previous_page or next_page parameter- Returns:
- DocumentAnnotationReadResponse
- Vault API Endpoint:
GET /api/{version}/objects/documents/{doc_id}/versions/{major_version}/{minor_version}/annotations
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#read-annotations-by-document-version-and-type
- Example Request:
if (response.isPaginated()) { String nextPageUrl = response.getResponseDetails().getNextPage(); DocumentAnnotationReadResponse response_page_2 = vaultClient.newRequest(DocumentAnnotationRequest.class) .readAnnotationsByDocumentVersionAndTypeByPage(nextPageUrl);
- Example Response:
for (DocumentAnnotation annotation : response_page_2.getData()) { System.out.println("Annotation ID: " + annotation.getId()); System.out.println("Comment: " + annotation.getComment()); System.out.println("Type: " + annotation.getType()); }
-
readAnnotationsById
public DocumentAnnotationReadResponse readAnnotationsById(int docId, int majorVersion, int minorVersion, int annotationId) Read Annotations by IDRetrieve a specific annotation by the annotation ID.
- Parameters:
docId
- The Document IdmajorVersion
- The document major_version_number__v field valueminorVersion
- The document minor_version_number__v field valueannotationId
- The annotation id- Returns:
- DocumentAnnotationReadResponse
- Vault API Endpoint:
GET /api/{version}/objects/documents/{doc_id}/versions/{major_version}/{minor_version}/annotations/{annotation_id}
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#read-annotations-by-id
- Example Request:
DocumentAnnotationReadResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .readAnnotationsById(docId, majorVersionNumber, minorVersionNumber, annotationId);
- Example Response:
for (DocumentAnnotation annotation : response.getData()) { System.out.println("Annotation ID: " + annotation.getId()); System.out.println("Comment: " + annotation.getComment()); System.out.println("Type: " + annotation.getType()); }
-
readRepliesOfParentAnnotation
public DocumentAnnotationReplyReadResponse readRepliesOfParentAnnotation(int docId, int majorVersion, int minorVersion, int annotationId) Read Replies of Parent Annotation
Given a parent annotation ID, retrieves all replies to the annotation.- Parameters:
docId
- The Document IdmajorVersion
- The document major_version_number__v field valueminorVersion
- The document minor_version_number__v field valueannotationId
- The annotation id- Returns:
- DocumentAnnotationReplyReadResponse
- Vault API Endpoint:
GET /api/{version}/objects/documents/{doc_id}/versions/{major_version}/{minor_version}/annotations/{annotation_id}/replies
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#read-replies-of-parent-annotation
- Example Request:
DocumentAnnotationReplyReadResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .readRepliesOfParentAnnotation(docId, majorVersionNumber, minorVersionNumber, annotationId);
- Example Response:
for (DocumentAnnotationReply reply : response.getData()) { System.out.println("ID: " + reply.getId()); System.out.println("Comment: " + reply.getComment()); System.out.println("Type: " + reply.getType()); }
-
readRepliesOfParentAnnotationByPage
Read Replies of Parent Annotation (By Page)Retrieve replies from a specific annotation using the previous_page or next_page parameter of a previous request
- Parameters:
pageUrl
- The URL from the previous_page or next_page parameter- Returns:
- DocumentAnnotationReplyReadResponse
- Vault API Endpoint:
GET /api/{version}/objects/documents/{doc_id}/versions/{major_version}/{minor_version}/annotations/{annotation_id}/replies
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#read-replies-of-parent-annotation
- Example Request:
if (response.isPaginated()) { String nextPageUrl = response.getResponseDetails().getNextPage(); DocumentAnnotationReplyReadResponse response_page_2 = vaultClient.newRequest(DocumentAnnotationRequest.class) .readRepliesOfParentAnnotationByPage(nextPageUrl);
- Example Response:
for (DocumentAnnotationReply reply : response_page_2.getData()) { System.out.println("ID: " + reply.getId()); System.out.println("Comment: " + reply.getComment()); System.out.println("Type: " + reply.getType()); }
-
deleteAnnotations
Delete AnnotationsDelete multiple annotations. You can delete up to 500 annotations per batch.
- Returns:
- DocumentAnnotationBulkResponse
- Vault API Endpoint:
DELETE/api/{version}/objects/documents/annotations/batch
- Vault API Help Link:
- https://developer.veevavault.com/api/25.1/#delete-annotations
- Example Request:
Example 1 - CSV input DocumentAnnotationBulkResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .setContentTypeCsv() .setInputPath(csvFilePath) .deleteAnnotations(); Example 2 - Binary input DocumentAnnotationBulkResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .setContentTypeCsv() .setBinaryFile(csvFile.getName(), Files.readAllBytes(csvFile.toPath())) .deleteAnnotations(); Example 3 - Json input DocumentAnnotationBulkResponse response = vaultClient.newRequest(DocumentAnnotationRequest.class) .setContentTypeJson() .setRequestString(requestString) .deleteAnnotations();
- Example Response:
for (DocumentAnnotationResponse annotation : response.getData()) { System.out.println("Response Status: " + annotation.getResponseStatus()); System.out.println("Annotation ID: " + annotation.getId()); System.out.println("Document Version ID: " + annotation.getDocumentVersionId()); }
-
setBinaryFile
Specify source data in an input file- Parameters:
filename
- file name (no path)binaryContent
- byte array of the file content- Returns:
- DocumentAnnotationRequest
-
setInputPath
Specify source data in an input file- Parameters:
inputPath
- Absolute path to the file for the request- Returns:
- DocumentAnnotationRequest
-
setOutputPath
Specify source data in an output file- Parameters:
outputPath
- Absolute path to the file for the response- Returns:
- DocumentAnnotationRequest
-
setOffset
This parameter is used to paginate the results. It specifies the amount of offset from the first record returned.- Parameters:
offset
- Amount of offset from the first record returned- Returns:
- DocumentAnnotationRequest
-
setLimit
This parameter paginates the results by specifying the maximum number of records per page in the response.- Parameters:
limit
- Max number of results- Returns:
- DocumentAnnotationRequest
-
setPaginationId
A unique identifier used to load requests with paginated results.- Parameters:
paginationId
- The pagination id- Returns:
- DocumentAnnotationRequest
-
setAnnotationTypes
The type(s) of annotations to retrieve. For example, note__sys,anchor__sys. If omitted, Vault returns all annotations.- Parameters:
annotationTypes
- A set of annotation types- Returns:
- DocumentAnnotationRequest
-
setContentTypeCsv
Set the Header Content Type to CSV- Returns:
- DocumentAnnotationRequest
-
setContentTypeJson
Set the Header Content Type to JSON- Returns:
- DocumentAnnotationRequest
-
setRequestString
Specify source data in an input string, such as a JSON request- Parameters:
requestString
- The source request as a string- Returns:
- DocumentAnnotationRequest
-
setJson
Set a raw JSON string to the Annotation request- Parameters:
json
- Fully formed Annotation request- Returns:
- The Request
-