Package com.axelor.ai.governance.access
Interface ModelRef
- All Known Implementing Classes:
ModelRef.Custom,ModelRef.Entity
A model a tool acts on: an entity, or a custom model whose records are
MetaJsonRecord.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionWhat the platform records on every record, which says nothing about what the model holds: a restriction holds one back only by naming it, never by its other fields.Every record's identity: readable by whoever may read the record, and never restricted. -
Method Summary
Modifier and TypeMethodDescriptionHow a refusal names the model: an entity's simple name, a custom model's name.name()The model as permissions name it: an entity's full name, a custom model's name.static ModelRefThe model of thisname(): an entity's full name, else a custom model's name; null when it names neither.static ModelRefof(MetaJsonModel custom) static ModelRefof(ResolvedModel model) The model the query engine resolved, or null for a custom model that no longer exists.static ModelRefstorage()The entity the records are stored in, which the platform's model permissions name.static ModelReftarget(MetaJsonField field) The model a custom relational field refers to: a custom model, else an entity; null for a field that refers to none.
-
Field Details
-
RECORD_FIELDS
Every record's identity: readable by whoever may read the record, and never restricted. -
AUDIT_FIELDS
What the platform records on every record, which says nothing about what the model holds: a restriction holds one back only by naming it, never by its other fields.
-
-
Method Details
-
storage
The entity the records are stored in, which the platform's model permissions name. -
name
String name()The model as permissions name it: an entity's full name, a custom model's name. -
displayName
String displayName()How a refusal names the model: an entity's simple name, a custom model's name. -
of
-
of
-
named
The model of thisname(): an entity's full name, else a custom model's name; null when it names neither. -
target
The model a custom relational field refers to: a custom model, else an entity; null for a field that refers to none. -
of
The model the query engine resolved, or null for a custom model that no longer exists.
-