# new BlobStoreCustom (storeConfigObject, appInstanceServerApp, sessionInstanceUBSession)

Arguments:

Members

# App : ServerApp instance

# config instance

Store parameters as defined in ubConfig

# historyDepth : number instance

How many previous revision is stored

# name instance

Name of store (from app config)

# Session : UBSession instance

# tempFolder : String instance

Path to temp folder

Methods

# validateFileName (fn) static

validate file name contains only alphanumeric characters, -, _, . and space and not contains ..

Arguments:
  • fn:

# doArchive (attributeUBEntityAttribute, IDNumber, blobInfoBlobStoreItem) → BlobStoreItem instance

Do something with BLOB content during archiving. For example - move to slow drive etc. Default implementation do nothing.

Arguments:

# doDeletion (attributeUBEntityAttribute, IDNumber, blobInfoBlobStoreItem) instance

Delete persisted BLOB content

Arguments:

# fillResponse (requestParamsBlobStoreRequest, blobInfoBlobStoreItem, reqTHTTPRequest, respTHTTPResponse, preventChangeRespOnErroroptboolean) → Boolean instance

Fill HTTP response for getDocument request. Sets resp to 404 status if content not found.

Arguments:

# getContent (requestBlobStoreRequest, blobInfoBlobStoreItem, optionsoptObject) → String | UBMail.TubSendMailAttachKind.Buffer | ArrayBuffer | null instance

Retrieve BLOB content from blob store.

Arguments:

# getContentFilePath (requestBlobStoreRequest, blobInfoBlobStoreItem) → String instance

Returns full path to the file with BLOB content

Arguments:

# getTempFileName (requestBlobStoreRequest) → string instance

Get path to temporary file and it's name

Arguments:

# persist (attributeUBEntityAttribute, IDNumber, dirtyItemBlobStoreItem, newRevisionnumber) → BlobStoreItem | null instance

Move content defined by dirtyItem from temporary to permanent store. Return a new attribute content which describe a place of BLOB in permanent store

Arguments:

# saveContentToTempStore (requestBlobStoreRequest, attributeUBEntityAttribute, contentArrayBuffer) → BlobStoreItem instance

Implementation must save file content to temporary store

Arguments: