Class QAppMetaData
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.layout.QAppMetaData
- All Implemented Interfaces:
QAppChildMetaData,MetaDataProducerOutput,MetaDataWithName,MetaDataWithPermissionRules,QMetaDataObject,TopLevelMetaDataInterface,Serializable
public class QAppMetaData
extends Object
implements QAppChildMetaData, MetaDataWithPermissionRules, TopLevelMetaDataInterface
MetaData definition of an App - an entity that organizes tables invalid input: '&' processes
and can be arranged hierarchically (e.g, apps can contain other apps).
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(QAppChildMetaData child) Add a child to this app.voidaddSection(QAppSection section) voidaddSelfToInstance(QInstance qInstance) call the appropriate methods on a QInstance to add ourselves to it.getChildAppAffinity(String childName) get the appAffinity assigned to this child (by name) for this app - null if not set.Getter for childrenGetter for helpContentgetIcon()Getter for icongetLabel()Getter for labelgetName()Getter for nameGetter for parentAppNameGetter for permissionRulesGetter for sectionsGetter for sortOrderGetter for supplementalMetaDataGetter for widgetsvoidremoveHelpContent(String slot, Set<HelpRole> roles) remove a helpContent for a slot based on its set of rolesvoidsetChildAppAffinity(String childName, Integer appAffinity) set an appAffinity for a child.voidsetChildren(List<QAppChildMetaData> children) Setter for childrenvoidsetHelpContent(Map<String, List<QHelpContent>> helpContent) Setter for helpContentvoidSetter for iconvoidSetter for labelvoidSetter for namevoidsetParentAppName(String parentAppName) Setter for parentAppNamevoidsetPermissionRules(QPermissionRules permissionRules) Setter for permissionRulesvoidsetSections(List<QAppSection> sections) Setter for sectionsvoidsetSortOrder(Integer sortOrder) Setter for sortOrdervoidsetSupplementalMetaData(Map<String, QSupplementalAppMetaData> supplementalMetaData) Setter for supplementalMetaDatavoidsetWidgets(List<String> widgets) Setter for widgetswithChild(QAppChildMetaData child) Fluently add a child to this app.withChildren(List<QAppChildMetaData> children) Fluent setter for childrenwithHelpContent(String slot, QHelpContent helpContent) Fluent setter for adding 1 helpContent (for a slot)withHelpContent(Map<String, List<QHelpContent>> helpContent) Fluent setter for helpContentFluent setter for iconFluent setter for labelFluent setter for namewithPermissionRules(QPermissionRules permissionRules) Fluent setter for permissionRuleswithSection(QAppSection section) Fluent setter for sectionswithSectionOfChildren(QAppSection section, QAppChildMetaData... children) withSectionOfChildren(QAppSection section, Collection<? extends QAppChildMetaData> children) withSections(List<QAppSection> sections) Fluent setter for sectionswithSortOrder(Integer sortOrder) Fluent setter for sortOrderwithSupplementalMetaData(QSupplementalAppMetaData supplementalMetaData) Fluent setter for supplementalMetaDatawithSupplementalMetaData(Map<String, QSupplementalAppMetaData> supplementalMetaData) Fluent setter for supplementalMetaDatawithWidgets(List<String> widgets) Fluent setter for widgets
-
Field Details
-
DEFAULT_SORT_ORDER
-
helpContent
-
-
Constructor Details
-
QAppMetaData
public QAppMetaData()
-
-
Method Details
-
getName
Getter for name- Specified by:
getNamein interfaceMetaDataWithName- Specified by:
getNamein interfaceQAppChildMetaData- Specified by:
getNamein interfaceTopLevelMetaDataInterface
-
setName
Setter for name- Specified by:
setNamein interfaceMetaDataWithName
-
withName
Fluent setter for name -
getLabel
Getter for label- Specified by:
getLabelin interfaceMetaDataWithName- Specified by:
getLabelin interfaceQAppChildMetaData
-
setLabel
Setter for label- Specified by:
setLabelin interfaceMetaDataWithName
-
withLabel
Fluent setter for label -
getChildren
Getter for children -
setChildren
Setter for children -
addChild
Add a child to this app. -
withChild
Fluently add a child to this app. -
withChildren
Fluent setter for children -
getParentAppName
Getter for parentAppName -
setParentAppName
Setter for parentAppName -
getIcon
-
setIcon
Setter for icon -
withIcon
Fluent setter for icon -
getWidgets
-
setWidgets
-
withWidgets
Fluent setter for widgets -
getSections
Getter for sections -
setSections
Setter for sections -
withSections
Fluent setter for sections -
addSection
-
withSection
Fluent setter for sections -
withSectionOfChildren
public QAppMetaData withSectionOfChildren(QAppSection section, Collection<? extends QAppChildMetaData> children) -
withSectionOfChildren
-
getPermissionRules
Getter for permissionRules- Specified by:
getPermissionRulesin interfaceMetaDataWithPermissionRules
-
setPermissionRules
Setter for permissionRules- Specified by:
setPermissionRulesin interfaceMetaDataWithPermissionRules
-
withPermissionRules
Fluent setter for permissionRules -
addSelfToInstance
Description copied from interface:MetaDataProducerOutputcall the appropriate methods on a QInstance to add ourselves to it.- Specified by:
addSelfToInstancein interfaceMetaDataProducerOutput- Specified by:
addSelfToInstancein interfaceTopLevelMetaDataInterface
-
getSortOrder
Getter for sortOrder -
setSortOrder
Setter for sortOrder -
withSortOrder
Fluent setter for sortOrder -
getSupplementalMetaData
Getter for supplementalMetaData -
setSupplementalMetaData
Setter for supplementalMetaData -
withSupplementalMetaData
Fluent setter for supplementalMetaData -
withSupplementalMetaData
public QAppMetaData withSupplementalMetaData(Map<String, QSupplementalAppMetaData> supplementalMetaData) Fluent setter for supplementalMetaData -
setChildAppAffinity
set an appAffinity for a child. Higher values are higher affinity, with null (the default) considered the lowest. Tiebreaking behavior is not specified and may differ by use-case (e.g., by front-end), though app sort-order is recommended.The purpose of this appAffinity is not about ordering the children of this app - but rather - for cases where the same object (e.g. a table) is referenced by multiple apps, and we want to control which app should be displayed first when the object is referenced.
- Parameters:
childName- name of child (e.g., a table name) to set appAffinity forappAffinity- appAffinity level, or null to clear any existing appAffinity. Higher values are higher affinity. null is lowest.
-
getChildAppAffinity
-
getHelpContent
Getter for helpContent -
setHelpContent
Setter for helpContent -
withHelpContent
Fluent setter for helpContent -
withHelpContent
Fluent setter for adding 1 helpContent (for a slot) -
removeHelpContent
-