Class DbAction

java.lang.Object
io.inversion.Rule<A>
io.inversion.Action<DbAction>
io.inversion.action.db.DbAction
All Implemented Interfaces:
Comparable<DbAction>

public class DbAction extends Action<DbAction>
  • Constructor Details

    • DbAction

      public DbAction()
  • Method Details

    • getDefaultIncludeMatchers

      protected List<Rule.RuleMatcher> getDefaultIncludeMatchers()
      Description copied from class: Rule
      Designed to allow subclasses to provide a default match behavior of no configuration was provided by the developer.
      Overrides:
      getDefaultIncludeMatchers in class Rule<DbAction>
      Returns:
      the default include match "*","*"
    • getIncludePaths

      protected LinkedHashSet<io.inversion.utils.Path> getIncludePaths(Api api, Db db, String method)
      Overrides:
      getIncludePaths in class Action<DbAction>
    • configureOp

      public void configureOp(io.inversion.utils.Task task, Op op)
      Description copied from class: Action
      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.
      Overrides:
      configureOp in class Action<DbAction>
    • run

      public void run(Request req, Response res) throws ApiException
      Description copied from class: Action
      Override this method with your custom business logic or override one of the http method "doMETHOD" specific handlers.
      Overrides:
      run in class Action<DbAction>
      Parameters:
      req - the Request being serviced
      res - the Reponse being generated
      Throws:
      ApiException
    • getResourceKeyParamName

      protected 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)