Class FullFieldNamesProvider

java.lang.Object
io.jmix.search.searching.impl.FullFieldNamesProvider

@Component("search_FullFieldNamesProvider") public class FullFieldNamesProvider extends Object
Contains a logic that substitutes an initial field name with the specific subfields. Calculating such subfields depends on the field type and user permissions for the field.
  • Field Details

  • Constructor Details

  • Method Details

    • getFieldNamesForBaseField

      public Set<String> getFieldNamesForBaseField(MetaPropertyPath path, String fieldName)
      Determines the fields to be substituted for a given property path and field name. The substitution is based on the field's type and the user's permissions. If the property is a file reference, specific subfields are returned. If the property is a reference and the user has permission to read its entity, the instance name field is returned. Otherwise, the original field name or no fields are returned.
      Parameters:
      path - the MetaPropertyPath representing the relative path to the property
      fieldName - the base name of the field to be evaluated
      Returns:
      a set of field names to be substituted based on the field type and user permissions
    • isFileRefProperty

      protected boolean isFileRefProperty(Range range)
    • isReferenceProperty

      protected boolean isReferenceProperty(Range range)