[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [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=64378#comment-64378 ] Ralf Handl commented on ODATA-960: ---------------------------------- In $filter we are addressing resources in the service, so $root logically is the entity container, and the next segment after $root is a direct child of the entity container, e.g. an entiy set. In annotation paths we are addressing model elements so / logically is the universe, and the next segment after / is the schema that contains the model element we want to address (assuming that schema namespaces are universally unique :-) So I would not use $root in the annotation context. > 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)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]