Package io.jmix.core.accesscontext
Class ExportImportEntityContext
java.lang.Object
io.jmix.core.accesscontext.ExportImportEntityContext
- All Implemented Interfaces:
AccessContext
An access context to check permissions on entity attributes when serializing entities to/from JSON.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canExported
(String attribute) boolean
canImported
(String attribute) Returns a human-readable explanation of constraints applied to the current context instance for logging of authorization decisions.void
notExportedAttribute
(String name) void
notImportedAttribute
(String name)
-
Field Details
-
entityClass
-
notImported
-
notExported
-
-
Constructor Details
-
ExportImportEntityContext
-
-
Method Details
-
getEntityClass
-
canImported
-
canExported
-
notImportedAttribute
-
notExportedAttribute
-
explainConstraints
Description copied from interface:AccessContext
Returns a human-readable explanation of constraints applied to the current context instance for logging of authorization decisions. Null if the current context does not impose any constraints.- Specified by:
explainConstraints
in interfaceAccessContext
-