Package io.jmix.dynattrflowui.impl
Class BaseEmbeddingStrategy
java.lang.Object
io.jmix.dynattrflowui.impl.BaseEmbeddingStrategy
- All Implemented Interfaces:
EmbeddingStrategy
- Direct Known Subclasses:
FormEmbeddingStrategy
,ListEmbeddingStrategy
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AccessManager
protected final DynAttrMetadata
protected final Metadata
protected final MetadataTools
-
Constructor Summary
ModifierConstructorDescriptionprotected
BaseEmbeddingStrategy
(Metadata metadata, MetadataTools metadataTools, DynAttrMetadata dynAttrMetadata, AccessManager accessManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkPermissions
(AttributeDefinition attributeDefinition, MetaClass entityMetaClass) void
protected abstract void
embed
(com.vaadin.flow.component.Component component, View<?> owner, List<AttributeDefinition> attributes) protected List<AttributeDefinition>
findVisibleAttributes
(MetaClass entityMetaClass, String windowId, String componentId) protected abstract MetaClass
getEntityMetaClass
(com.vaadin.flow.component.Component component) protected String
getWindowId
(View<?> view) protected boolean
isVisibleAttribute
(AttributeDefinition attributeDefinition, String screen, String componentId) protected abstract void
setLoadDynamicAttributes
(com.vaadin.flow.component.Component component) protected void
setLoadDynamicAttributes
(InstanceContainer<?> container) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.dynattrflowui.impl.EmbeddingStrategy
supportComponent
-
Field Details
-
metadata
-
metadataTools
-
dynAttrMetadata
-
accessManager
-
-
Constructor Details
-
BaseEmbeddingStrategy
protected BaseEmbeddingStrategy(Metadata metadata, MetadataTools metadataTools, DynAttrMetadata dynAttrMetadata, AccessManager accessManager)
-
-
Method Details
-
getEntityMetaClass
-
setLoadDynamicAttributes
protected abstract void setLoadDynamicAttributes(com.vaadin.flow.component.Component component) -
embed
protected abstract void embed(com.vaadin.flow.component.Component component, View<?> owner, List<AttributeDefinition> attributes) -
embed
- Specified by:
embed
in interfaceEmbeddingStrategy
-
getWindowId
-
setLoadDynamicAttributes
-
findVisibleAttributes
protected List<AttributeDefinition> findVisibleAttributes(MetaClass entityMetaClass, String windowId, String componentId) -
isVisibleAttribute
protected boolean isVisibleAttribute(AttributeDefinition attributeDefinition, String screen, String componentId) -
checkPermissions
protected boolean checkPermissions(AttributeDefinition attributeDefinition, MetaClass entityMetaClass)
-