Class SupplementalInstanceMetaData
java.lang.Object
com.kingsrook.qqq.middleware.javalin.specs.v1.responses.components.SupplementalInstanceMetaData
- All Implemented Interfaces:
ToSchema
Instance-level settings from supplemental modules, for a frontend.
This is an explicit allow-list: supplemental instance meta-data objects
can carry server configuration (route providers, file-system paths,
authenticator classes, etc), so they are never serialized as a whole.
Each published setting is copied here, by name, from the module that owns
it (read generically, as those modules are not dependencies of this one).
Published:
- materialDashboard: the processes to add to every query and view screen;
- materialDashboardTheme: the application theme (MaterialDashboardThemeMetaData),
limited to the visual properties named in THEME_PROPERTY_NAMES
(QRun-IO/qqq#719);
- assistant: present (as an object) when the instance has supplemental
meta-data named "assistant" (registered by the qbit-assistant QBit when it
is enabled), so a frontend only probes the assistant's routes when they
exist. Its content is available=true plus the string, number and
boolean values of the object's optional getFrontendSettings() map, and
nothing else.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for assistantGetter for materialDashboardGetter for materialDashboardThemestatic SupplementalInstanceMetaDataof(MetaDataOutput metaDataOutput) Build the published supplemental meta-data from a meta-data action's output, or null when the instance has none of the supplemental meta-data that is published (so the property is omitted).voidsetAssistant(Map<String, Object> assistant) Setter for assistantvoidsetMaterialDashboard(MaterialDashboardInstanceSettings materialDashboard) Setter for materialDashboardvoidsetMaterialDashboardTheme(Map<String, Object> materialDashboardTheme) Setter for materialDashboardThemewithAssistant(Map<String, Object> assistant) Fluent setter for assistantwithMaterialDashboard(MaterialDashboardInstanceSettings materialDashboard) Fluent setter for materialDashboardwithMaterialDashboardTheme(Map<String, Object> materialDashboardTheme) Fluent setter for materialDashboardTheme
-
Field Details
-
MATERIAL_DASHBOARD_NAME
- See Also:
-
MATERIAL_DASHBOARD_THEME_NAME
- See Also:
-
ASSISTANT_NAME
- See Also:
-
THEME_PROPERTY_NAMES
-
-
Constructor Details
-
SupplementalInstanceMetaData
public SupplementalInstanceMetaData()
-
-
Method Details
-
of
Build the published supplemental meta-data from a meta-data action's output, or null when the instance has none of the supplemental meta-data that is published (so the property is omitted). -
getMaterialDashboard
Getter for materialDashboard -
setMaterialDashboard
Setter for materialDashboard -
withMaterialDashboard
public SupplementalInstanceMetaData withMaterialDashboard(MaterialDashboardInstanceSettings materialDashboard) Fluent setter for materialDashboard -
getMaterialDashboardTheme
-
setMaterialDashboardTheme
-
withMaterialDashboardTheme
public SupplementalInstanceMetaData withMaterialDashboardTheme(Map<String, Object> materialDashboardTheme) Fluent setter for materialDashboardTheme -
getAssistant
-
setAssistant
-
withAssistant
Fluent setter for assistant
-