Class DefaultViewTemplateHelper
java.lang.Object
io.jmix.flowui.view.template.impl.DefaultViewTemplateHelper
- All Implemented Interfaces:
ViewTemplateHelper
@Component("flowui_DefaultViewTemplateHelper")
public class DefaultViewTemplateHelper
extends Object
implements ViewTemplateHelper
Default
ViewTemplateHelper implementation used by built-in view templates.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCollectionProperties(MetaClass metaClass, List<String> excludeProperties) Returns composition collection properties that should be rendered as tabs by a detail view template.Returns direct single-value properties for the entity in metadata order.protected booleanisCompositionInverse(MetaProperty metaProperty) protected booleanisDefaultExcluded(MetaProperty metaProperty) protected booleanisSupportedCollectionProperty(MetaProperty metaProperty) protected booleanisSupportedProperty(MetaProperty metaProperty) validatePropertyNames(MetaClass metaClass, Collection<String> propertyNames)
-
Field Details
-
metadataTools
-
-
Constructor Details
-
DefaultViewTemplateHelper
public DefaultViewTemplateHelper()
-
-
Method Details
-
getProperties
public List<MetaProperty> getProperties(MetaClass metaClass, List<String> includeProperties, List<String> excludeProperties) Returns direct single-value properties for the entity in metadata order.Collection-valued and embedded properties are ignored. System, secret, identifier, version, generated, and audit properties are excluded by default. Properties listed in
includePropertiesare added back when they are supported direct properties, and properties listed inexcludePropertiesare removed from the final result.- Specified by:
getPropertiesin interfaceViewTemplateHelper- Parameters:
metaClass- entity metadataincludeProperties- property names to include explicitlyexcludeProperties- property names to exclude explicitly- Returns:
- filtered entity properties in metadata order
- Throws:
IllegalArgumentException- if a property path is provided instead of a direct property name
-
getCollectionProperties
public List<MetaProperty> getCollectionProperties(MetaClass metaClass, List<String> excludeProperties) Description copied from interface:ViewTemplateHelperReturns composition collection properties that should be rendered as tabs by a detail view template.Implementations return direct composition
*-to-manyproperties, applying default filtering rules and then removing properties listed inexcludeProperties. Association collections, datatype collections, and single-value properties are not returned.- Specified by:
getCollectionPropertiesin interfaceViewTemplateHelper- Parameters:
metaClass- entity metadataexcludeProperties- property names that must be excluded from the result- Returns:
- filtered composition collection properties in metadata order
-
isSupportedCollectionProperty
-
validatePropertyNames
-
isSupportedProperty
-
isDefaultExcluded
-
isCompositionInverse
-