Class PolicyExtractorUtils

java.lang.Object
io.jmix.security.impl.role.builder.extractor.PolicyExtractorUtils

@Component("sec_PolicyExtractorUtils") public class PolicyExtractorUtils extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getEntityNameByEntityClass

      public String getEntityNameByEntityClass(Class<?> entityClass)
      Returns an actual entity name of the given entityClass. For example, if entity Foo is being replaced by entity ExtFoo using the ReplaceEntity annotation then the "Foo" entity name will be returned for the Foo.class, not "ExtFoo". This method is required because metadata.getClass(Foo.class) will return you a metaclass for ExtFoo.