StaffingPlanController
| Base path | /api/staffing-plans |
| Module | Recruitment |
| Endpoints | 7 |
| OpenAPI tag | Staffing Plans |
| Source | backend/src/main/java/com/motorph/payroll/controller/StaffingPlanController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/staffing-plans | hr.recruitment.staffing.manage | list() |
GET | /api/staffing-plans/{id} | hr.recruitment.staffing.manage | getById() |
POST | /api/staffing-plans | hr.recruitment.staffing.manage | create() |
PUT | /api/staffing-plans/{id} | hr.recruitment.staffing.manage | update() |
DELETE | /api/staffing-plans/{id} | hr.recruitment.staffing.manage | delete() |
POST | /api/staffing-plans/{id}/items | hr.recruitment.staffing.manage | addItem() |
DELETE | /api/staffing-plans/{id}/items/{itemId} | hr.recruitment.staffing.manage | removeItem() |
note
This controller carries one @PreAuthorize on the class, which Spring applies to every handler. 7 of its 7 endpoints inherit it rather than declaring their own.
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: StaffingPlanService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| Department | department | Yes |
| Employee | employee | Yes |
| JobRequisition | job_requisition | Yes |
| StaffingPlan | staffing_plan | Yes |
| StaffingPlanItem | staffing_plan_item | Yes |
Generated page
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.