CsResourceKeyRef constructor
- String id
Wraps the CE-AZ resource key id as a typed reference.
Positional and required, and verbatim from the specification — a resource
key is an authored key (codespecs_derivation_contract.md §2.1 N5).
Lowered at generation to TomResourceKeyAccess.key.
This is the const that carries access control where there is no operation
to hang a requirement on: a CE-DB column's access key and a CE-ID identity
attribute's (codespecs_mapping.md §5.15, §5.24). On a public identity
attribute it is the only guard in existence, because the token carrying
the attribute is readable by anything holding it.
Declared once, as a static const on the owning part's generated
catalogue class, and cited from there (codespecs_derivation_contract.md
§2.6); re-constructing it at a call site compiles but puts the string
literal back into the code a rename must break.
codespecs_derivation_contract.md §6 check 2 resolves every ref string to
a generated declaration and calls an unresolved one a generation error,
never a warning.
Implementation
const CsResourceKeyRef(this.id);