Class DbAction

    • Constructor Detail

      • DbAction

        public DbAction()
    • Method Detail

      • getDefaultIncludeMatchers

        protected java.util.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 java.util.LinkedHashSet<io.inversion.utils.Path> getIncludePaths​(Api api,
                                                                                   Db db,
                                                                                   java.lang.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 java.lang.String getResourceKeyParamName​(Collection c)
      • 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)