Blob store implementation for storing content inside models public folders. Key conceptions:

  • relative path created in format modelName|relativePathFromModelDir to hide real file place from client
  • OS user temp folder used for store temporary content

Used in:

  • ubm_form for store form def & js inside /public/forms
  • ubm_diagrams for store diagram inside /public/erdiagrams
  • ubs_report for store report template inside /public/reports
  • e.t.c.

# new MdbBlobStore (storeConfigObject, appInstanceServerApp, sessionInstanceUBSession)

Arguments:

Methods

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

Fill HTTP response for getDocument request

Arguments:

# getContent (requestBlobStoreRequest, blobInfoBlobStoreItem, optionsoptObject) → String | ArrayBuffer instance

Retrieve BLOB content from blob store.

Arguments:
  • request: BlobStoreRequest
  • blobInfo: BlobStoreItem

    JSON retrieved from a DB.

  • options: Object
    • encodingString | Null

      Default to 'bin'. Possible values: 'bin'|'ascii'|'utf-8' If undefined UB will send query to entity anf get it from DB. At last one parameter {store: storeName} should be defined to prevent loading actual JSON from DB

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

Move content defined by dirtyItem from temporary to permanent store. In case oldItem is present store implementation & parameters should be taken from oldItem.store. Return a new attribute content which describe a place of BLOB in permanent store

Arguments:

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

Arguments: