R
- the set of handles for reading the document content from the databaseW
- the set of handles for writing the document content to the databasepublic interface DocumentManager<R extends AbstractReadHandle,W extends AbstractWriteHandle>
Modifier and Type | Interface and Description |
---|---|
static class |
DocumentManager.Metadata
The Metadata enumeration specifies the categories of metadata read from or written to the database.
|
Modifier and Type | Method and Description |
---|---|
void |
clearMetadataCategories()
Clears the metadata categories.
|
DocumentDescriptor |
create(DocumentUriTemplate template,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle)
Creates a database document with metadata and content and a uri assigned by the server.
|
DocumentDescriptor |
create(DocumentUriTemplate template,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
ServerTransform transform)
Creates a database document with metadata and content and a uri assigned by the server as transformed on the server.
|
DocumentDescriptor |
create(DocumentUriTemplate template,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
ServerTransform transform,
Transaction transaction)
Creates a database document with metadata and content and a uri assigned by the server in an open database transaction as transformed on the server.
|
DocumentDescriptor |
create(DocumentUriTemplate template,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
Transaction transaction) |
DocumentDescriptor |
create(DocumentUriTemplate template,
W contentHandle)
Creates a database document with a uri assigned by the server.
|
DocumentDescriptor |
create(DocumentUriTemplate template,
W contentHandle,
ServerTransform transform)
Creates a database document with a uri assigned by the server as transformed on the server.
|
DocumentDescriptor |
create(DocumentUriTemplate template,
W contentHandle,
ServerTransform transform,
Transaction transaction)
Creates a database document with a uri assigned by the server in an open database transaction as transformed on the server.
|
DocumentDescriptor |
create(DocumentUriTemplate template,
W contentHandle,
Transaction transaction)
Creates a database document with a uri assigned by the server in an open database transaction.
|
DocumentDescriptor |
createAs(DocumentUriTemplate template,
DocumentMetadataWriteHandle metadataHandle,
java.lang.Object content)
Creates a database document with a uri assigned by the server from an object of an IO class.
|
DocumentDescriptor |
createAs(DocumentUriTemplate template,
DocumentMetadataWriteHandle metadataHandle,
java.lang.Object content,
ServerTransform transform)
Creates a database document with a uri assigned by the server from an object of an IO class.
|
DocumentDescriptor |
createAs(DocumentUriTemplate template,
java.lang.Object content)
Creates a database document with a uri assigned by the server from an object of an IO class.
|
DocumentDescriptor |
createAs(DocumentUriTemplate template,
java.lang.Object content,
ServerTransform transform)
Creates a database document with a uri assigned by the server from an object of an IO class.
|
void |
delete(DocumentDescriptor desc)
Deletes the document metadata and content from the database
To call delete(), an application must authenticate as rest-writer or rest-admin.
|
void |
delete(DocumentDescriptor desc,
Transaction transaction)
Deletes the document metadata and content from an open database transaction
To call delete(), an application must authenticate as rest-writer or rest-admin.
|
void |
delete(java.lang.String... uris)
Deletes the documents' metadata and content
To call delete(), an application must authenticate as rest-writer or rest-admin.
|
void |
delete(java.lang.String docId)
Deletes the document metadata and content from the database
To call delete(), an application must authenticate as rest-writer or rest-admin.
|
void |
delete(java.lang.String docId,
Transaction transaction)
Deletes the document metadata and content from an open database transaction
To call delete(), an application must authenticate as rest-writer or rest-admin.
|
void |
delete(Transaction transaction,
java.lang.String... uris)
Deletes the documents' metadata and content from an open database transaction
To call delete(), an application must authenticate as rest-writer or rest-admin.
|
DocumentDescriptor |
exists(java.lang.String docId)
Checks whether a document exists and gets its byte length, format, mimetype, and version
if it does.
|
DocumentDescriptor |
exists(java.lang.String docId,
Transaction transaction)
Checks whether a document exists in an open transaction and gets its byte length, format,
mimetype, and version if it does.
|
Format |
getContentFormat()
Gets the default format of the managed documents
|
java.util.Set<DocumentManager.Metadata> |
getMetadataCategories()
Returns the categories of metadata to read, write, patch, or search.
|
Format |
getNonDocumentFormat()
Returns the format (if set) for the search response from
search and
metadata available from DocumentPage.next().getMetadata(handle) (assuming
setMetadataCategories has been called
to request specific metadata). |
long |
getPageLength()
Get the maximum number of records to return in a page from calls to
search |
ServerTransform |
getReadTransform()
Returns the transform for read requests that don't specify a transform.
|
QueryManager.QueryView |
getSearchView()
Returns the view types included in a SearchReadHandle populated by calls to
search |
ServerTransform |
getWriteTransform()
Returns the transform for write requests that don't specify a transform.
|
DocumentDescriptor |
newDescriptor(java.lang.String uri)
Creates a document descriptor for identifying the uri of a document,
its format and mimetype, and its version.
|
DocumentUriTemplate |
newDocumentUriTemplate(java.lang.String extension)
Creates a document uri template for assigning a uri to a document.
|
DocumentMetadataPatchBuilder |
newPatchBuilder(Format pathFormat)
For XMLDocumentManager or JSONDocumentManager, creates a builder for specifying changes
to the document and metadata of a document.
|
DocumentWriteSet |
newWriteSet() |
void |
patch(DocumentDescriptor desc,
DocumentPatchHandle patch)
Modifies the metadata or content of a document.
|
void |
patch(DocumentDescriptor desc,
DocumentPatchHandle patch,
Transaction transaction)
Modifies the metadata or content of a document within an open database transaction on the server.
|
void |
patch(java.lang.String docId,
DocumentPatchHandle patch)
Modifies the metadata or content of a document within an open database transaction on the server.
|
void |
patch(java.lang.String docId,
DocumentPatchHandle patch,
Transaction transaction)
Modifies the metadata or content of a document within an open database transaction on the server.
|
void |
patchAs(java.lang.String docId,
java.lang.Object patch)
Modifies the metadata or content of a document within an open database transaction on the server.
|
<T extends R> |
read(DocumentDescriptor desc,
DocumentMetadataReadHandle metadataHandle,
T contentHandle)
Reads the document metadata and content from the database in the representations provided by the handles
To call read(), an application must authenticate as rest-reader, rest-writer, or rest-admin.
|
<T extends R> |
read(DocumentDescriptor desc,
DocumentMetadataReadHandle metadataHandle,
T contentHandle,
ServerTransform transform)
Reads the document metadata and content from the database as transformed on the server.
|
<T extends R> |
read(DocumentDescriptor desc,
DocumentMetadataReadHandle metadataHandle,
T contentHandle,
ServerTransform transform,
Transaction transaction)
Reads the document metadata and content from an open database transaction as transformed on the server.
|
<T extends R> |
read(DocumentDescriptor desc,
DocumentMetadataReadHandle metadataHandle,
T contentHandle,
Transaction transaction)
Reads the document metadata and content from an open database transaction in the representations provided by the handles
To call read(), an application must authenticate as rest-reader, rest-writer, or rest-admin.
|
<T extends R> |
read(DocumentDescriptor desc,
T contentHandle)
Reads the document content from the database in the representations provided by the handles
To call read(), an application must authenticate as rest-reader, rest-writer, or rest-admin.
|
<T extends R> |
read(DocumentDescriptor desc,
T contentHandle,
ServerTransform transform)
Reads the document content from the database as transformed on the server.
|
<T extends R> |
read(DocumentDescriptor desc,
T contentHandle,
ServerTransform transform,
Transaction transaction)
Reads the document content from an open database transaction as transformed on the server.
|
<T extends R> |
read(DocumentDescriptor desc,
T contentHandle,
Transaction transaction)
Reads the document content from an open database transaction in the representation provided by the handle
To call read(), an application must authenticate as rest-reader, rest-writer, or rest-admin.
|
DocumentPage |
read(ServerTransform transform,
java.lang.String... uris)
Reads from the database a list of documents matching the provided uris.
|
DocumentPage |
read(ServerTransform transform,
Transaction transaction,
java.lang.String... uris)
Reads from the database a list of documents matching the provided uris.
|
DocumentPage |
read(java.lang.String... uris)
Reads from the database a list of documents matching the provided uris.
|
<T extends R> |
read(java.lang.String docId,
DocumentMetadataReadHandle metadataHandle,
T contentHandle)
Reads the document metadata and content from the database in the representations provided by the handles
To call read(), an application must authenticate as rest-reader, rest-writer, or rest-admin.
|
<T extends R> |
read(java.lang.String docId,
DocumentMetadataReadHandle metadataHandle,
T contentHandle,
ServerTransform transform)
Reads the document metadata and content from the database as transformed on the server.
|
<T extends R> |
read(java.lang.String docId,
DocumentMetadataReadHandle metadataHandle,
T contentHandle,
ServerTransform transform,
Transaction transaction)
Reads the document metadata and content from an open database transaction as transformed on the server.
|
<T extends R> |
read(java.lang.String docId,
DocumentMetadataReadHandle metadataHandle,
T contentHandle,
Transaction transaction)
Reads the document metadata and content from an open database transaction in the representations provided by the handles
To call read(), an application must authenticate as rest-reader, rest-writer, or rest-admin.
|
<T extends R> |
read(java.lang.String docId,
T contentHandle)
Reads the document content from the database in the representation provided by the handle
To call read(), an application must authenticate as rest-reader, rest-writer, or rest-admin.
|
<T extends R> |
read(java.lang.String docId,
T contentHandle,
ServerTransform transform)
Reads the document content from the database as transformed on the server.
|
<T extends R> |
read(java.lang.String docId,
T contentHandle,
ServerTransform transform,
Transaction transaction)
Reads the document content from an open database transaction as transformed on the server.
|
<T extends R> |
read(java.lang.String docId,
T contentHandle,
Transaction transaction)
Reads the document content from an open database transaction in the representation provided by the handle
To call read(), an application must authenticate as rest-reader, rest-writer, or rest-admin.
|
DocumentPage |
read(Transaction transaction,
java.lang.String... uris)
Reads from the database a list of documents matching the provided uris.
|
<T> T |
readAs(java.lang.String docId,
java.lang.Class<T> as)
Reads the document content from the database in the representation specified by the IO class.
|
<T> T |
readAs(java.lang.String docId,
java.lang.Class<T> as,
ServerTransform transform)
Reads the document content from the database in the representation specified by the IO class.
|
<T> T |
readAs(java.lang.String docId,
DocumentMetadataReadHandle metadataHandle,
java.lang.Class<T> as)
Reads the document metadata and content from the database in the representation specified by the IO class.
|
<T> T |
readAs(java.lang.String docId,
DocumentMetadataReadHandle metadataHandle,
java.lang.Class<T> as,
ServerTransform transform)
Reads the document metadata and content from the database in the representation specified by the IO class.
|
DocumentPage |
readMetadata(java.lang.String... uris)
Reads from the database the metadata for a list of documents matching the
provided uris.
|
<T extends DocumentMetadataReadHandle> |
readMetadata(java.lang.String docId,
T metadataHandle)
Reads the document metadata from the database in the representation provided by the handle
To call readMetadata(), an application must authenticate as rest-reader, rest-writer, or rest-admin.
|
<T extends DocumentMetadataReadHandle> |
readMetadata(java.lang.String docId,
T metadataHandle,
Transaction transaction)
Reads the document metadata from an open database transaction in the representation provided by the handle
To call readMetadata(), an application must authenticate as rest-reader, rest-writer, or rest-admin.
|
DocumentPage |
readMetadata(Transaction transaction,
java.lang.String... uris)
Reads from the database the metadata for a list of documents matching the
provided uris.
|
DocumentPage |
search(QueryDefinition querydef,
long start)
Just like
QueryManager.search
but return complete documents via iterable DocumentPage. |
DocumentPage |
search(QueryDefinition querydef,
long start,
SearchReadHandle searchHandle)
Just like
QueryManager.search
but return complete documents via iterable DocumentPage. |
DocumentPage |
search(QueryDefinition querydef,
long start,
SearchReadHandle searchHandle,
Transaction transaction)
Just like
QueryManager.search(QueryDefinition, SearchReadHandle, long, Transaction)
but return complete documents via iterable DocumentPage. |
DocumentPage |
search(QueryDefinition querydef,
long start,
Transaction transaction)
Just like
QueryManager.search
but return complete documents via iterable DocumentPage. |
void |
setContentFormat(Format format)
Sets the default format of the managed documents
|
void |
setMetadataCategories(DocumentManager.Metadata... categories)
Specifies the categories of metadata to read, write, patch, or search.
|
void |
setMetadataCategories(java.util.Set<DocumentManager.Metadata> categories)
Specifies the categories of metadata to read, write, patch, or search.
|
void |
setNonDocumentFormat(Format nonDocumentFormat)
Specifies the format for the search response from
search and
metadata available from DocumentPage.next().getMetadata(handle) (assuming
setMetadataCategories has been called
to request specific metadata). |
void |
setPageLength(long length)
Specifies the maximum number of documents that can appear in any page of the query results,
overriding any maximum specified in the query options.
|
void |
setReadTransform(ServerTransform transform)
Specifies a transform for read requests that don't specify a transform.
|
void |
setSearchView(QueryManager.QueryView view)
Specifies the view types included in a SearchReadHandle populated by calls to
search |
void |
setWriteTransform(ServerTransform transform)
Specifies a transform for write requests that don't specify a transform.
|
void |
startLogging(RequestLogger logger)
Starts debugging client requests.
|
void |
stopLogging()
Stops debugging client requests.
|
void |
write(DocumentDescriptor desc,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle)
Writes the document metadata and content to the database from the representations provided by the handles
To call write(), an application must authenticate as rest-writer or rest-admin.
|
void |
write(DocumentDescriptor desc,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
ServerTransform transform)
Writes the document metadata and content to the database as transformed on the server.
|
void |
write(DocumentDescriptor desc,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
ServerTransform transform,
Transaction transaction)
Writes the document metadata and content to an open database transaction as transformed on the server.
|
void |
write(DocumentDescriptor desc,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
Transaction transaction)
Writes the document metadata and content to an open database transaction from the representations provided by the handles
To call write(), an application must authenticate as rest-writer or rest-admin.
|
void |
write(DocumentDescriptor desc,
W contentHandle)
Writes the document content to the database from the representation provided by the handle
To call write(), an application must authenticate as rest-writer or rest-admin.
|
void |
write(DocumentDescriptor desc,
W contentHandle,
ServerTransform transform)
Writes the document content to the database as transformed on the server.
|
void |
write(DocumentDescriptor desc,
W contentHandle,
ServerTransform transform,
Transaction transaction)
Writes the document content to an open database transaction as transformed on the server.
|
void |
write(DocumentDescriptor desc,
W contentHandle,
Transaction transaction)
Writes the document content to an open database transaction from the representation provided by the handle
To call write(), an application must authenticate as rest-writer or rest-admin.
|
void |
write(DocumentWriteSet writeSet)
Write a set of documents and metadata to the server via REST API bulk capabilities.
|
void |
write(DocumentWriteSet writeSet,
ServerTransform transform)
Write a set of documents and metadata to the server via REST API bulk capabilities.
|
void |
write(DocumentWriteSet writeSet,
ServerTransform transform,
Transaction transaction)
Write a set of documents and metadata to the server via REST API bulk capabilities.
|
void |
write(DocumentWriteSet writeSet,
Transaction transaction)
Write a set of documents and metadata to the server via REST API bulk capabilities.
|
void |
write(java.lang.String docId,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle)
Writes the document metadata and content to the database from the representations provided by the handles
To call write(), an application must authenticate as rest-writer or rest-admin.
|
void |
write(java.lang.String docId,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
ServerTransform transform)
Writes the document metadata and content to the database as transformed on the server.
|
void |
write(java.lang.String docId,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
ServerTransform transform,
Transaction transaction)
Writes the document metadata and content to an open database transaction as transformed on the server.
|
void |
write(java.lang.String docId,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
Transaction transaction)
Writes the document metadata and content to an open database transaction from the representations provided by the handles
To call write(), an application must authenticate as rest-writer or rest-admin.
|
void |
write(java.lang.String docId,
W contentHandle)
Writes the document content to the database from the representation provided by the handle
To call write(), an application must authenticate as rest-writer or rest-admin.
|
void |
write(java.lang.String docId,
W contentHandle,
ServerTransform transform)
Writes the document content to the database as transformed on the server.
|
void |
write(java.lang.String docId,
W contentHandle,
ServerTransform transform,
Transaction transaction)
Writes the document content to an open database transaction as transformed on the server.
|
void |
write(java.lang.String docId,
W contentHandle,
Transaction transaction)
Writes the document content to an open database transaction from the representation provided by the handle
To call write(), an application must authenticate as rest-writer or rest-admin.
|
void |
writeAs(java.lang.String docId,
DocumentMetadataWriteHandle metadataHandle,
java.lang.Object content)
Writes the document content to the database from an object of an IO class.
|
void |
writeAs(java.lang.String docId,
DocumentMetadataWriteHandle metadataHandle,
java.lang.Object content,
ServerTransform transform)
Writes the document content to the database from an object of an IO class.
|
void |
writeAs(java.lang.String docId,
java.lang.Object content)
Writes the document content to the database from an object of an IO class.
|
void |
writeAs(java.lang.String docId,
java.lang.Object content,
ServerTransform transform)
Writes the document content to the database from an object of an IO class.
|
void |
writeDefaultMetadata(java.lang.String docId)
Reverts the document metadata in the database to the defaults
To call writeDefaultMetadata(), an application must authenticate as rest-writer or rest-admin.
|
void |
writeDefaultMetadata(java.lang.String docId,
Transaction transaction)
Reverts the document metadata in an open database transaction to the defaults
To call writeDefaultMetadata(), an application must authenticate as rest-writer or rest-admin.
|
void |
writeMetadata(java.lang.String docId,
DocumentMetadataWriteHandle metadataHandle)
Writes the document metadata to the database from the representation provided by the handle
To call writeMetadata(), an application must authenticate as rest-writer or rest-admin.
|
void |
writeMetadata(java.lang.String docId,
DocumentMetadataWriteHandle metadataHandle,
Transaction transaction)
Writes the document metadata to an open database transaction from the representation provided by the handle
To call writeMetadata(), an application must authenticate as rest-writer or rest-admin.
|
DocumentDescriptor newDescriptor(java.lang.String uri)
uri
- the identifier for the documentDocumentUriTemplate newDocumentUriTemplate(java.lang.String extension)
extension
- the identifier for the documentDocumentMetadataPatchBuilder newPatchBuilder(Format pathFormat)
pathFormat
- the patch path language. Set to JSON for JSONPath or XML for XPath.DocumentDescriptor exists(java.lang.String docId) throws ForbiddenUserException, FailedRequestException
docId
- the URI identifier for the documentForbiddenUserException
FailedRequestException
DocumentDescriptor exists(java.lang.String docId, Transaction transaction) throws ForbiddenUserException, FailedRequestException
docId
- the URI identifier for the documenttransaction
- a open transaction under which the document may have been created or deletedForbiddenUserException
FailedRequestException
<T> T readAs(java.lang.String docId, java.lang.Class<T> as) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
ContentHandle
are registered.
Learn more about shortcut methodsT
- the type of object that will be returned by the handle registered for itdocId
- the URI identifier for the documentas
- the IO class for reading the content of the documentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T> T readAs(java.lang.String docId, java.lang.Class<T> as, ServerTransform transform) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
ContentHandle
are registered.
Learn more about shortcut methodsT
- the type of object that will be returned by the handle registered for itdocId
- the URI identifier for the documentas
- the IO class for reading the content of the documenttransform
- a server transform to modify the document contentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T> T readAs(java.lang.String docId, DocumentMetadataReadHandle metadataHandle, java.lang.Class<T> as) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
ContentHandle
are registered.
Learn more about shortcut methodsT
- the type of object that will be returned by the handle registered for itdocId
- the URI identifier for the documentmetadataHandle
- a handle for reading the metadata of the documentas
- the IO class for reading the content of the documentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T> T readAs(java.lang.String docId, DocumentMetadataReadHandle metadataHandle, java.lang.Class<T> as, ServerTransform transform) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
ContentHandle
are registered.
Learn more about shortcut methodsT
- the type of object that will be returned by the handle registered for itdocId
- the URI identifier for the documentmetadataHandle
- a handle for reading the metadata of the documentas
- the IO class for reading the content of the documenttransform
- a server transform to modify the document contentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends R> T read(java.lang.String docId, T contentHandle) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of content handle to returndocId
- the URI identifier for the documentcontentHandle
- a handle for reading the content of the documentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends R> T read(java.lang.String docId, T contentHandle, ServerTransform transform) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of content handle to returndocId
- the URI identifier for the documentcontentHandle
- a handle for reading the content of the documenttransform
- a server transform to modify the document contentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends R> T read(DocumentDescriptor desc, T contentHandle) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of content handle to returndesc
- a descriptor for the URI identifier, format, and mimetype of the documentcontentHandle
- a handle for reading the content of the documentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends R> T read(DocumentDescriptor desc, T contentHandle, ServerTransform transform) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of content handle to returndesc
- a descriptor for the URI identifier, format, and mimetype of the documentcontentHandle
- a handle for reading the content of the documenttransform
- a server transform to modify the document contentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends R> T read(java.lang.String docId, DocumentMetadataReadHandle metadataHandle, T contentHandle) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of content handle to returndocId
- the URI identifier for the documentmetadataHandle
- a handle for reading the metadata of the documentcontentHandle
- a handle for reading the content of the documentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends R> T read(java.lang.String docId, DocumentMetadataReadHandle metadataHandle, T contentHandle, ServerTransform transform) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of content handle to returndocId
- the URI identifier for the documentmetadataHandle
- a handle for reading the metadata of the documentcontentHandle
- a handle for reading the content of the documenttransform
- a server transform to modify the document contentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadataHandle, T contentHandle) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of content handle to returndesc
- a descriptor for the URI identifier, format, and mimetype of the documentmetadataHandle
- a handle for reading the metadata of the documentcontentHandle
- a handle for reading the content of the documentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadataHandle, T contentHandle, ServerTransform transform) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of content handle to returndesc
- a descriptor for the URI identifier, format, and mimetype of the documentmetadataHandle
- a handle for reading the metadata of the documentcontentHandle
- a handle for reading the content of the documenttransform
- a server transform to modify the document contentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends R> T read(java.lang.String docId, T contentHandle, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of content handle to returndocId
- the URI identifier for the documentcontentHandle
- a handle for reading the content of the documenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends R> T read(java.lang.String docId, T contentHandle, ServerTransform transform, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of content handle to returndocId
- the URI identifier for the documentcontentHandle
- a handle for reading the content of the documenttransform
- a server transform to modify the document contenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends R> T read(DocumentDescriptor desc, T contentHandle, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of content handle to returndesc
- a descriptor for the URI identifier, format, and mimetype of the documentcontentHandle
- a handle for reading the content of the documenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends R> T read(DocumentDescriptor desc, T contentHandle, ServerTransform transform, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of content handle to returndesc
- a descriptor for the URI identifier, format, and mimetype of the documentcontentHandle
- a handle for reading the content of the documenttransform
- a server transform to modify the document contenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends R> T read(java.lang.String docId, DocumentMetadataReadHandle metadataHandle, T contentHandle, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of content handle to returndocId
- the URI identifier for the documentmetadataHandle
- a handle for reading the metadata of the documentcontentHandle
- a handle for reading the content of the documenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends R> T read(java.lang.String docId, DocumentMetadataReadHandle metadataHandle, T contentHandle, ServerTransform transform, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of content handle to returndocId
- the URI identifier for the documentmetadataHandle
- a handle for reading the metadata of the documentcontentHandle
- a handle for reading the content of the documenttransform
- a server transform to modify the document contenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadataHandle, T contentHandle, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of content handle to returndesc
- a descriptor for the URI identifier, format, and mimetype of the documentmetadataHandle
- a handle for reading the metadata of the documentcontentHandle
- a handle for reading the content of the documenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends R> T read(DocumentDescriptor desc, DocumentMetadataReadHandle metadataHandle, T contentHandle, ServerTransform transform, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of content handle to returndesc
- a descriptor for the URI identifier, format, and mimetype of the documentmetadataHandle
- a handle for reading the metadata of the documentcontentHandle
- a handle for reading the content of the documenttransform
- a server transform to modify the document contenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
DocumentPage read(java.lang.String... uris)
DocumentPage.size()
method.uris
- the database uris identifying documents to retrieveDocumentPage read(ServerTransform transform, java.lang.String... uris)
DocumentPage.size()
method.transform
- the transform to be run on the server on each document (must already be installed)uris
- the database uris identifying documents to retrieveDocumentPage read(Transaction transaction, java.lang.String... uris)
DocumentPage.size()
method.transaction
- the transaction in which this read is participatinguris
- the database uris identifying documents to retrieveDocumentPage read(ServerTransform transform, Transaction transaction, java.lang.String... uris)
DocumentPage.size()
method.transform
- the transform to be run on the server on each document (must already be installed)transaction
- the transaction in which this read is participatinguris
- the database uris identifying documents to retrieveDocumentPage readMetadata(java.lang.String... uris)
DocumentPage.size()
method.uris
- the database uris identifying documentsDocumentPage readMetadata(Transaction transaction, java.lang.String... uris)
DocumentPage.size()
method.transaction
- the transaction in which this read is participatinguris
- the database uris identifying documentsDocumentPage search(QueryDefinition querydef, long start)
QueryManager.search
but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
documents in each DocumentPage. If setMetadataCategories has
been called, populates metadata for each result in the format specified by
setNonDocumentFormat
.querydef
- the definition of query criteria and query optionsstart
- the offset of the first document in the page (where 1 is the first result)DocumentPage search(QueryDefinition querydef, long start, Transaction transaction)
QueryManager.search
but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
documents in each DocumentPage. If setMetadataCategories has
been called, populates metadata for each result in the format specified by
setNonDocumentFormat
.querydef
- the definition of query criteria and query optionsstart
- the offset of the first document in the page (where 1 is the first result)transaction
- an open transaction for matching documentsDocumentPage search(QueryDefinition querydef, long start, SearchReadHandle searchHandle)
QueryManager.search
but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
documents in each DocumentPage. If searchHandle is not null,
requests a search response and populates searchHandle with it. If setMetadataCategories has
been called, populates metadata for each result in the format specified by
setNonDocumentFormat
.querydef
- the definition of query criteria and query optionsstart
- the offset of the first document in the page (where 1 is the first result)searchHandle
- a handle for reading the search response which will include view types
specified by setSearchView
and format specified by
setNonDocumentFormat
DocumentPage search(QueryDefinition querydef, long start, SearchReadHandle searchHandle, Transaction transaction)
QueryManager.search(QueryDefinition, SearchReadHandle, long, Transaction)
but return complete documents via iterable DocumentPage. Retrieves up to getPageLength()
documents in each DocumentPage. If searchHandle is not null,
requests a search response and populates searchHandle with it. If setMetadataCategories has
been called, populates metadata for each result in the format specified by
setNonDocumentFormat
.querydef
- the definition of query criteria and query optionsstart
- the offset of the first document in the page (where 1 is the first result)searchHandle
- a handle for reading the search response which will include view types
specified by setSearchView
and format specified by
setNonDocumentFormat
transaction
- an open transaction for matching documentslong getPageLength()
search
search
void setPageLength(long length)
length
- the maximum number of records to return in a page from calls to
search
Format getNonDocumentFormat()
search
and
metadata available from DocumentPage.next().getMetadata(handle)
(assuming
setMetadataCategories
has been called
to request specific metadata). If setNonDocumentFormat has not been called,
the server default format will be used.void setNonDocumentFormat(Format nonDocumentFormat)
search
and
metadata available from DocumentPage.next().getMetadata(handle)
(assuming
setMetadataCategories
has been called
to request specific metadata). If setNonDocumentFormat is not called,
the server default format will be used.nonDocumentFormat
- the format to useQueryManager.QueryView getSearchView()
search
search
void setSearchView(QueryManager.QueryView view)
search
view
- the view types included in a SearchReadHandle populated by calls to
search
DocumentWriteSet newWriteSet()
void write(DocumentWriteSet writeSet)
writeSet
- the set of documents and metadata to writevoid write(DocumentWriteSet writeSet, ServerTransform transform)
writeSet
- the set of documents and metadata to writetransform
- a server transform to modify the contents of each documentvoid write(DocumentWriteSet writeSet, Transaction transaction)
writeSet
- the set of documents and metadata to writetransaction
- an open transaction under which the documents will be writtenvoid write(DocumentWriteSet writeSet, ServerTransform transform, Transaction transaction)
writeSet
- the set of documents and metadata to writetransform
- a server transform to modify the contents of each documenttransaction
- an open transaction under which the documents will be writtenvoid writeAs(java.lang.String docId, java.lang.Object content) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
ContentHandle
are registered.
Learn more about shortcut methodsdocId
- the URI identifier for the documentcontent
- an IO representation of the document contentResourceNotFoundException
ForbiddenUserException
FailedRequestException
void writeAs(java.lang.String docId, java.lang.Object content, ServerTransform transform) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
ContentHandle
are registered.
Learn more about shortcut methodsdocId
- the URI identifier for the documentcontent
- an IO representation of the document contenttransform
- a server transform to modify the document contentResourceNotFoundException
ForbiddenUserException
FailedRequestException
void writeAs(java.lang.String docId, DocumentMetadataWriteHandle metadataHandle, java.lang.Object content) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
ContentHandle
are registered.
Learn more about shortcut methodsdocId
- the URI identifier for the documentmetadataHandle
- a handle for writing the metadata of the documentcontent
- an IO representation of the document contentResourceNotFoundException
ForbiddenUserException
FailedRequestException
void writeAs(java.lang.String docId, DocumentMetadataWriteHandle metadataHandle, java.lang.Object content, ServerTransform transform) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
ContentHandle
are registered.
Learn more about shortcut methodsdocId
- the URI identifier for the documentmetadataHandle
- a handle for writing the metadata of the documentcontent
- an IO representation of the document contenttransform
- a server transform to modify the document contentResourceNotFoundException
ForbiddenUserException
FailedRequestException
void write(java.lang.String docId, W contentHandle) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
docId
- the URI identifier for the documentcontentHandle
- a handle for writing the content of the documentResourceNotFoundException
ForbiddenUserException
FailedRequestException
void write(java.lang.String docId, W contentHandle, ServerTransform transform) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
docId
- the URI identifier for the documentcontentHandle
- a handle for writing the content of the documenttransform
- a server transform to modify the document contentResourceNotFoundException
ForbiddenUserException
FailedRequestException
void write(DocumentDescriptor desc, W contentHandle) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
desc
- a descriptor for the URI identifier, format, and mimetype of the documentcontentHandle
- a handle for writing the content of the documentResourceNotFoundException
ForbiddenUserException
FailedRequestException
void write(DocumentDescriptor desc, W contentHandle, ServerTransform transform) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
desc
- a descriptor for the URI identifier, format, and mimetype of the documentcontentHandle
- a handle for writing the content of the documenttransform
- a server transform to modify the document contentResourceNotFoundException
ForbiddenUserException
FailedRequestException
void write(java.lang.String docId, DocumentMetadataWriteHandle metadataHandle, W contentHandle) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
docId
- the URI identifier for the documentmetadataHandle
- a handle for writing the metadata of the documentcontentHandle
- a handle for writing the content of the documentResourceNotFoundException
ForbiddenUserException
FailedRequestException
void write(java.lang.String docId, DocumentMetadataWriteHandle metadataHandle, W contentHandle, ServerTransform transform) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
docId
- the URI identifier for the documentmetadataHandle
- a handle for writing the metadata of the documentcontentHandle
- a handle for writing the content of the documenttransform
- a server transform to modify the document contentResourceNotFoundException
ForbiddenUserException
FailedRequestException
void write(DocumentDescriptor desc, DocumentMetadataWriteHandle metadataHandle, W contentHandle) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
desc
- a descriptor for the URI identifier, format, and mimetype of the documentmetadataHandle
- a handle for writing the metadata of the documentcontentHandle
- a handle for writing the content of the documentResourceNotFoundException
ForbiddenUserException
FailedRequestException
void write(DocumentDescriptor desc, DocumentMetadataWriteHandle metadataHandle, W contentHandle, ServerTransform transform) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
desc
- a descriptor for the URI identifier, format, and mimetype of the documentmetadataHandle
- a handle for writing the metadata of the documentcontentHandle
- a handle for writing the content of the documenttransform
- a server transform to modify the document contentResourceNotFoundException
ForbiddenUserException
FailedRequestException
void write(java.lang.String docId, W contentHandle, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
docId
- the URI identifier for the documentcontentHandle
- a handle for writing the content of the documenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
ForbiddenUserException
FailedRequestException
void write(java.lang.String docId, W contentHandle, ServerTransform transform, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
docId
- the URI identifier for the documentcontentHandle
- a handle for writing the content of the documenttransform
- a server transform to modify the document contenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
ForbiddenUserException
FailedRequestException
void write(DocumentDescriptor desc, W contentHandle, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
desc
- a descriptor for the URI identifier, format, and mimetype of the documentcontentHandle
- a handle for writing the content of the documenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
ForbiddenUserException
FailedRequestException
void write(DocumentDescriptor desc, W contentHandle, ServerTransform transform, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
desc
- a descriptor for the URI identifier, format, and mimetype of the documentcontentHandle
- a handle for writing the content of the documenttransform
- a server transform to modify the document contenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
ForbiddenUserException
FailedRequestException
void write(java.lang.String docId, DocumentMetadataWriteHandle metadataHandle, W contentHandle, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
docId
- the URI identifier for the documentmetadataHandle
- a handle for writing the metadata of the documentcontentHandle
- a handle for writing the content of the documenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
ForbiddenUserException
FailedRequestException
void write(java.lang.String docId, DocumentMetadataWriteHandle metadataHandle, W contentHandle, ServerTransform transform, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
docId
- the URI identifier for the documentmetadataHandle
- a handle for writing the metadata of the documentcontentHandle
- a handle for writing the content of the documenttransform
- a server transform to modify the document contenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
ForbiddenUserException
FailedRequestException
void write(DocumentDescriptor desc, DocumentMetadataWriteHandle metadataHandle, W contentHandle, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
desc
- a descriptor for the URI identifier, format, and mimetype of the documentmetadataHandle
- a handle for writing the metadata of the documentcontentHandle
- a handle for writing the content of the documenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
ForbiddenUserException
FailedRequestException
void write(DocumentDescriptor desc, DocumentMetadataWriteHandle metadataHandle, W contentHandle, ServerTransform transform, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
desc
- a descriptor for the URI identifier, format, and mimetype of the documentmetadataHandle
- a handle for writing the metadata of the documentcontentHandle
- a handle for writing the content of the documenttransform
- a server transform to modify the document contenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
ForbiddenUserException
FailedRequestException
void delete(java.lang.String docId) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
docId
- the URI identifier for the documentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
void delete(java.lang.String docId, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
docId
- the URI identifier for the documenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
void delete(java.lang.String... uris) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
uris
- the identifiers for the documents to deleteResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
void delete(Transaction transaction, java.lang.String... uris) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
transaction
- an open transactionuris
- the identifiers for the documents to deleteResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
void delete(DocumentDescriptor desc) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
desc
- a descriptor for the URI identifier, format, and mimetype of the documentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
void delete(DocumentDescriptor desc, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
desc
- a descriptor for the URI identifier, format, and mimetype of the documenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
DocumentDescriptor createAs(DocumentUriTemplate template, java.lang.Object content) throws ForbiddenUserException, FailedRequestException
ContentHandle
are registered.
Learn more about shortcut methodstemplate
- the template for constructing the document uricontent
- an IO representation of the document contentForbiddenUserException
FailedRequestException
DocumentDescriptor createAs(DocumentUriTemplate template, java.lang.Object content, ServerTransform transform) throws ForbiddenUserException, FailedRequestException
ContentHandle
are registered.
Learn more about shortcut methodstemplate
- the template for constructing the document uricontent
- an IO representation of the document contenttransform
- a server transform to modify the document contentForbiddenUserException
FailedRequestException
DocumentDescriptor createAs(DocumentUriTemplate template, DocumentMetadataWriteHandle metadataHandle, java.lang.Object content) throws ForbiddenUserException, FailedRequestException
ContentHandle
are registered.
Learn more about shortcut methodstemplate
- the template for constructing the document urimetadataHandle
- a handle for writing the metadata of the documentcontent
- an IO representation of the document contentForbiddenUserException
FailedRequestException
DocumentDescriptor createAs(DocumentUriTemplate template, DocumentMetadataWriteHandle metadataHandle, java.lang.Object content, ServerTransform transform) throws ForbiddenUserException, FailedRequestException
ContentHandle
are registered.
Learn more about shortcut methodstemplate
- the template for constructing the document urimetadataHandle
- a handle for writing the metadata of the documentcontent
- an IO representation of the document contenttransform
- a server transform to modify the document contentForbiddenUserException
FailedRequestException
DocumentDescriptor create(DocumentUriTemplate template, W contentHandle) throws ForbiddenUserException, FailedRequestException
template
- the template for constructing the document uricontentHandle
- a handle for writing the content of the documentForbiddenUserException
FailedRequestException
DocumentDescriptor create(DocumentUriTemplate template, W contentHandle, ServerTransform transform) throws ForbiddenUserException, FailedRequestException
template
- the template for constructing the document uricontentHandle
- a handle for writing the content of the documenttransform
- a server transform to modify the document contentForbiddenUserException
FailedRequestException
DocumentDescriptor create(DocumentUriTemplate template, W contentHandle, Transaction transaction) throws ForbiddenUserException, FailedRequestException
template
- the template for constructing the document uricontentHandle
- a handle for writing the content of the documenttransaction
- a open transaction under which the document may have been created or deletedForbiddenUserException
FailedRequestException
DocumentDescriptor create(DocumentUriTemplate template, W contentHandle, ServerTransform transform, Transaction transaction) throws ForbiddenUserException, FailedRequestException
template
- the template for constructing the document uricontentHandle
- a handle for writing the content of the documenttransform
- a server transform to modify the document contenttransaction
- a open transaction under which the document may have been created or deletedForbiddenUserException
FailedRequestException
DocumentDescriptor create(DocumentUriTemplate template, DocumentMetadataWriteHandle metadataHandle, W contentHandle) throws ForbiddenUserException, FailedRequestException
template
- the template for constructing the document urimetadataHandle
- a handle for writing the metadata of the documentcontentHandle
- a handle for writing the content of the documentForbiddenUserException
FailedRequestException
DocumentDescriptor create(DocumentUriTemplate template, DocumentMetadataWriteHandle metadataHandle, W contentHandle, ServerTransform transform) throws ForbiddenUserException, FailedRequestException
template
- the template for constructing the document urimetadataHandle
- a handle for writing the metadata of the documentcontentHandle
- a handle for writing the content of the documenttransform
- a server transform to modify the document contentForbiddenUserException
FailedRequestException
DocumentDescriptor create(DocumentUriTemplate template, DocumentMetadataWriteHandle metadataHandle, W contentHandle, Transaction transaction) throws ForbiddenUserException, FailedRequestException
template
- the template for constructing the document urimetadataHandle
- a handle for writing the metadata of the documentcontentHandle
- a handle for writing the content of the documenttransaction
- a open transaction under which the document may have been created or deletedForbiddenUserException
FailedRequestException
DocumentDescriptor create(DocumentUriTemplate template, DocumentMetadataWriteHandle metadataHandle, W contentHandle, ServerTransform transform, Transaction transaction) throws ForbiddenUserException, FailedRequestException
template
- the template for constructing the document urimetadataHandle
- a handle for writing the metadata of the documentcontentHandle
- a handle for writing the content of the documenttransform
- a server transform to modify the document contenttransaction
- a open transaction under which the document may have been created or deletedForbiddenUserException
FailedRequestException
void patchAs(java.lang.String docId, java.lang.Object patch) throws ForbiddenUserException, FailedRequestException
ContentHandle
are registered.
Learn more about shortcut methodsdocId
- the URI identifier for the documentpatch
- an IO representation of the patchForbiddenUserException
FailedRequestException
void patch(java.lang.String docId, DocumentPatchHandle patch)
docId
- the URI identifier for the documentpatch
- a handle for writing the modification to the document metadata or contentvoid patch(java.lang.String docId, DocumentPatchHandle patch, Transaction transaction)
docId
- the URI identifier for the documentpatch
- a handle for writing the modification to the document metadata or contenttransaction
- a open transactionvoid patch(DocumentDescriptor desc, DocumentPatchHandle patch)
desc
- a descriptor for the URI identifier, format, and mimetype of the documentpatch
- a handle for writing the modification to the document metadata or contentvoid patch(DocumentDescriptor desc, DocumentPatchHandle patch, Transaction transaction)
desc
- a descriptor for the URI identifier, format, and mimetype of the documentpatch
- a handle for writing the modification to the document metadata or contenttransaction
- a open transaction<T extends DocumentMetadataReadHandle> T readMetadata(java.lang.String docId, T metadataHandle) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of DocumentMetadataReadHandle to returndocId
- the URI identifier for the documentmetadataHandle
- a handle for reading the metadata of the documentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
<T extends DocumentMetadataReadHandle> T readMetadata(java.lang.String docId, T metadataHandle, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
T
- the type of DocumentMetadataReadHandle to returndocId
- the URI identifier for the documentmetadataHandle
- a handle for reading the metadata of the documenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
void writeMetadata(java.lang.String docId, DocumentMetadataWriteHandle metadataHandle) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
docId
- the URI identifier for the documentmetadataHandle
- a handle for writing the metadata of the documentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
void writeMetadata(java.lang.String docId, DocumentMetadataWriteHandle metadataHandle, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
docId
- the URI identifier for the documentmetadataHandle
- a handle for writing the metadata of the documenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
void writeDefaultMetadata(java.lang.String docId) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
docId
- the URI identifier for the documentResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
void writeDefaultMetadata(java.lang.String docId, Transaction transaction) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
docId
- the URI identifier for the documenttransaction
- a open transaction under which the document may have been created or deletedResourceNotFoundException
- if the document is not foundForbiddenUserException
FailedRequestException
Format getContentFormat()
void setContentFormat(Format format)
format
- the default format for documents supported by this document managerjava.util.Set<DocumentManager.Metadata> getMetadataCategories()
void setMetadataCategories(java.util.Set<DocumentManager.Metadata> categories)
categories
- the set of metadata categoriesvoid setMetadataCategories(DocumentManager.Metadata... categories)
categories
- the set of metadata categoriesvoid clearMetadataCategories()
ServerTransform getReadTransform()
void setReadTransform(ServerTransform transform)
transform
- the name of the transformServerTransform getWriteTransform()
void setWriteTransform(ServerTransform transform)
transform
- the name of the transformvoid startLogging(RequestLogger logger)
logger
- the logger that receives debugging outputvoid stopLogging()
Copyright © 2013-2018 MarkLogic Corporation.