Class UserController

java.lang.Object
cn.sparrow.common.controller.UserController
public class UserControllerextends Object
  • Constructor Details

    • UserController

      public  UserController()
  • Method Details

    • addModelPermissions

      @PatchMapping("/users/{username}/addModelPermissions") public  void  addModelPermissions(@NotEmpty @PathVariable("username") @NotEmpty String username, @NotNull @RequestBody Set<AbstractModelPermissionPK> modelPermissionPKs)
    • delModelPermissions

      @PatchMapping("/users/{username}/delModelPermissions") public  void  delModelPermissions(@NotEmpty @PathVariable("username") @NotEmpty String username, @NotNull @RequestBody Set<AbstractModelPermissionPK> modelPermissionPKs)
    • addDataPermissions

      @PatchMapping("/users/{username}/addDataPermissions") public  void  addDataPermissions(@NotEmpty @PathVariable("username") @NotEmpty String username, @NotNull @RequestBody Set<AbstractDataPermissionPK> dataPermissionPKs)
    • delDataPermissions

      @PatchMapping("/users/{username}/delDataPermissions") public  void  delDataPermissions(@NotEmpty @PathVariable("username") @NotEmpty String username, @NotNull @RequestBody Set<AbstractDataPermissionPK> dataPermissionPKs)