Package io.jmix.ui.component.filter
Class FilterMetadataTools
java.lang.Object
io.jmix.ui.component.filter.FilterMetadataTools
- Direct Known Subclasses:
UiDataFilterMetadataTools
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessManager
protected Metadata
protected MetadataTools
protected UiComponentProperties
-
Constructor Summary
ConstructorDescriptionFilterMetadataTools
(MetadataTools metadataTools, UiComponentProperties uiComponentProperties, AccessManager accessManager, Metadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<MetaPropertyPath>
getPropertyPaths
(MetaClass filterMetaClass, String query, MetaClass currentMetaClass, int currentDepth, String currentPropertyPath, Predicate<MetaPropertyPath> propertiesFilterPredicate) getPropertyPaths
(MetaClass filterMetaClass, String query, Predicate<MetaPropertyPath> propertiesFilterPredicate) protected boolean
isAggregateFunction
(MetaPropertyPath propertyPath, String query) protected boolean
isCrossDataStoreReference
(MetaProperty metaProperty) protected boolean
isKeyValueCrossDataStoreReferenceAllowed
(MetaPropertyPath propertyPath, String query) protected boolean
isMetaPropertyPathAllowed
(MetaPropertyPath propertyPath, String query)
-
Field Details
-
metadataTools
-
metadata
-
uiComponentProperties
-
accessManager
-
-
Constructor Details
-
FilterMetadataTools
@Autowired public FilterMetadataTools(MetadataTools metadataTools, UiComponentProperties uiComponentProperties, AccessManager accessManager, Metadata metadata)
-
-
Method Details
-
getPropertyPaths
public List<MetaPropertyPath> getPropertyPaths(MetaClass filterMetaClass, String query, @Nullable Predicate<MetaPropertyPath> propertiesFilterPredicate) -
getPropertyPaths
protected List<MetaPropertyPath> getPropertyPaths(MetaClass filterMetaClass, String query, MetaClass currentMetaClass, int currentDepth, String currentPropertyPath, @Nullable Predicate<MetaPropertyPath> propertiesFilterPredicate) -
isMetaPropertyPathAllowed
-
isAggregateFunction
-
isCrossDataStoreReference
-
isKeyValueCrossDataStoreReferenceAllowed
protected boolean isKeyValueCrossDataStoreReferenceAllowed(MetaPropertyPath propertyPath, String query)
-