Package io.jmix.dynattrui.impl
Class BaseEmbeddingStrategy
java.lang.Object
io.jmix.dynattrui.impl.BaseEmbeddingStrategy
- All Implemented Interfaces:
EmbeddingStrategy
- Direct Known Subclasses:
FormEmbeddingStrategy
,ListEmbeddingStrategy
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessManager
protected DynAttrMetadata
protected Metadata
protected MetadataTools
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkPermissions
(AttributeDefinition attributeDefinition, MetaClass entityMetaClass) void
protected abstract void
embed
(Component component, Frame frame, List<AttributeDefinition> attributes) protected List<AttributeDefinition>
findVisibleAttributes
(MetaClass entityMetaClass, String windowId, String componentId) protected abstract MetaClass
getEntityMetaClass
(Component component) protected String
getWindowId
(Frame frame) protected boolean
isVisibleAttribute
(AttributeDefinition attributeDefinition, String screen, String componentId) void
setAccessManager
(AccessManager accessManager) void
setDynAttrMetadata
(DynAttrMetadata dynAttrMetadata) protected abstract void
setLoadDynamicAttributes
(Component component) protected void
setLoadDynamicAttributes
(InstanceContainer container) void
setMetadata
(Metadata metadata) void
setMetadataTools
(MetadataTools metadataTools) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.dynattrui.impl.EmbeddingStrategy
supportComponent
-
Field Details
-
metadata
-
metadataTools
-
dynAttrMetadata
-
accessManager
-
-
Constructor Details
-
BaseEmbeddingStrategy
public BaseEmbeddingStrategy()
-
-
Method Details
-
setMetadata
-
setMetadataTools
-
setDynAttrMetadata
-
setAccessManager
-
embed
- Specified by:
embed
in interfaceEmbeddingStrategy
-
getEntityMetaClass
-
setLoadDynamicAttributes
-
embed
protected abstract void embed(Component component, Frame frame, List<AttributeDefinition> attributes) -
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)
-