Skip to main content
Skip table of contents

ShareLinkDownload

A model for downloads resolved by a ShareLinkId

implements: hash
bundle: standard portal bundle
since 2.1.4
A model for downloads resolved by a ShareLinkId

Defined hash keys

hasLock.<String:hashKey> ↦ Boolean
since 5.2.0
Check if the value accessed by the hash-key 'hashKey' within this model is secured by an active lock by permission rights management

  • Example:
    model.hasLock.elem - is elem in model guarded by an active permission lock?
    article.hasLock.text - Returns if there is a permission lock for text configured in 'article' ? (In this example 'article' is of of type ArticleModel)

isLocked.<String:hashKey> ↦ Boolean
since 5.2.0
Check if the value accessed by the hash-key 'hashKey' within this model is is locked for current user by permission rights management

  • Example:
    model.isLocked.elem -- is value for elem in model locked for current logged-in user?
    article.isLocked.text -- Returns if the value for 'text' within 'article' is locked (not accessible) for current user. (In this example 'article' is of of type ArticleModel)

mpCurrency ↦ string
since 2.0.0
get the users currency

mpDescription ↦ string
since 2.0.0
get the localized description of underlying asset ('censhare:description')

mpDownloads ↦ sequence<MediaPortalDownloadInfo>
since 2.0.0
get a list of download-able items

mpListImage ↦ string
since 2.0.0
get the configured image storage key to use in list views

mpName ↦ string
since 2.2.0
get the localized name of underlying asset ('censhare:name') with fallback to name attribute

mpPrice ↦ number
since 2.0.0
get the price amount

mpTileImage ↦ string
since 2.0.0
get the configured image storage key to use in tile views

mpUsageRights ↦ string
since 2.1.49
get the usage rights feature value underlying asset ('censhare:usage-rights')

mpUsageRightsChannels ↦ sequence<MediaPortalUsageRights>
since 2.1.49
get a list of all channels

mpUsageRightsDesc ↦ string
since 2.1.49
get the usage rights localized description of underlying asset ('censhare:description')

mpUsageRightsKey ↦ string
since 2.1.49
get the usage rights feature key underlying asset('censhare:usage-rights')

selected ↦ boolean
since 2.1.4
Return included files are all selected.

Delegates other keys to: MediaPortalDownloadInfo

Permission Verbs used

mediaportal.currency
since 2.0.0 'mediaportal.currency' - guards requests to '→mpCurrency'

mediaportal.downloads
since 2.0.0 'mediaportal.downloads' - guards requests to '→mpDownloads'

mediaportal.listImage
since 2.0.0 'mediaportal.listImage' - guards requests to '→mpListImage'

mediaportal.mpDescription
since 2.0.0 'mediaportal.mpDescription' - guards requests to '→mpDescription'

mediaportal.mpName
since 2.2.0 'mediaportal.mpName' - guards requests to '→mpName'

mediaportal.mpUsageRights
since 2.1.49 'mediaportal.mpUsageRights' - guards requests to '→mpUsageRights'

mediaportal.mpUsageRightsChannels
since 2.1.49 'mediaportal.mpUsageRightsChannels' - guards requests to '→mpUsageRightsChannels'

mediaportal.mpUsageRightsDesc
since 2.1.49 'mediaportal.mpUsageRightsDesc' - guards requests to '→mpUsageRightsDesc'

mediaportal.mpUsageRightsKey
since 2.1.49 'mediaportal.mpUsageRightsKey' - guards requests to '→mpUsageRightsKey'

mediaportal.price
since 2.0.0 'mediaportal.price' - guards requests to '→mpPrice'

mediaportal.tileImage
since 2.0.0 'mediaportal.tileImage' - guards requests to '→mpTileImage'

Methods

mpDetailPageStorage(String:aspectRatio (optional), String:alias (optional))self
since 2.1.71
Allow switching aspect ratio and or the used alias of underlying image representing media.
As side-effect a new image model is chained providing adapted url.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.