Class GetRuleByGroup

java.lang.Object
net.lightapi.portal.rule.query.handler.GetRuleByGroup
All Implemented Interfaces:
com.networknt.rpc.HybridHandler

public class GetRuleByGroup extends Object implements com.networknt.rpc.HybridHandler
This is the endpoint that is used by a service to load during the startup to execute a group of rules at the same time. Most of the case, it is for the validation rules so that a list of validation rules will be executed together and each will validate one business rule. The return object is a list of maps.
Author:
Steve Hu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static net.lightapi.portal.db.PortalDbProvider
     

    Fields inherited from interface com.networknt.rpc.HybridHandler

    ERROR_NOT_DEFINED, REQUEST_SUCCESS, STATUS_VALIDATION_ERROR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    handle(io.undertow.server.HttpServerExchange exchange, Object input)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.networknt.rpc.HybridHandler

    getStatus, getStatus, validate
  • Field Details

    • dbProvider

      public static net.lightapi.portal.db.PortalDbProvider dbProvider
  • Constructor Details

    • GetRuleByGroup

      public GetRuleByGroup()
  • Method Details

    • handle

      public ByteBuffer handle(io.undertow.server.HttpServerExchange exchange, Object input)
      Specified by:
      handle in interface com.networknt.rpc.HybridHandler