Class TenantController


  • @RestController
    @RequestMapping("/api/tenant")
    public class TenantController
    extends Object
    • Constructor Detail

      • TenantController

        public TenantController()
    • Method Detail

      • lastCommand

        @GetMapping("/{nftId}/lastCommand")
        @RolesAllowed("USER")
        public String lastCommand​(@PathVariable(name="nftId")
                                  long nftId,
                                  Principal principal)
      • startTenant

        @PostMapping("/{nftId}")
        @RolesAllowed("USER")
        public void startTenant​(@PathVariable(name="nftId")
                                long nftId,
                                @RequestParam(name="email",required=false)
                                String email,
                                @RequestParam(name="transactionHash",required=true)
                                String transactionHash,
                                Principal principal)
      • stopTenant

        @DeleteMapping("/{nftId}")
        @RolesAllowed("USER")
        public void stopTenant​(@PathVariable(name="nftId")
                               long nftId,
                               @RequestParam(name="transactionHash",required=true)
                               String transactionHash,
                               Principal principal)
      • updateEmail

        @PatchMapping(path="/{nftId}")
        @RolesAllowed("USER")
        public void updateEmail​(@PathVariable(name="nftId")
                                long nftId,
                                @RequestParam(name="email",required=true)
                                String email,
                                Principal principal)