public class DbAction extends Action<DbAction> implements OpenAPIWriter<DbAction>
Rule.RuleMatcherALL_METHODS, configMap, description, excludeMatchers, excludeOn, includeMatchers, includeOn, log, name, order, params| Constructor and Description |
|---|
DbAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureOp(io.inversion.utils.Task task,
Op op)
This task has been selected to run as part of the supplied operation, this
callback allows actions to perform any custom configuration on the op.
|
protected java.util.List<Rule.RuleMatcher> |
getDefaultIncludeMatchers()
Designed to allow subclasses to provide a default match behavior
of no configuration was provided by the developer.
|
DbDeleteAction |
getDeleteAction() |
DbGetAction |
getGetAction() |
protected java.util.LinkedHashSet<io.inversion.utils.Path> |
getIncludePaths(Api api,
Db db,
java.lang.String method) |
io.inversion.action.db.DbPatchAction |
getPatchAction() |
io.inversion.action.db.DbPostAction |
getPostAction() |
io.inversion.action.db.DbPutAction |
getPutAction() |
protected java.lang.String |
getResourceKeyParamName(Collection c) |
io.swagger.v3.oas.models.Operation |
hook_documentOp(io.inversion.utils.Task docChain,
io.swagger.v3.oas.models.OpenAPI openApi,
java.util.List<Op> ops,
Op op,
java.util.Map<java.lang.Object,io.swagger.v3.oas.models.media.Schema> schemas) |
void |
run(Request req,
Response res)
Override this method with your custom business logic or override one of the
http method "doMETHOD" specific handlers.
|
DbAction |
withDeleteAction(DbDeleteAction deleteAction) |
DbAction |
withGetAction(DbGetAction getAction) |
DbAction |
withPatchAction(io.inversion.action.db.DbPatchAction patchAction) |
DbAction |
withPostAction(io.inversion.action.db.DbPostAction postAction) |
DbAction |
withPutAction(io.inversion.action.db.DbPutAction putAction) |
doDelete, doGet, doPatch, doPost, doPut, getFullIncludePaths, isDecoration, joinPaths, joinPaths0, run0, withDecorationafterWiringComplete, checkLazyConfig, compareTo, doLazyConfig, getAllExcludePaths, getAllIncludeMethods, getAllIncludePaths, getDescription, getExcludeMatchers, getIncludeMatchers, getName, getOrder, getParams, match, match, matches, matches, toString, withDescription, withExcludeOn, withExcludeOn, withIncludeOn, withIncludeOn, withName, withOrder, withParam, withParamsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddResponse, addResponse, beautifyTag, buildOperation, documentOpDelete, documentOperationSchema, documentOpFind, documentOpGet, documentOpPatch, documentOpPost, documentOpPut, documentOpRelated, documentParam, documentQueryParams, documentRequestSchema, documentResourceSchema, documentResponseSchema, findOp, getDescription, getSchemaRef, hasParam, newComponentRefSchema, newHrefSchema, newTypeSchema, removeReadOnlyPropertiesprotected java.util.List<Rule.RuleMatcher> getDefaultIncludeMatchers()
RulegetDefaultIncludeMatchers in class Rule<DbAction>protected java.util.LinkedHashSet<io.inversion.utils.Path> getIncludePaths(Api api, Db db, java.lang.String method)
getIncludePaths in class Action<DbAction>public void configureOp(io.inversion.utils.Task task,
Op op)
ActionconfigureOp in class Action<DbAction>public io.swagger.v3.oas.models.Operation hook_documentOp(io.inversion.utils.Task docChain,
io.swagger.v3.oas.models.OpenAPI openApi,
java.util.List<Op> ops,
Op op,
java.util.Map<java.lang.Object,io.swagger.v3.oas.models.media.Schema> schemas)
hook_documentOp in interface OpenAPIWriter<DbAction>public void run(Request req, Response res) throws ApiException
Actionrun in class Action<DbAction>req - the Request being servicedres - the Reponse being generatedApiExceptionprotected java.lang.String getResourceKeyParamName(Collection c)
public DbGetAction getGetAction()
public DbAction withGetAction(DbGetAction getAction)
public io.inversion.action.db.DbPostAction getPostAction()
public DbAction withPostAction(io.inversion.action.db.DbPostAction postAction)
public io.inversion.action.db.DbPutAction getPutAction()
public DbAction withPutAction(io.inversion.action.db.DbPutAction putAction)
public io.inversion.action.db.DbPatchAction getPatchAction()
public DbAction withPatchAction(io.inversion.action.db.DbPatchAction patchAction)
public DbDeleteAction getDeleteAction()
public DbAction withDeleteAction(DbDeleteAction deleteAction)
Copyright © 2023 Rocket Partners, LLC. All rights reserved.