Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-960

Absolute paths in annotations, e.g. capabilities depending on properties of a singleton

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_ERRATA02
    • Fix Version/s: V4.01_WD01
    • Component/s: Vocabularies
    • Labels:
      None
    • Environment:

      Annotations

    • Proposal:
      Hide

      Extend Path syntax to allow absolute paths that start with a top-level model element (schema child).

      Natural syntax would be a path starting with a forward slash.

      Note: current "relative" paths can already start with a type-cast segment which is a qualified type name, so the / prefix or something similar is needed to distinguish "absolute" paths.

      Show
      Extend Path syntax to allow absolute paths that start with a top-level model element (schema child). Natural syntax would be a path starting with a forward slash. Note: current "relative" paths can already start with a type-cast segment which is a qualified type name, so the / prefix or something similar is needed to distinguish "absolute" paths.
    • Resolution:
      Show
      https://tools.oasis-open.org/version-control/browse/wsvn/odata/trunk/4.01%20spec/schemas/edm.xsd?op=diff&rev=944

      Description

      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>

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              handl Ralf Handl
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: