Class TenantController
- java.lang.Object
-
- org.optaweb.employeerostering.service.tenant.TenantController
-
@RestController @RequestMapping("/rest/tenant") @CrossOrigin @Validated public class TenantController extends Object
-
-
Constructor Summary
Constructors Constructor Description TenantController(TenantService tenantService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Tenant>createTenant(@Valid RosterStateView initialRosterStateView)org.springframework.http.ResponseEntity<Boolean>deleteTenant(@Min(0L) Integer id)org.springframework.http.ResponseEntity<RosterConstraintConfiguration>getRosterConstraintConfiguration(@Min(0L) Integer tenantId)org.springframework.http.ResponseEntity<List<ZoneId>>getSupportedTimezones()org.springframework.http.ResponseEntity<Tenant>getTenant(@Min(0L) Integer id)org.springframework.http.ResponseEntity<List<Tenant>>getTenantList()org.springframework.http.ResponseEntity<RosterConstraintConfiguration>updateRosterConstraintConfiguration(@Valid RosterConstraintConfigurationView rosterConstraintConfigurationView)
-
-
-
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)
-
updateRosterConstraintConfiguration
@PostMapping("/{tenantId}/config/constraint/update") public org.springframework.http.ResponseEntity<RosterConstraintConfiguration> updateRosterConstraintConfiguration(@RequestBody @Valid @Valid RosterConstraintConfigurationView rosterConstraintConfigurationView)
-
-