Package com.axelor.ai.governance.access
Class Denials
java.lang.Object
com.axelor.ai.governance.access.Denials
How the AI tools word a refusal: the operation, the model and what was refused, and nothing about
the rule behind it. The agent relays the real cause instead of inventing one, and the user learns
that access is missing, never how it is configured.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringThe operation is refused to the assistant, though the user may perform it.static StringagentRecords(Operation operation, String model, Collection<Long> ids) The operation is refused to the assistant on these records, though the user may perform it.static StringThe entity storing every custom record is refused to the assistant, naming what works instead so the agent asks again by the custom model's name.static StringThe operation is refused on the model as a whole.static Stringread(String model, Collection<String> fields) Reading these fields is refused.static Stringread(String model, Map<Access.Refuser, ? extends Collection<String>> refused) Reading these fields is refused, each by whoever refuses it: the user's permissions, or only the assistant's, which the refusal says so the user knows their own access is intact.static Stringrecords(Operation operation, String model, Collection<Long> ids) The operation is refused on these records.static Stringwrite(String model, Collection<String> fields) Writing these fields is refused; a nested field is named by its path.static Stringwrite(String model, Map<Access.Refuser, ? extends Collection<String>> refused) The same for writing; a nested field is named by its path.
-
Method Details
-
model
The operation is refused on the model as a whole. -
agent
The operation is refused to the assistant, though the user may perform it. -
customStorage
The entity storing every custom record is refused to the assistant, naming what works instead so the agent asks again by the custom model's name. -
agentRecords
The operation is refused to the assistant on these records, though the user may perform it. -
records
The operation is refused on these records. -
read
Reading these fields is refused. -
write
Writing these fields is refused; a nested field is named by its path. -
read
Reading these fields is refused, each by whoever refuses it: the user's permissions, or only the assistant's, which the refusal says so the user knows their own access is intact. -
write
The same for writing; a nested field is named by its path.
-