Package io.jmix.search.searching.impl
Class FullFieldNamesProvider
java.lang.Object
io.jmix.search.searching.impl.FullFieldNamesProvider
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFieldNamesForBaseField(MetaPropertyPath path, String fieldName) Determines the fields to be substituted for a given property path and field name.protected booleanisFileRefProperty(Range range) protected booleanisReferenceProperty(Range range)
-
Field Details
-
securityDecorator
-
-
Constructor Details
-
FullFieldNamesProvider
-
-
Method Details
-
getFieldNamesForBaseField
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- theMetaPropertyPathrepresenting the relative path to the propertyfieldName- 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
-
isReferenceProperty
-