Package io.inversion.action.db
Class DbAction
- All Implemented Interfaces:
Comparable<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 -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureOp(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 List<Rule.RuleMatcher>Designed to allow subclasses to provide a default match behavior of no configuration was provided by the developer.protected LinkedHashSet<io.inversion.utils.Path>getIncludePaths(Api api, Db db, String method) io.inversion.action.db.DbPatchActionio.inversion.action.db.DbPostActionio.inversion.action.db.DbPutActionprotected StringvoidOverride this method with your custom business logic or override one of the http method "doMETHOD" specific handlers.withDeleteAction(DbDeleteAction deleteAction) withGetAction(DbGetAction getAction) withPatchAction(io.inversion.action.db.DbPatchAction patchAction) withPostAction(io.inversion.action.db.DbPostAction postAction) withPutAction(io.inversion.action.db.DbPutAction putAction) Methods inherited from class io.inversion.Action
doDelete, doGet, doPatch, doPost, doPut, getFullIncludePaths, isDecoration, joinPaths, joinPaths0, run0, withDecorationMethods 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
-
Constructor Details
-
DbAction
public DbAction()
-
-
Method Details
-
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
- Overrides:
getIncludePathsin classAction<DbAction>
-
configureOp
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
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
-
getGetAction
-
withGetAction
-
getPostAction
public io.inversion.action.db.DbPostAction getPostAction() -
withPostAction
-
getPutAction
public io.inversion.action.db.DbPutAction getPutAction() -
withPutAction
-
getPatchAction
public io.inversion.action.db.DbPatchAction getPatchAction() -
withPatchAction
-
getDeleteAction
-
withDeleteAction
-