Class HealthSpecSupport
java.lang.Object
com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec<AbstractJsonEndpointSpec.JsonInput,AbstractJsonEndpointSpec.JsonOutput,AbstractJsonEndpointSpec.JsonExecutor>
com.kingsrook.qqq.middleware.javalin.specs.extensions.AbstractJsonEndpointSpec
com.kingsrook.qqq.middleware.javalin.health.HealthSpecSupport
- Direct Known Subclasses:
HealthComponentSpecV1,HealthHistorySpecV1,HealthRunSpecV1,HealthSummarySpecV1
Shared secured table projections. No elevated session is used for reads.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.kingsrook.qqq.middleware.javalin.specs.extensions.AbstractJsonEndpointSpec
AbstractJsonEndpointSpec.JsonExecutor, AbstractJsonEndpointSpec.JsonInput, AbstractJsonEndpointSpec.JsonOutput, AbstractJsonEndpointSpec.JsonOutputInterface -
Field Summary
Fields inherited from class com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec
qInstance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionComponent state shared by summary and detail.All schemas are owned by this extension.protected ObjectHistory is always bounded, newest first, with inclusive ISO-8601 bounds.protected QRecordMissing names are 404, including on-demand requests.protected ParameterShared path parameter.Project only contract fields; table values have already been redacted.protected voidrequirePermission(boolean write) Require the same permissions as the health record screens.rows(String table, QQueryFilter filter) Read through standard actions under the caller's session.protected ObjectReuse the live runner, closing a transient one on every exit path.protected Objectsummary()Aggregate follows core severity semantics; pod presence is inferred from recent results, as in the System Health home.Methods inherited from class com.kingsrook.qqq.middleware.javalin.specs.extensions.AbstractJsonEndpointSpec
buildInput, defineBasicSuccessResponse, defineRequestBody, defineRequestBodySchema, getResponseSchemaName, handle, handleOutputMethods inherited from class com.kingsrook.qqq.middleware.javalin.specs.AbstractEndpointSpec
checkCredentialScopeOperation, customizeMethod, defineAdditionalBasicResponses, defineBasicOperation, defineCompleteOperation, defineMethod, defineRequestParameters, defineResponses, defineRoute, getOperationId, getRequestBodyAsJsonObject, getRequestParam, getRequestParamInteger, getRequestParamMap, handleException, isSecured, newExecutor, newOutput, serveRequest, setQInstance
-
Constructor Details
-
HealthSpecSupport
public HealthSpecSupport()
-
-
Method Details
-
requirePermission
Require the same permissions as the health record screens.- Throws:
QException
-
defineComponentSchemas
All schemas are owned by this extension. -
nameParameter
Shared path parameter. -
rows
Read through standard actions under the caller's session.- Throws:
QException
-
named
Missing names are 404, including on-demand requests.- Throws:
QException
-
project
-
component
-
summary
Aggregate follows core severity semantics; pod presence is inferred from recent results, as in the System Health home.- Throws:
QException
-
history
History is always bounded, newest first, with inclusive ISO-8601 bounds.- Throws:
QException
-
runNow
Reuse the live runner, closing a transient one on every exit path.- Throws:
QException
-