Class ExportImportEntityContext

java.lang.Object
io.jmix.core.accesscontext.ExportImportEntityContext
All Implemented Interfaces:
AccessContext

public class ExportImportEntityContext extends Object implements AccessContext
An access context to check permissions on entity attributes when serializing entities to/from JSON.
  • Field Details

    • entityClass

      protected final MetaClass entityClass
    • notImported

      protected Set<String> notImported
    • notExported

      protected Set<String> notExported
  • Constructor Details

    • ExportImportEntityContext

      public ExportImportEntityContext(MetaClass entityClass)
  • Method Details

    • getEntityClass

      public MetaClass getEntityClass()
    • canImported

      public boolean canImported(String attribute)
    • canExported

      public boolean canExported(String attribute)
    • notImportedAttribute

      public void notImportedAttribute(String name)
    • notExportedAttribute

      public void notExportedAttribute(String name)
    • explainConstraints

      @Nullable public String 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 interface AccessContext