Class FilterMetadataTools
java.lang.Object
io.jmix.flowui.component.genericfilter.FilterMetadataTools
- Direct Known Subclasses:
UiDataFilterMetadataTools
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AccessManager
protected final UiComponentProperties
protected final Metadata
protected final MetadataTools
-
Constructor Summary
ConstructorDescriptionFilterMetadataTools
(MetadataTools metadataTools, UiComponentProperties uiComponentProperties, AccessManager accessManager, Metadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
belongToCrossDataStoreReference
(MetaPropertyPath propertyPath, String query) protected MetaClass
getMainFromMetaClass
(String query) protected List<MetaPropertyPath>
getPropertyPaths
(MetaClass filterMetaClass, String query, MetaClass currentMetaClass, int propertyHierarchyDepth, int currentDepth, String currentPropertyPath, Predicate<MetaPropertyPath> propertiesFilterPredicate) getPropertyPaths
(MetaClass filterMetaClass, String query, Predicate<MetaPropertyPath> propertiesFilterPredicate) getPropertyPaths
(GenericFilter filter) protected boolean
isAggregateFunction
(MetaPropertyPath propertyPath, String query) protected boolean
isCrossDataStoreReference
(MetaProperty metaProperty) protected boolean
isCrossDataStoreReferenceAllowed
(MetaPropertyPath propertyPath) protected boolean
isKeyValueCrossDataStoreReferenceAllowed
(MetaPropertyPath propertyPath, String query) protected boolean
isKeyValueMetaClass
(MetaPropertyPath propertyPath) protected boolean
isKeyValueQueryAllowed
(MetaPropertyPath propertyPath, String query) protected boolean
isMetaPropertyPathAllowed
(MetaPropertyPath propertyPath, String query) protected boolean
isMetaPropertyPathAllowedJpaAware
(MetaPropertyPath propertyPath, String query)
-
Field Details
-
metadataTools
-
metadata
-
componentProperties
-
accessManager
-
-
Constructor Details
-
FilterMetadataTools
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
-
getPropertyPaths
protected List<MetaPropertyPath> getPropertyPaths(MetaClass filterMetaClass, String query, MetaClass currentMetaClass, int propertyHierarchyDepth, int currentDepth, String currentPropertyPath, @Nullable Predicate<MetaPropertyPath> propertiesFilterPredicate) -
isMetaPropertyPathAllowed
-
isMetaPropertyPathAllowedJpaAware
-
isKeyValueQueryAllowed
-
isCrossDataStoreReferenceAllowed
-
isAggregateFunction
-
isCrossDataStoreReference
-
belongToCrossDataStoreReference
-
isKeyValueCrossDataStoreReferenceAllowed
protected boolean isKeyValueCrossDataStoreReferenceAllowed(MetaPropertyPath propertyPath, String query) -
getMainFromMetaClass
-
isKeyValueMetaClass
-