public interface TemporalDocumentManager<R extends AbstractReadHandle,W extends AbstractWriteHandle>
| Modifier and Type | Interface and Description |
|---|---|
static class |
TemporalDocumentManager.ProtectionLevel
Various protection levels to prevent updation/deletion and wiping of temporal documents.
|
| Modifier and Type | Method and Description |
|---|---|
TemporalDescriptor |
create(DocumentUriTemplate template,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
ServerTransform transform,
Transaction transaction,
String temporalCollection)
Just like
create but create document in a temporalCollection, which will enforce all the rules of bitemporal data management. |
TemporalDescriptor |
create(DocumentUriTemplate template,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
ServerTransform transform,
Transaction transaction,
String temporalCollection,
Calendar systemTime)
Just like
create but create document at a specific system time |
TemporalDescriptor |
delete(DocumentDescriptor desc,
Transaction transaction,
String temporalCollection)
Just like
delete but delete document in a temporalCollection, which will enforce all the rules of bitemporal data management. |
TemporalDescriptor |
delete(DocumentDescriptor desc,
Transaction transaction,
String temporalCollection,
Calendar systemTime)
Just like
delete but delete document at a specified system time |
TemporalDescriptor |
delete(String docId,
Transaction transaction,
String temporalCollection)
Just like
delete but delete document in a temporalCollection, which will enforce all the rules of bitemporal data management. |
TemporalDescriptor |
delete(String docId,
Transaction transaction,
String temporalCollection,
Calendar systemTime)
Just like
delete but delete document at a specified system time |
void |
patch(String uri,
String temporalCollection,
DocumentPatchHandle patch)
Modifies the content of a temporal JSON or XML document in the temporal collection.
|
void |
patch(String uri,
String temporalCollection,
DocumentPatchHandle patch,
Transaction transaction)
Modifies the content of a temporal JSON or XML document in the temporal collection.
|
void |
patch(String uri,
String temporalDocumentURI,
String temporalCollection,
String sourceDocumentURI,
DocumentPatchHandle patch)
Patches a temporal document by taking the content from the sourceDocumentURI present in the temporalDocumentURI collection with the patch handle and creates a new version identified by the uri in the temporalCollection.
|
void |
patch(String uri,
String temporalDocumentURI,
String temporalCollection,
String sourceDocumentURI,
DocumentPatchHandle patch,
Transaction transaction)
Patches a temporal document by taking the content from the sourceDocumentURI present in the temporalDocumentURI collection with the patch handle and creates a new version identified by the uri in the temporalCollection.
|
void |
protect(String temporalDocumentURI,
String temporalCollection,
TemporalDocumentManager.ProtectionLevel level,
Calendar expiryTime)
Protects the temporal document from document update, wipe or delete till the expiryTime provided
|
void |
protect(String temporalDocumentURI,
String temporalCollection,
TemporalDocumentManager.ProtectionLevel level,
Calendar expiryTime,
String archivePath)
Protects the temporal document from document update, wipe or delete till the expiryTime provided and saves the serialized copy of the current version in the path given
|
void |
protect(String temporalDocumentURI,
String temporalCollection,
TemporalDocumentManager.ProtectionLevel level,
Calendar expiryTime,
String archivePath,
Transaction transaction)
Protects the temporal document from document update, wipe or delete till the expiryTime provided and saves the serialized copy of the current version in the path given
|
void |
protect(String temporalDocumentURI,
String temporalCollection,
TemporalDocumentManager.ProtectionLevel level,
Calendar expiryTime,
Transaction transaction)
Protects the temporal document from document update, wipe or delete till the expiryTime provided
|
void |
protect(String temporalDocumentURI,
String temporalCollection,
TemporalDocumentManager.ProtectionLevel level,
Duration duration)
Protects the temporal document from document update, wipe or delete for the specified duration.
|
void |
protect(String temporalDocumentURI,
String temporalCollection,
TemporalDocumentManager.ProtectionLevel level,
Duration duration,
String archivePath)
Protects the temporal document from document update, wipe or delete till the expiryTime provided and saves the serialized copy of the current version in the path given
|
void |
protect(String temporalDocumentURI,
String temporalCollection,
TemporalDocumentManager.ProtectionLevel level,
Duration duration,
String archivePath,
Transaction transaction)
Protects the temporal document from document update, wipe or delete till the expiryTime provided and saves the serialized copy of the current version in the path given
|
void |
protect(String temporalDocumentURI,
String temporalCollection,
TemporalDocumentManager.ProtectionLevel level,
Duration duration,
Transaction transaction)
Protects the temporal document from document update, wipe or delete for the specified duration.
|
void |
wipe(String temporalDocumentURI,
String temporalCollection)
Removes all the versions of the temporal document specified by the temporal document logical URI in the temporalCollection
|
void |
wipe(String temporalDocumentURI,
Transaction transaction,
String temporalCollection)
Removes all the versions of the temporal document specified by the temporal document logical URI in the temporalCollection
|
TemporalDescriptor |
write(DocumentDescriptor desc,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
ServerTransform transform,
Transaction transaction,
String temporalCollection)
Just like
write but write document in a temporalCollection, which will enforce all the rules of bitemporal data management. |
TemporalDescriptor |
write(DocumentDescriptor desc,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
ServerTransform transform,
Transaction transaction,
String temporalCollection,
Calendar systemTime)
Just like
write but write document at a specific system time |
TemporalDescriptor |
write(DocumentDescriptor desc,
String temporalDocumentURI,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
ServerTransform transform,
Transaction transaction,
String temporalCollection)
Just like
write but creates a new version of the document in the logical temporal collection URI passed as argument and names the new version of the document as the URI in the Document descriptor |
TemporalDescriptor |
write(DocumentDescriptor desc,
String temporalDocumentURI,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
ServerTransform transform,
Transaction transaction,
String temporalCollection,
Calendar systemTime)
Just like
write but writes document at a specific system time |
void |
write(DocumentWriteSet writeSet,
ServerTransform transform,
Transaction transaction,
String temporalCollection)
Just like
write but create document in a temporalCollection, which will enforce all the rules of bitemporal data management. |
TemporalDescriptor |
write(String docId,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
ServerTransform transform,
Transaction transaction,
String temporalCollection)
Just like
write but write document in a temporalCollection, which will enforce all the rules of bitemporal data management. |
TemporalDescriptor |
write(String docId,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
ServerTransform transform,
Transaction transaction,
String temporalCollection,
Calendar systemTime)
Just like
write but write document at a specific system time |
TemporalDescriptor |
write(String uri,
String temporalDocumentURI,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
ServerTransform transform,
Transaction transaction,
String temporalCollection)
Just like
write but creates a new version of the document in the logical temporal collection URI passed as argument and names the new version of the document as the docId passed. |
TemporalDescriptor |
write(String uri,
String temporalDocumentURI,
DocumentMetadataWriteHandle metadataHandle,
W contentHandle,
ServerTransform transform,
Transaction transaction,
String temporalCollection,
Calendar systemTime)
Just like
write but writes document at a specific system time |
TemporalDescriptor create(DocumentUriTemplate template, DocumentMetadataWriteHandle metadataHandle, W contentHandle, ServerTransform transform, Transaction transaction, String temporalCollection) throws ForbiddenUserException, FailedRequestException
Just like create but create document in a temporalCollection, which will enforce all the rules of bitemporal data management.
template - the template for constructing the document urimetadataHandle - a handle for writing the metadata of the documentcontentHandle - an IO representation of the document contenttransform - a server transform to modify the document contenttransaction - an open transaction under which the document may have been created or deletedtemporalCollection - the name of the temporal collection existing in the database into which this document should be writtenForbiddenUserExceptionFailedRequestExceptionTemporalDescriptor write(DocumentDescriptor desc, DocumentMetadataWriteHandle metadataHandle, W contentHandle, ServerTransform transform, Transaction transaction, String temporalCollection) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
Just like write but write document in a temporalCollection, which will enforce all the rules of bitemporal data management.
desc - a descriptor for the URI identifier, format, and mimetype of the documentmetadataHandle - a handle for writing the metadata of the documentcontentHandle - an IO representation of the document contenttransform - a server transform to modify the document contenttransaction - an open transaction under which the document may have been created or deletedtemporalCollection - the name of the temporal collection existing in the database into which this document should be writtenResourceNotFoundExceptionForbiddenUserExceptionFailedRequestExceptionTemporalDescriptor write(String docId, DocumentMetadataWriteHandle metadataHandle, W contentHandle, ServerTransform transform, Transaction transaction, String temporalCollection) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
Just like write but write document in a temporalCollection, which will enforce all the rules of bitemporal data management.
docId - the URI identifier for the documentmetadataHandle - a handle for writing the metadata of the documentcontentHandle - an IO representation of the document contenttransform - a server transform to modify the document contenttransaction - an open transaction under which the document may have been created or deletedtemporalCollection - the name of the temporal collection existing in the database into which this document should be writtenResourceNotFoundExceptionForbiddenUserExceptionFailedRequestExceptionTemporalDescriptor delete(DocumentDescriptor desc, Transaction transaction, String temporalCollection) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
Just like delete but delete document in a temporalCollection, which will enforce all the rules of bitemporal data management.
desc - a descriptor for the URI identifier, format, and mimetype of the documenttransaction - an open transaction under which the document may have been created or deletedtemporalCollection - the name of the temporal collection existing in the database in which this document should be marked as deletedResourceNotFoundExceptionForbiddenUserExceptionFailedRequestExceptionTemporalDescriptor delete(String docId, Transaction transaction, String temporalCollection) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
Just like delete but delete document in a temporalCollection, which will enforce all the rules of bitemporal data management.
docId - the URI identifier for the documenttransaction - an open transaction under which the document may have been created or deletedtemporalCollection - the name of the temporal collection existing in the database in which this document should be marked as deletedResourceNotFoundExceptionForbiddenUserExceptionFailedRequestExceptionTemporalDescriptor create(DocumentUriTemplate template, DocumentMetadataWriteHandle metadataHandle, W contentHandle, ServerTransform transform, Transaction transaction, String temporalCollection, Calendar systemTime) throws ForbiddenUserException, FailedRequestException
Just like create but create document at a specific system time
template - the template for constructing the document urimetadataHandle - a handle for writing the metadata of the documentcontentHandle - an IO representation of the document contenttransform - a server transform to modify the document contenttransaction - an open transaction under which the document may have been created or deletedtemporalCollection - the name of the temporal collection existing in the database into which this document should be writtensystemTime - the application-specified system time with which this document will be markedForbiddenUserExceptionFailedRequestExceptionTemporalDescriptor write(DocumentDescriptor desc, DocumentMetadataWriteHandle metadataHandle, W contentHandle, ServerTransform transform, Transaction transaction, String temporalCollection, Calendar systemTime) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
Just like write but write document at a specific system time
desc - a descriptor for the URI identifier, format, and mimetype of the documentmetadataHandle - a handle for writing the metadata of the documentcontentHandle - an IO representation of the document contenttransform - a server transform to modify the document contenttransaction - an open transaction under which the document may have been created or deletedtemporalCollection - the name of the temporal collection existing in the database into which this document should be writtensystemTime - the application-specified system time with which this document will be markedResourceNotFoundExceptionForbiddenUserExceptionFailedRequestExceptionTemporalDescriptor write(String docId, DocumentMetadataWriteHandle metadataHandle, W contentHandle, ServerTransform transform, Transaction transaction, String temporalCollection, Calendar systemTime) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
Just like write but write document at a specific system time
docId - the URI identifier for the documentmetadataHandle - a handle for writing the metadata of the documentcontentHandle - an IO representation of the document contenttransform - a server transform to modify the document contenttransaction - an open transaction under which the document may have been created or deletedtemporalCollection - the name of the temporal collection existing in the database into which this document should be writtensystemTime - the application-specified system time with which this document will be markedResourceNotFoundExceptionForbiddenUserExceptionFailedRequestExceptionvoid write(DocumentWriteSet writeSet, ServerTransform transform, Transaction transaction, String temporalCollection)
Just like write but create document in a temporalCollection, which will enforce all the rules of bitemporal data management.
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 writtentemporalCollection - the name of the temporal collection existing in the database into which this document should be writtenTemporalDescriptor write(DocumentDescriptor desc, String temporalDocumentURI, DocumentMetadataWriteHandle metadataHandle, W contentHandle, ServerTransform transform, Transaction transaction, String temporalCollection)
Just like write but creates a new version of the document in the logical temporal collection URI passed as argument and names the new version of the document as the URI in the Document descriptor
desc - a descriptor for the version URI identifier, format, and mimetype of the documenttemporalDocumentURI - the logical temporal document collection URI of the documentmetadataHandle - a handle for writing the metadata of the documentcontentHandle - an IO representation of the document contenttransform - a server transform to modify the document contenttransaction - an open transaction under which the document may have been created or deletedtemporalCollection - the name of the temporal collection existing in the database into which this document should be writtenTemporalDescriptor write(String uri, String temporalDocumentURI, DocumentMetadataWriteHandle metadataHandle, W contentHandle, ServerTransform transform, Transaction transaction, String temporalCollection)
Just like write but creates a new version of the document in the logical temporal collection URI passed as argument and names the new version of the document as the docId passed.
uri - the version URI identifier for the documenttemporalDocumentURI - the logical temporal document collection URI of the documentmetadataHandle - a handle for writing the metadata of the documentcontentHandle - an IO representation of the document contenttransform - a server transform to modify the document contenttransaction - an open transaction under which the document may have been created or deletedtemporalCollection - the name of the temporal collection existing in the database into which this document should be writtenTemporalDescriptor write(String uri, String temporalDocumentURI, DocumentMetadataWriteHandle metadataHandle, W contentHandle, ServerTransform transform, Transaction transaction, String temporalCollection, Calendar systemTime)
Just like write but writes document at a specific system time
uri - the version URI identifier for the documenttemporalDocumentURI - the logical temporal document collection URI of the documentmetadataHandle - a handle for writing the metadata of the documentcontentHandle - an IO representation of the document contenttransform - a server transform to modify the document contenttransaction - an open transaction under which the document may have been created or deletedtemporalCollection - the name of the temporal collection existing in the database into which this document should be writtensystemTime - the application-specified system time with which this document will be markedTemporalDescriptor write(DocumentDescriptor desc, String temporalDocumentURI, DocumentMetadataWriteHandle metadataHandle, W contentHandle, ServerTransform transform, Transaction transaction, String temporalCollection, Calendar systemTime)
Just like write but writes document at a specific system time
desc - a descriptor for the version URI identifier, format, and mimetype of the documenttemporalDocumentURI - the logical temporal document collection URI of the documentmetadataHandle - a handle for writing the metadata of the documentcontentHandle - an IO representation of the document contenttransform - a server transform to modify the document contenttransaction - an open transaction under which the document may have been created or deletedtemporalCollection - the name of the temporal collection existing in the database into which this document should be writtensystemTime - the application-specified system time with which this document will be markedTemporalDescriptor delete(DocumentDescriptor desc, Transaction transaction, String temporalCollection, Calendar systemTime) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
Just like delete but delete document at a specified system time
desc - a descriptor for the URI identifier, format, and mimetype of the documenttransaction - an open transaction under which the document may have been created or deletedtemporalCollection - the name of the temporal collection existing in the database in which this document should be marked as deletedsystemTime - the application-specified system time with which this document will be markedResourceNotFoundExceptionForbiddenUserExceptionFailedRequestExceptionTemporalDescriptor delete(String docId, Transaction transaction, String temporalCollection, Calendar systemTime) throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
Just like delete but delete document at a specified system time
docId - the URI identifier for the documenttransaction - an open transaction under which the document may have been created or deletedtemporalCollection - the name of the temporal collection existing in the database in which this document should be marked as deletedsystemTime - the application-specified system time with which this document will be markedResourceNotFoundExceptionForbiddenUserExceptionFailedRequestExceptionvoid wipe(String temporalDocumentURI, Transaction transaction, String temporalCollection)
Removes all the versions of the temporal document specified by the temporal document logical URI in the temporalCollection
temporalDocumentURI - the logical temporal document URI of the document to be wipedtransaction - an open transactiontemporalCollection - the name of the temporal collection existing in the database from which this temporal document should be wipedvoid wipe(String temporalDocumentURI, String temporalCollection)
Removes all the versions of the temporal document specified by the temporal document logical URI in the temporalCollection
temporalDocumentURI - the logical temporal document URI of the document to be wipedtemporalCollection - the name of the temporal collection existing in the database from which this temporal document should be wipedvoid protect(String temporalDocumentURI, String temporalCollection, TemporalDocumentManager.ProtectionLevel level, Calendar expiryTime)
Protects the temporal document from document update, wipe or delete till the expiryTime provided
temporalDocumentURI - the logical temporal document URI of the document to be protectedtemporalCollection - the name of the temporal collection which contains the temporal documentlevel - the Protection level acquired - NODELETE, NOWIPE or NOUPDATE. Default value is NODELETEexpiryTime - the exact date time when the document protection expiresvoid protect(String temporalDocumentURI, String temporalCollection, TemporalDocumentManager.ProtectionLevel level, Calendar expiryTime, String archivePath)
Protects the temporal document from document update, wipe or delete till the expiryTime provided and saves the serialized copy of the current version in the path given
temporalDocumentURI - the logical temporal document URI of the document to be protectedtemporalCollection - the name of the temporal collection which contains the temporal documentlevel - the Protection level acquired - NODELETE, NOWIPE or NOUPDATE. Default value is NODELETEexpiryTime - the exact date time when the document protection expiresarchivePath - File path to save a serialized copy of the current version of the documentvoid protect(String temporalDocumentURI, String temporalCollection, TemporalDocumentManager.ProtectionLevel level, Duration duration)
Protects the temporal document from document update, wipe or delete for the specified duration.
temporalDocumentURI - the logical temporal document URI of the document to be protectedtemporalCollection - the name of the temporal collection which contains the temporal documentlevel - the Protection level acquired - NODELETE, NOWIPE, NOUPDATE. Default value is NODELETEduration - the duration during which the document is protectedvoid protect(String temporalDocumentURI, String temporalCollection, TemporalDocumentManager.ProtectionLevel level, Duration duration, String archivePath)
Protects the temporal document from document update, wipe or delete till the expiryTime provided and saves the serialized copy of the current version in the path given
temporalDocumentURI - the logical temporal document URI of the document to be protectedtemporalCollection - the name of the temporal collection which contains the temporal documentlevel - the Protection level acquired - NODELETE, NOWIPE, NOUPDATE. Default value is NODELETEduration - the duration during which the document is protectedarchivePath - File path to save a serialized copy of the current version of the documentvoid protect(String temporalDocumentURI, String temporalCollection, TemporalDocumentManager.ProtectionLevel level, Duration duration, Transaction transaction)
Protects the temporal document from document update, wipe or delete for the specified duration.
temporalDocumentURI - the logical temporal document URI of the document to be protectedtemporalCollection - the name of the temporal collection which contains the temporal documentlevel - the Protection level acquired - NODELETE, NOWIPE, NOUPDATE. Default value is NODELETEduration - the duration during which the document is protectedtransaction - an open transactionvoid protect(String temporalDocumentURI, String temporalCollection, TemporalDocumentManager.ProtectionLevel level, Calendar expiryTime, Transaction transaction)
Protects the temporal document from document update, wipe or delete till the expiryTime provided
temporalDocumentURI - the logical temporal document URI of the document to be protectedtemporalCollection - the name of the temporal collection which contains the temporal documentlevel - the Protection level acquired - NODELETE, NOWIPE or NOUPDATE. Default value is NODELETEexpiryTime - the exact date time when the document protection expirestransaction - an open transactionvoid protect(String temporalDocumentURI, String temporalCollection, TemporalDocumentManager.ProtectionLevel level, Duration duration, String archivePath, Transaction transaction)
Protects the temporal document from document update, wipe or delete till the expiryTime provided and saves the serialized copy of the current version in the path given
temporalDocumentURI - the logical temporal document URI of the document to be protectedtemporalCollection - the name of the temporal collection which contains the temporal documentlevel - the Protection level acquired - NODELETE, NOWIPE, NOUPDATE. Default value is NODELETEduration - the duration during which the document is protectedarchivePath - File path to save a serialized copy of the current version of the documenttransaction - an open transactionvoid protect(String temporalDocumentURI, String temporalCollection, TemporalDocumentManager.ProtectionLevel level, Calendar expiryTime, String archivePath, Transaction transaction)
Protects the temporal document from document update, wipe or delete till the expiryTime provided and saves the serialized copy of the current version in the path given
temporalDocumentURI - the logical temporal document URI of the document to be protectedtemporalCollection - the name of the temporal collection which contains the temporal documentlevel - the Protection level acquired - NODELETE, NOWIPE or NOUPDATE. Default value is NODELETEexpiryTime - the exact date time when the document protection expiresarchivePath - File path to save a serialized copy of the current version of the documenttransaction - an open transactionvoid patch(String uri, String temporalCollection, DocumentPatchHandle patch)
Modifies the content of a temporal JSON or XML document in the temporal collection.
uri - the URI identifier for the documenttemporalCollection - the name of the temporal collection which contains the temporal document to be patched.patch - a handle definition of what to patch in the documentvoid patch(String uri, String temporalCollection, DocumentPatchHandle patch, Transaction transaction)
Modifies the content of a temporal JSON or XML document in the temporal collection.
uri - the URI identifier for the documenttemporalCollection - the name of the temporal collection which contains the temporal document to be patched.patch - a handle definition of what to patch in the documenttransaction - an open transactionvoid patch(String uri, String temporalDocumentURI, String temporalCollection, String sourceDocumentURI, DocumentPatchHandle patch)
Patches a temporal document by taking the content from the sourceDocumentURI present in the temporalDocumentURI collection with the patch handle and creates a new version identified by the uri in the temporalCollection.
uri - the new version URI identifier for the documenttemporalDocumentURI - the logical temporal document URItemporalCollection - the name of the temporal collection which contains the temporal document to be patched.sourceDocumentURI - the URI of the document to be used as the source of the patchpatch - a handle definition of what to patch in the documentvoid patch(String uri, String temporalDocumentURI, String temporalCollection, String sourceDocumentURI, DocumentPatchHandle patch, Transaction transaction)
Patches a temporal document by taking the content from the sourceDocumentURI present in the temporalDocumentURI collection with the patch handle and creates a new version identified by the uri in the temporalCollection.
uri - the new version URI identifier for the documenttemporalDocumentURI - the logical temporal document URItemporalCollection - the name of the temporal collection which contains the temporal document to be patched.sourceDocumentURI - the URI of the document to be used as the source of the patchpatch - a handle definition of what to patch in the documenttransaction - an open transactionCopyright © 2013-2017 MarkLogic Corporation.