Modifier and Type | Method and Description |
---|---|
DeleteDocumentVersionsResponse |
deleteDocumentVersions(List<DocumentVersion> documentVersions)
Delete the specified List of DocumentVersions.
|
DocumentVersion |
newDocumentVersion(String docVer)
Instantiates a
DocumentVersion and sets the id, major version, and minor version. |
DocumentVersion |
newDocumentWithId(String docId)
Instantiates a
DocumentVersion with the given id and sets the version to the latest version
of the document. |
SaveDocumentVersionsResponse |
saveDocumentVersions(List<DocumentVersion> documentVersions)
Save the specified DocumentVersions.
|
DocumentVersion newDocumentVersion(String docVer)
DocumentVersion
and sets the id, major version, and minor version.
Use this method to create an instance of an existing version of a document for updating or deleting. While you
can delete any document version, you can only update the latest version of a document. If you want to update a
document, we recommend newDocumentWithId(String)
.
docVer
- the document id, major version, and minor version, in the format id_major_minor. For example,
951_0_1.DocumentVersion newDocumentWithId(String docId)
DocumentVersion
with the given id
and sets the version to the latest version
of the document.
Use this method to create an instance of the latest version of an existing document. You can then update or delete this document version.
docId
- the document idSaveDocumentVersionsResponse saveDocumentVersions(List<DocumentVersion> documentVersions)
This saves the DocumentVersions regardless of the current user's access to that DocumentVersion.
This is an all-or-nothing operation. If one or more documents fail to save, users see an error message and the operation is rolled back.
documentVersions
- List of DocumentVersions to saveSaveDocumentVersionsResponse
for more information.DeleteDocumentVersionsResponse deleteDocumentVersions(List<DocumentVersion> documentVersions)
A delete can be either a single version delete or document delete. If an input DocumentVersion
has no major
version and no minor version, that's an indication this is a complete document delete. If the input
DocumentVersion
has a major and minor version, that's an indication this is a document version delete.
This is an all-or-nothing operation. If one or more documents fail to delete, users see an error message and the operation is rolled back.
documentVersions
- List of DocumentVersions to deleteDeleteDocumentVersionsResponse
for more information.Copyright © Veeva Systems 2017–2019. All rights reserved.