ShareLinkId
A model for a 'share link' containing assets, storageKeys and a validity period. It uses features 'censhare:module.oc.sharelink.id' holding the ID and inner features 'censhare:module.oc.sharelink.validity-period' and 'censhare:module.oc.sharelink.description'.
implements: hash
bundle: standard portal bundle
since 2.1.4
A model for a 'share link' containing assets, storageKeys and a validity period. It uses features 'censhare:module.oc.sharelink.id' holding the ID and inner features 'censhare:module.oc.sharelink.validity-period' and 'censhare:module.oc.sharelink.description'.
Defined hash keys
downloadDescription ↦ String
since 2.1.4
Returns value from feature 'censhare:module.oc.sharelink.description'
downloadDownloads ↦ DownloadsModel
since 2.1.4
Returns the downloads model of this shared link
downloadExpires ↦ boolean
since 2.3.15
true if a expiry date is set
downloadExpiry ↦ String
since 2.1.4
Returns the duration until link expires (translated by 'shareLink.expiry-XXX')
downloadId ↦ String
since 2.1.4
Returns the ID of this sharelink ('censhare:module.oc.sharelink.id'@valueString)
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)
Permission Verbs used
download.description
since 2.1.4 'download.description' - guards requests to '→downloadDescription'
download.downloads
since 2.1.4 'download.downloads' - guards requests to '→downloadDownloads'
download.expires
since 2.3.15 'download.expiry' - guards requests to '→downloadExpires'
download.expiry
since 2.1.4 'download.expiry' - guards requests to '→downloadExpiry'
download.id
since 2.1.4 'download.id' - guards requests to '→downloadId'