[OASIS Issue Tracker] (ODATA-960) Absolute paths in annotations, e.g. capabilities depending on properties of a singleton

From
OASIS Issues Tracker <>
Date
2016-11-17T23:50:16+00:00
ID
Thread
[OASIS Issue Tracker] (ODATA-960) Absolute paths in annotations, e.g. capabilities depending on properties of a singleton
[ https://issues.oasis-open.org/browse/ODATA-960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=64376#comment-64376 ] 

Michael Pizzo commented on ODATA-960:
-------------------------------------

should we use $root for this? seems consistent with how we use it in $filter, etc...

> Absolute paths in annotations, e.g. capabilities depending on properties of a singleton
> ---------------------------------------------------------------------------------------
>
>                 Key: ODATA-960
>                 URL: https://issues.oasis-open.org/browse/ODATA-960
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: Vocabularies
>    Affects Versions: V4.0_ERRATA02
>         Environment: Annotations
>            Reporter: Ralf Handl
>             Fix For: V4.01_WD01
>
>
> We'd like to use a Singleton to control capabilities of an entity set, e.g. use a property of a singleton to tell whether the authenticated user is allowed to create new entities in a given entity set. This means we'd like to use a Path construct for the value of @Capabilities.InsertRestrictions/Insertable, e.g.
> <Annotations Target="My.Container/SalesOrders">
>   <Annotation Term="Capabilities.InsertRestrictions">
>     <Record>
>       <PropertyValue Property="Insertable" Path="/My.Container/Me/Permissions/CanCreateOrders" />
>     </Record>
>   </Annotation>
> </Annotations>



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)