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

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

      Annotations

    • 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.
    • Show
      https://tools.oasis-open.org/version-control/browse/wsvn/odata/trunk/4.01%20spec/schemas/edm.xsd?op=diff&rev=944

      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>

            Assignee:
            Unassigned
            Reporter:
            handl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: