Class UserRoleEndpoint


  • @FrameworkRestController
    @FrameworkMapping("/roles")
    public class UserRoleEndpoint
    extends Object
    Endpoint for CRUD operations on UserRoles
    Author:
    Chris Getz
    • Method Detail

      • readAllRoles

        @FrameworkGetMapping
        @Policy(permissionRoots="ROLE",
                operationTypes=READ)
        public org.springframework.data.domain.Page<UserRole> readAllRoles​(@RequestParam(value="q",required=false)
                                                                           String query,
                                                                           @PageableDefault(size=50)
                                                                           org.springframework.data.domain.Pageable page)
      • readRole

        @FrameworkGetMapping("/{id}")
        @Policy(permissionRoots="ROLE",
                operationTypes=READ)
        public UserRole readRole​(@PathVariable("id")
                                 String id)
      • createRole

        @FrameworkPostMapping
        @Policy(permissionRoots="ROLE",
                operationTypes=CREATE)
        public UserRole createRole​(@RequestBody
                                   UserRole req)
      • replaceRole

        @FrameworkPutMapping("/{id}")
        @Policy(permissionRoots="ROLE",
                operationTypes=UPDATE)
        public UserRole replaceRole​(@PathVariable("id")
                                    String id,
                                    @RequestBody
                                    UserRole req)
      • deleteRole

        @FrameworkDeleteMapping("/{id}")
        @Policy(permissionRoots="ROLE",
                operationTypes=DELETE)
        public void deleteRole​(@PathVariable("id")
                               String id)
      • findByIdIn

        @FrameworkGetMapping("/ids")
        @Policy(permissionRoots="ROLE",
                operationTypes=READ)
        public List<UserRole> findByIdIn​(@RequestParam(name="ids")
                                         Collection<String> ids)
      • logDebug

        protected void logDebug​(Exception ex,
                                org.springframework.web.context.request.WebRequest request)