Assetsmodule

assets. Assetsmodule

Handling of assets

Constructor

new Assetsmodule()

Source:

Extends

  • AbstractApiModule

Members

assetTypes

Source:
Store of all registered asset types

Methods

createFsWrapper(assetData) → {AbstractAsset}

Source:
Creates an asset wrapper for file system operations
Parameters:
Name Type Description
assetData object The database data
Returns:
Type
AbstractAsset

(async) delete()

Source:

(async) deleteMany()

Source:

(async) init()

Source:

(async) insert()

Source:

(async) onRequest(req)

Source:
Handles incoming file uploads
Parameters:
Name Type Description
req external:ExpressRequest

(async) performHousekeeping() → {Promise}

Source:
Returns:
Type
Promise

registerAssetType(assetClass)

Source:
Registers a new asset repository as an assets store
Parameters:
Name Type Description
assetClass AbstractAsset The AbstractAsset class

(async) serveAssetHandler(req, res, next)

Source:
Serves a single asset or thumbnail
Parameters:
Name Type Description
req external:ExpressRequest
res external:ExpressResponse
next function

(async) setValues()

Source:

(async) update()

Source: