Interface IDocumentStorage
Namespace: Casewhere.Runtime.Interfaces
Assembly: Casewhere.Runtime.dll
This is abstraction to manage the storage of casewhere document. Based on the physical storage we have specific implementation for this.
public interface IDocumentStorage
Extension Methods
ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<IDocumentStorage>(IDocumentStorage)
Methods
GetDocumentById(Guid)
Get the data of document
byte[] GetDocumentById(Guid documentId)
Parameters
documentId
Guid
Document Id
Returns
byte[]
A stream data of document
GetDocumentMetadata(Guid)
Get document metadata with document id
DocumentMetadata GetDocumentMetadata(Guid documentId)
Parameters
documentId
Guid
Document Id
Returns
DocumentMetadata
Document metadata of document
Store(DocumentMetadata, byte[])
Store the document with document metata and data
string Store(DocumentMetadata metadata, byte[] data)
Parameters
metadata
DocumentMetadata
data
byte[]
The data of document