Class ObjectStorageAttachmentDataFileSystem

  • All Implemented Interfaces:
    AttachmentDataFileSystem

    public class ObjectStorageAttachmentDataFileSystem
    extends Object
    implements AttachmentDataFileSystem
    An implementation of AttachmentDataFileSystem which stores the attachment data in an object storage service (for example AWS S3), using the FileStore.Path API.

    The files are stored within a hierarchical prefix structure that incorporates an attachment IDs to which the attachment data belongs to. Data corresponding to each version of the attachment are stored, as are different "streams" of data for each version (see AttachmentDataStreamType).

    The prefix structure is described by the following pattern: "h1/h2/attachmentId/attachmentFile"

    where h1, h2 are hashcodes generated from the attachment id and attachmentFile represents a combination of the attachment id, version and the data stream type. Attachments AttachmentDataStreamType.RAW_BINARY format has a filename that consists of the attachment id and the version separated by a dot (eg. "123456.1").

    Since:
    8.1.0