Class EntityDocsFolderCollectionInitializer

All Implemented Interfaces:
CollectionInitializer

@Component public class EntityDocsFolderCollectionInitializer extends AbstractEntityDocsCollectionInitializer
Special handling of entitydocs relations when the target is a Folder entity (relFolder_entitydocs). If the current user has access to the source entity, the relation can be resolved in privileged mode to avoid the very slow ACL rules generated by the policy processors.
  • Constructor Details

  • Method Details

    • supports

      public boolean supports(Object entity, jakarta.persistence.metamodel.Attribute<?,?> collection)
      Returns:
      true if this CollectionInitializer supports resolving this relation
    • priority

      public Integer priority()
      Returns:
      the priority in case multiple CollectionInitializer can resolve a relation