Class DynamicAttributesSupport
java.lang.Object
io.jmix.search.index.impl.dynattr.DynamicAttributesSupport
Service providing support for operations related to dynamic attributes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DynamicAttributesSupportDelegateprotected static final Stringprotected final JmixModules -
Constructor Summary
ConstructorsConstructorDescriptionDynamicAttributesSupport(JmixModules modules, org.springframework.beans.factory.ObjectProvider<DynamicAttributesSupportDelegate> delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDynamicAttribute(MetaPropertyPath propertyPath) Determines if the specifiedMetaPropertyPathrepresents a dynamic attribute.booleanisDynamicAttributeName(String entityPropertyFullName) Determines if a given entity property name represents a dynamic attribute.booleanChecks if the Dynamic Attributes module is available in the application.
-
Field Details
-
DYNAMIC_ATTRIBUTES_MODULE_ID
- See Also:
-
modules
-
delegate
-
-
Constructor Details
-
DynamicAttributesSupport
public DynamicAttributesSupport(JmixModules modules, org.springframework.beans.factory.ObjectProvider<DynamicAttributesSupportDelegate> delegate)
-
-
Method Details
-
isDynamicAttributeName
Determines if a given entity property name represents a dynamic attribute.- Parameters:
entityPropertyFullName- the full name of the entity property to check- Returns:
- true if the property name contains a plus sign ("+"), indicating it is a dynamic attribute; false otherwise
-
isDynamicAttribute
Determines if the specifiedMetaPropertyPathrepresents a dynamic attribute.- Parameters:
propertyPath- theMetaPropertyPathto evaluate- Returns:
trueif theMetaPropertyPathcorresponds to a dynamic attribute;falseotherwise
-
isModulePresent
public boolean isModulePresent()Checks if the Dynamic Attributes module is available in the application.- Returns:
- true if the Dynamic Attributes module is present, false otherwise
-