Class BaseController<Entity extends CalummaEntity,​T>


  • @RestController
    public abstract class BaseController<Entity extends CalummaEntity,​T>
    extends Object
    • Constructor Detail

      • BaseController

        public BaseController()
    • Method Detail

      • getById

        @RequestMapping(value="/{id}",
                        method=GET)
        public Entity getById​(@PathVariable("id")
                              Long id)
                       throws Throwable
        Throws:
        Throwable
      • getList

        @RequestMapping(value="/list",
                        method=GET)
        public org.springframework.data.domain.Page<Entity> getList​(@RequestParam(required=false)
                                                                    String filters,
                                                                    org.springframework.data.domain.Pageable pageInfo)
      • queryEntity

        @RequestMapping(value="/query",
                        method=GET)
        public org.springframework.data.domain.Page<Entity> queryEntity​(@RequestParam(required=false)
                                                                        String filters,
                                                                        @RequestParam(required=false)
                                                                        String projection,
                                                                        org.springframework.data.domain.Pageable pageInfo)
                                                                 throws Throwable
        Throws:
        Throwable
      • queryEntityPost

        @RequestMapping(value="/query",
                        method=POST)
        public org.springframework.data.domain.Page<Entity> queryEntityPost​(@RequestBody
                                                                            ClientRequest clientRequest)
                                                                     throws Throwable
        Throws:
        Throwable