Package io.inversion.action.db
Class DbAction
- java.lang.Object
-
- io.inversion.Rule<A>
-
- io.inversion.Action<DbAction>
-
- io.inversion.action.db.DbAction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.inversion.Rule
Rule.RuleMatcher
-
-
Field Summary
-
Fields inherited from class io.inversion.Rule
ALL_METHODS, configMap, description, excludeMatchers, excludeOn, includeMatchers, includeOn, log, name, order, params
-
-
Constructor Summary
Constructors Constructor Description DbAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureOp(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.DbDeleteActiongetDeleteAction()DbGetActiongetGetAction()protected java.util.LinkedHashSet<io.inversion.utils.Path>getIncludePaths(Api api, Db db, java.lang.String method)io.inversion.action.db.DbPatchActiongetPatchAction()io.inversion.action.db.DbPostActiongetPostAction()io.inversion.action.db.DbPutActiongetPutAction()protected java.lang.StringgetResourceKeyParamName(Collection c)voidrun(Request req, Response res)Override this method with your custom business logic or override one of the http method "doMETHOD" specific handlers.DbActionwithDeleteAction(DbDeleteAction deleteAction)DbActionwithGetAction(DbGetAction getAction)DbActionwithPatchAction(io.inversion.action.db.DbPatchAction patchAction)DbActionwithPostAction(io.inversion.action.db.DbPostAction postAction)DbActionwithPutAction(io.inversion.action.db.DbPutAction putAction)-
Methods inherited from class io.inversion.Action
doDelete, doGet, doPatch, doPost, doPut, getFullIncludePaths, isDecoration, joinPaths, joinPaths0, run0, withDecoration
-
Methods inherited from class io.inversion.Rule
afterWiringComplete, 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, withParams
-
-
-
-
Method Detail
-
getDefaultIncludeMatchers
protected java.util.List<Rule.RuleMatcher> getDefaultIncludeMatchers()
Description copied from class:RuleDesigned to allow subclasses to provide a default match behavior of no configuration was provided by the developer.- Overrides:
getDefaultIncludeMatchersin classRule<DbAction>- Returns:
- the default include match "*","*"
-
getIncludePaths
protected java.util.LinkedHashSet<io.inversion.utils.Path> getIncludePaths(Api api, Db db, java.lang.String method)
- Overrides:
getIncludePathsin classAction<DbAction>
-
configureOp
public void configureOp(io.inversion.utils.Task task, Op op)Description copied from class:ActionThis task has been selected to run as part of the supplied operation, this callback allows actions to perform any custom configuration on the op.- Overrides:
configureOpin classAction<DbAction>
-
run
public void run(Request req, Response res) throws ApiException
Description copied from class:ActionOverride this method with your custom business logic or override one of the http method "doMETHOD" specific handlers.- Overrides:
runin classAction<DbAction>- Parameters:
req- the Request being servicedres- the Reponse being generated- Throws:
ApiException
-
getResourceKeyParamName
protected java.lang.String getResourceKeyParamName(Collection c)
-
getGetAction
public DbGetAction getGetAction()
-
withGetAction
public DbAction withGetAction(DbGetAction getAction)
-
getPostAction
public io.inversion.action.db.DbPostAction getPostAction()
-
withPostAction
public DbAction withPostAction(io.inversion.action.db.DbPostAction postAction)
-
getPutAction
public io.inversion.action.db.DbPutAction getPutAction()
-
withPutAction
public DbAction withPutAction(io.inversion.action.db.DbPutAction putAction)
-
getPatchAction
public io.inversion.action.db.DbPatchAction getPatchAction()
-
withPatchAction
public DbAction withPatchAction(io.inversion.action.db.DbPatchAction patchAction)
-
getDeleteAction
public DbDeleteAction getDeleteAction()
-
withDeleteAction
public DbAction withDeleteAction(DbDeleteAction deleteAction)
-
-