Package io.inversion.action.db
Class DbDeleteAction<A extends DbDeleteAction>
- java.lang.Object
-
- io.inversion.Rule<A>
-
- io.inversion.Action<A>
-
- io.inversion.action.db.DbDeleteAction<A>
-
- All Implemented Interfaces:
java.lang.Comparable<A>
public class DbDeleteAction<A extends DbDeleteAction> extends Action<A>
-
-
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 DbDeleteAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intdelete(Engine engine, Collection collection, Url url)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.voidrun(Request req, Response res)Override this method with your custom business logic or override one of the http method "doMETHOD" specific handlers.-
Methods inherited from class io.inversion.Action
configureOp, doDelete, doGet, doPatch, doPost, doPut, getFullIncludePaths, getIncludePaths, 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<A extends DbDeleteAction>- Returns:
- the default include match "*","*"
-
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<A extends DbDeleteAction>- Parameters:
req- the Request being servicedres- the Reponse being generated- Throws:
ApiException
-
delete
protected int delete(Engine engine, Collection collection, Url url) throws ApiException
- Throws:
ApiException
-
-