Class TenantController


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

      • TenantController

        public TenantController​(TenantService tenantService)
    • Method Detail

      • getTenantList

        @GetMapping("/")
        public org.springframework.http.ResponseEntity<List<Tenant>> getTenantList()
      • getTenant

        @GetMapping("/{id}")
        public org.springframework.http.ResponseEntity<Tenant> getTenant​(@PathVariable @Min(0L)
                                                                         @Min(0L) Integer id)
      • createTenant

        @PostMapping("/add")
        public org.springframework.http.ResponseEntity<Tenant> createTenant​(@RequestBody @Valid
                                                                            @Valid RosterStateView initialRosterStateView)
      • deleteTenant

        @PostMapping("/remove/{id}")
        public org.springframework.http.ResponseEntity<Boolean> deleteTenant​(@PathVariable @Min(0L)
                                                                             @Min(0L) Integer id)
      • getRosterConstraintConfiguration

        @GetMapping("/{tenantId}/config/constraint")
        public org.springframework.http.ResponseEntity<RosterConstraintConfiguration> getRosterConstraintConfiguration​(@PathVariable @Min(0L)
                                                                                                                       @Min(0L) Integer tenantId)
      • getSupportedTimezones

        @GetMapping("/supported/timezones")
        public org.springframework.http.ResponseEntity<List<ZoneId>> getSupportedTimezones()