AssetMessagesModel
Model for assets; raises access to 'messages' related with them.
implements: hash
bundle: standard information structure (sismodel)
since 5.2.0
Model for assets; raises access to 'messages' related with them.
Model for assets.
Defined hash keys
commentsSettings ↦ String
since 5.2.0
get online comment settings
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)
isAnonymousUserAlreadyComment ↦ String
since 5.2.0
check in cookies if anonymous user already comment
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)
messages ↦ QueryResult<MessageDetailModel>
since 5.2.0
get assets with type 'text.message.' and related by 'user.message.'
moduleCategories ↦ ModuleCategoryModel
since 2017.5.0
get the categories related as 'censhare:asset.category'
Permission Verbs used
asset.commentsSettings
since 5.2.0 'asset.commentsSettings' - guards requests to '→commentsSettings'
asset.isAnonymousUserAlreadyComment
since 5.2.0 'asset.isAnonymousUserAlreadyComment' - guards requests to '→isAnonymousUserAlreadyComment'
asset.messages
since 5.2.0 'asset.messages' - guards requests to '→messages'
asset.moduleCategories
since 2017.5.0 'asset.moduleCategories' - guards requests to '→moduleCategories'