Class UserPermissionEndpoint


  • @FrameworkRestController
    @FrameworkMapping("/permissions")
    public class UserPermissionEndpoint
    extends Object
    Endpoint for CRUD operations on UserPermissions
    Author:
    Chris Getz
    • Method Detail

      • readAllPermissions

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

        @FrameworkGetMapping("/{id}")
        @Policy(permissionRoots="PERMISSION",
                operationTypes=READ)
        public UserPermission readPermission​(@PathVariable("id")
                                             String id)
      • createPermission

        @FrameworkPostMapping
        @Policy(permissionRoots="PERMISSION",
                operationTypes=CREATE)
        public UserPermission createPermission​(@RequestBody
                                               UserPermission req)
      • replacePermission

        @FrameworkPutMapping("/{id}")
        @Policy(permissionRoots="PERMISSION",
                operationTypes=UPDATE)
        public UserPermission replacePermission​(@PathVariable("id")
                                                String id,
                                                @RequestBody
                                                UserPermission req)
      • deletePermission

        @FrameworkDeleteMapping("/{id}")
        @Policy(permissionRoots="PERMISSION",
                operationTypes=DELETE)
        public void deletePermission​(@PathVariable("id")
                                     String id)
      • readByIds

        @FrameworkGetMapping("/ids")
        @Policy(permissionRoots="PERMISSION",
                operationTypes=READ)
        public Set<UserPermission> readByIds​(@RequestParam(name="ids")
                                             Collection<String> ids)