mdb

UB.virtualStores. mdb

Virtual 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
  • delete operation is forbidden since models must be under version control

    Used in:

  • ubm_form for store form def & js inside /public/forms

  • ubm_diagrams for store diagram inside /public/erdiagrams
  • e.t.c.

Constructor

new mdb()

Extends

Methods

fillResponse() static

saveContentToTempStore() static

loadContentFromTempStore() static

Must return true in case no exception load content and body from temporary file in the this.tempFolder'

See UB.virtualStores.Custom#loadContentFromTempStore

loadBodyFromEntity() static

moveToArchive() static

Do nothing here - just delete content. Content itself must be under external version control system (SVN, fossil)

deleteContent() static

Do nothing here - content must be under external version control system (SVN, GIT, fossil)

moveToPermanentStore() static