Class EntityTreeModelBuilder
java.lang.Object
io.jmix.reportsflowui.view.reportwizard.EntityTreeModelBuilder
@Component("report_EntityTreeModelBuilder")
@Scope("prototype")
public class EntityTreeModelBuilder
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected final ExtendedEntities
protected final MessageTools
protected final Metadata
protected final MetadataTools
protected final ReportsProperties
-
Constructor Summary
ConstructorDescriptionEntityTreeModelBuilder
(MessageTools messageTools, ReportsProperties reportsProperties, Metadata metadata, ExtendedEntities extendedEntities, MetadataTools metadataTools) -
Method Summary
Modifier and TypeMethodDescriptionbuildEntityTree
(MetaClass metaClass) protected EntityTreeNode
createEntityTreeNode
(MetaProperty metaProperty, EntityTreeNode parent, MetaClass parentMetaClass, MetaClass propertyMetaClass) protected EntityTreeNode
createRootNode
(MetaClass metaClass) protected void
fillChildNodes
(EntityTreeNode parentNode, int depth, Set<String> alreadyAddedMetaProps, EntityTreeStructureInfo treeStructureInfo) int
protected MetaClass
getOriginalMetaClass
(MetaClass metaClass) protected void
init()
protected boolean
isMany
(MetaProperty metaProperty) protected boolean
isPropertyAllowedForReportWizard
(MetaClass metaClass, MetaProperty metaProperty) void
setEntityTreeModelMaxDepth
(int entityTreeModelMaxDepth)
-
Field Details
-
messageTools
-
reportsProperties
-
metadata
-
extendedEntities
-
metadataTools
-
entityTreeModelMaxDepth
protected int entityTreeModelMaxDepth
-
-
Constructor Details
-
EntityTreeModelBuilder
public EntityTreeModelBuilder(MessageTools messageTools, ReportsProperties reportsProperties, Metadata metadata, ExtendedEntities extendedEntities, MetadataTools metadataTools)
-
-
Method Details
-
init
@PostConstruct protected void init() -
getEntityTreeModelMaxDepth
public int getEntityTreeModelMaxDepth() -
setEntityTreeModelMaxDepth
public void setEntityTreeModelMaxDepth(int entityTreeModelMaxDepth) -
buildEntityTree
-
fillChildNodes
protected void fillChildNodes(EntityTreeNode parentNode, int depth, Set<String> alreadyAddedMetaProps, EntityTreeStructureInfo treeStructureInfo) -
isPropertyAllowedForReportWizard
-
getOriginalMetaClass
-
createEntityTreeNode
protected EntityTreeNode createEntityTreeNode(MetaProperty metaProperty, EntityTreeNode parent, MetaClass parentMetaClass, @Nullable MetaClass propertyMetaClass) -
createRootNode
-
isMany
-