MPUserModel
A model for user in media portal.
implements: hash
bundle: standard portal bundle
since 2.0.0
A model for user in media portal.
Defined hash keys
baskets ↦ sequence<BasketModel>
since 2.0.0
get the baskets of user
basketsTotalValue ↦ PriceModel
since 2.0.0
get the summarized value of all baskets of user
creditBalance ↦ CreditBalanceModel
since 2.0.0
get the credit balance of user
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)
orders ↦ sequence<OrderModel>
since 2.0.0
get all orders of user
ordersTotalValue ↦ sequence<OrderCountPriceContainer>
since 2.0.0
get the summarized value of all orders
Permission Verbs used
mediaportal.baskets
since 2.0.0 'mediaportal.baskets' - guards requests to '→baskets'
mediaportal.basketsTotalValue
since 2.0.0 'mediaportal.basketsTotalValue' - guards requests to '→basketsTotalValue'
mediaportal.currency
since 2.0.0 'mediaportal.currency' - guards requests to '→creditBalance'
mediaportal.orders
since 2.0.0 'mediaportal.orders' - guards requests to '→orders'
mediaportal.ordersTotalValue
since 2.0.0 'mediaportal.ordersTotalValue' - guards requests to '→ordersTotalValue'