Class QInstance
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.QInstance
Container for all meta-data in a running instance of a QQQ application.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(TopLevelMetaDataInterface metaData) void
addApp
(QAppMetaData app) void
addAutomationProvider
(QAutomationProviderMetaData automationProvider) void
addBackend
(QBackendMetaData backend) void
addJoin
(QJoinMetaData join) void
addMessagingProvider
(QMessagingProviderMetaData messagingProvider) void
addPossibleValueSource
(QPossibleValueSource possibleValueSource) void
addProcess
(QProcessMetaData process) void
addQBit
(QBitMetaData qBitMetaData) void
addQueue
(QQueueMetaData queue) void
addQueueProvider
(QQueueProviderMetaData queueProvider) void
addReport
(QReportMetaData report) void
addSchedulableType
(SchedulableType schedulableType) void
addScheduler
(QSchedulerMetaData scheduler) void
addSecurityKeyType
(QSecurityKeyType securityKeyType) void
addTable
(QTableMetaData table) void
addWidget
(QWidgetMetaDataInterface widget) getApps()
Getter for appsGetter for authenticationgetAutomationProvider
(String name) Getter for automationProvidersgetBackend
(String name) getBackendForTable
(String tableName) Get the backend for a given table nameGetter for backendsGetter for brandingGetter for defaultAuditRulesGetter for defaultPermissionRulesGetter for defaultTimeZoneIdGetter for deploymentModeGetter for environmentValuesboolean
Getter for hasBeenValidatedGetter for helpContentgetJoins()
Getter for joinsgetMessagingProvider
(String name) Getter for messagingProvidersGetter for metaDataActionCustomizerDeprecated.getPossibleValueSource
(String name) Getter for possibleValueSourcesgetProcess
(String name) Getter for processesgetProcessesForTable
(String tableName) Get the list of processes associated with a given table namegetProcessPath
(AbstractActionInput actionInput, String processName) Get the full path to a processgetProcessStep
(String processName, String functionName) getQBits()
Getter for qBitsgetQueueProvider
(String name) Getter for queueProvidersGetter for queuesGetter for reportsgetSchedulableType
(String name) Getter for schedulableTypesgetScheduler
(String name) Getter for schedulersgetSecurityKeyType
(String name) Getter for securityKeyTypesGetter for supplementalMetaDataGetter for supplementalMetaDatagetTablePath
(String tableName) Get the full path to a tableGetter for tablesboolean
check if the instance is currently running validation.Getter for widgetsvoid
removeHelpContent
(String slot, Set<HelpRole> roles) remove a helpContent for a slot based on its set of rolesvoid
setApps
(Map<String, QAppMetaData> apps) Setter for appsvoid
setAuthentication
(QAuthenticationMetaData authentication) Setter for authenticationvoid
setAutomationProviders
(Map<String, QAutomationProviderMetaData> automationProviders) Setter for automationProvidersvoid
setBackends
(Map<String, QBackendMetaData> backends) Setter for backendsvoid
setBranding
(QBrandingMetaData branding) Setter for brandingvoid
setDefaultAuditRules
(QAuditRules defaultAuditRules) Setter for defaultAuditRulesvoid
setDefaultPermissionRules
(QPermissionRules defaultPermissionRules) Setter for defaultPermissionRulesvoid
setDefaultTimeZoneId
(String defaultTimeZoneId) Setter for defaultTimeZoneIdvoid
setDeploymentMode
(String deploymentMode) Setter for deploymentModevoid
setEnvironmentValues
(Map<String, String> environmentValues) Setter for environmentValuesvoid
If pass a QInstanceValidationKey (which can only be instantiated by the validator), then the validationState will be set to COMPLETE.void
setHelpContent
(Map<String, List<QHelpContent>> helpContent) Setter for helpContentvoid
setJoinGraph
(QInstanceValidationKey key, JoinGraph joinGraph) Only the validation (and enrichment) code should set the instance's joinGraph so, we take a package-only-constructable validation key as a param along with the joinGraph - and we throw IllegalArgumentException if a non-null key is given.void
setJoins
(Map<String, QJoinMetaData> joins) Setter for joinsvoid
setMessagingProviders
(Map<String, QMessagingProviderMetaData> messagingProviders) Setter for messagingProvidersvoid
setMetaDataActionCustomizer
(QCodeReference metaDataActionCustomizer) Setter for metaDataActionCustomizervoid
setMetaDataFilter
(QCodeReference metaDataFilter) Deprecated.void
setPossibleValueSources
(Map<String, QPossibleValueSource> possibleValueSources) Setter for possibleValueSourcesvoid
setProcesses
(Map<String, QProcessMetaData> processes) Setter for processesvoid
setQBits
(Map<String, QBitMetaData> qBits) Setter for qBitsvoid
setQueueProviders
(Map<String, QQueueProviderMetaData> queueProviders) Setter for queueProvidersvoid
setQueues
(Map<String, QQueueMetaData> queues) Setter for queuesvoid
setReports
(Map<String, QReportMetaData> reports) Setter for reportsvoid
setSchedulableTypes
(Map<String, SchedulableType> schedulableTypes) Setter for schedulableTypesvoid
setSchedulers
(Map<String, QSchedulerMetaData> schedulers) Setter for schedulersvoid
setSecurityKeyTypes
(Map<String, QSecurityKeyType> securityKeyTypes) Setter for securityKeyTypesvoid
setSupplementalMetaData
(Map<String, QSupplementalInstanceMetaData> supplementalMetaData) Setter for supplementalMetaDatavoid
setTables
(Map<String, QTableMetaData> tables) Setter for tablesvoid
If pass a QInstanceValidationKey (which can only be instantiated by the validator), then the validationState set to RUNNING.void
setWidgets
(Map<String, QWidgetMetaDataInterface> widgets) Setter for widgetswithDefaultAuditRules
(QAuditRules defaultAuditRules) Fluent setter for defaultAuditRuleswithDefaultPermissionRules
(QPermissionRules defaultPermissionRules) Fluent setter for defaultPermissionRuleswithDefaultTimeZoneId
(String defaultTimeZoneId) Fluent setter for defaultTimeZoneIdwithDeploymentMode
(String deploymentMode) Fluent setter for deploymentModewithHelpContent
(String slot, QHelpContent helpContent) Fluent setter for adding 1 helpContent (for a slot)withHelpContent
(Map<String, List<QHelpContent>> helpContent) Fluent setter for helpContentwithMetaDataActionCustomizer
(QCodeReference metaDataActionCustomizer) Fluent setter for metaDataActionCustomizerwithMetaDataFilter
(QCodeReference metaDataFilter) Deprecated.withQBits
(Map<String, QBitMetaData> qBits) Fluent setter for qBitswithSupplementalMetaData
(QSupplementalInstanceMetaData supplementalMetaData) Fluent setter for supplementalMetaDatawithSupplementalMetaData
(Map<String, QSupplementalInstanceMetaData> supplementalMetaData) Fluent setter for supplementalMetaData
-
Field Details
-
helpContent
-
-
Constructor Details
-
QInstance
public QInstance()
-
-
Method Details
-
getBackendForTable
Get the backend for a given table name -
getProcessesForTable
Get the list of processes associated with a given table name -
getTablePath
Get the full path to a table- Throws:
QException
-
getProcessPath
Get the full path to a process- Throws:
QException
-
addBackend
-
getBackend
-
getBackends
Getter for backends -
setBackends
Setter for backends -
addTable
-
getTable
-
getTables
Getter for tables -
setTables
Setter for tables -
addJoin
-
getJoin
-
getJoins
Getter for joins -
setJoins
Setter for joins -
addPossibleValueSource
-
getPossibleValueSource
-
getPossibleValueSources
Getter for possibleValueSources -
setPossibleValueSources
Setter for possibleValueSources -
getProcessStep
-
addProcess
-
getProcess
-
getProcesses
Getter for processes -
setProcesses
Setter for processes -
addApp
-
getApp
-
getApps
Getter for apps -
setApps
Setter for apps -
addReport
-
getReport
-
getReports
Getter for reports -
setReports
Setter for reports -
addSecurityKeyType
-
getSecurityKeyType
-
getSecurityKeyTypes
Getter for securityKeyTypes -
setSecurityKeyTypes
Setter for securityKeyTypes -
addAutomationProvider
-
getAutomationProvider
-
getAutomationProviders
Getter for automationProviders -
setAutomationProviders
Setter for automationProviders -
addMessagingProvider
-
getMessagingProvider
-
getMessagingProviders
Getter for messagingProviders -
setMessagingProviders
Setter for messagingProviders -
getHasBeenValidated
public boolean getHasBeenValidated()Getter for hasBeenValidated -
setHasBeenValidated
If pass a QInstanceValidationKey (which can only be instantiated by the validator), then the validationState will be set to COMPLETE. Else, if passed a null, the validationState will be reset to PENDING. e.g., to re-trigger validation (can be useful in tests). -
setValidationIsRunning
If pass a QInstanceValidationKey (which can only be instantiated by the validator), then the validationState set to RUNNING. -
getValidationIsRunning
public boolean getValidationIsRunning()check if the instance is currently running validation. -
getBranding
Getter for branding -
setBranding
Setter for branding -
getAuthentication
Getter for authentication -
setAuthentication
Setter for authentication -
getWidgets
Getter for widgets -
setWidgets
Setter for widgets -
addWidget
-
getWidget
-
addQueueProvider
-
getQueueProvider
-
getQueueProviders
Getter for queueProviders -
setQueueProviders
Setter for queueProviders -
addQueue
-
getQueue
-
getQueues
Getter for queues -
setQueues
Setter for queues -
getEnvironmentValues
-
setEnvironmentValues
-
getDefaultPermissionRules
Getter for defaultPermissionRules -
setDefaultPermissionRules
Setter for defaultPermissionRules -
withDefaultPermissionRules
Fluent setter for defaultPermissionRules -
setDefaultTimeZoneId
Setter for defaultTimeZoneId -
withDefaultTimeZoneId
-
getDefaultTimeZoneId
Getter for defaultTimeZoneId -
getAllowedSecurityKeyNames
-
getDefaultAuditRules
Getter for defaultAuditRules -
setDefaultAuditRules
Setter for defaultAuditRules -
withDefaultAuditRules
Fluent setter for defaultAuditRules -
getSupplementalMetaData
Getter for supplementalMetaData -
getSupplementalMetaData
Getter for supplementalMetaData -
setSupplementalMetaData
Setter for supplementalMetaData -
withSupplementalMetaData
public QInstance withSupplementalMetaData(Map<String, QSupplementalInstanceMetaData> supplementalMetaData) Fluent setter for supplementalMetaData -
withSupplementalMetaData
Fluent setter for supplementalMetaData -
getJoinGraph
-
setJoinGraph
public void setJoinGraph(QInstanceValidationKey key, JoinGraph joinGraph) throws IllegalArgumentException Only the validation (and enrichment) code should set the instance's joinGraph so, we take a package-only-constructable validation key as a param along with the joinGraph - and we throw IllegalArgumentException if a non-null key is given.- Throws:
IllegalArgumentException
-
getDeploymentMode
Getter for deploymentMode -
setDeploymentMode
Setter for deploymentMode -
withDeploymentMode
-
add
-
addScheduler
-
getScheduler
-
getSchedulers
Getter for schedulers -
setSchedulers
Setter for schedulers -
addSchedulableType
-
getSchedulableType
-
getSchedulableTypes
Getter for schedulableTypes -
setSchedulableTypes
Setter for schedulableTypes -
getHelpContent
Getter for helpContent -
setHelpContent
Setter for helpContent -
withHelpContent
Fluent setter for helpContent -
withHelpContent
Fluent setter for adding 1 helpContent (for a slot) -
removeHelpContent
-
getMetaDataFilter
Deprecated.Getter for metaDataFilter -
setMetaDataFilter
@Deprecated(since="migrated to metaDataCustomizer") public void setMetaDataFilter(QCodeReference metaDataFilter) Deprecated.Setter for metaDataFilter -
withMetaDataFilter
@Deprecated(since="migrated to metaDataCustomizer") public QInstance withMetaDataFilter(QCodeReference metaDataFilter) Deprecated.Fluent setter for metaDataFilter -
addQBit
-
getQBits
Getter for qBits -
setQBits
Setter for qBits -
withQBits
Fluent setter for qBits -
getMetaDataActionCustomizer
Getter for metaDataActionCustomizer -
setMetaDataActionCustomizer
Setter for metaDataActionCustomizer -
withMetaDataActionCustomizer
Fluent setter for metaDataActionCustomizer
-