Skip to main content

CertificateTemplateController

The certificate template library behind Recognition & Awards.

Base path/api/certificate-templates
ModuleHR
Endpoints8
OpenAPI tagCertificate Templates
Sourcebackend/src/main/java/com/motorph/payroll/controller/CertificateTemplateController.java

Endpoints​

MethodPathRequiresHandler
GET/api/certificate-templatespayroll.settings.managelist()
GET/api/certificate-templates/designspayroll.settings.managedesigns()
POST/api/certificate-templatespayroll.settings.managecreate()
PUT/api/certificate-templates/{id}payroll.settings.manageupdate()
DELETE/api/certificate-templates/{id}payroll.settings.managedelete()
PUT/api/certificate-templates/{id}/activatepayroll.settings.manageactivate()
PUT/api/certificate-templates/{id}/deactivatepayroll.settings.managedeactivate()
POST/api/certificate-templates/previewpayroll.settings.managepreview()

Notes​

  • POST /api/certificate-templates/preview — Sample render for the manager's live preview; the params come from unsaved form state.
note

This controller carries one @PreAuthorize on the class, which Spring applies to every handler. 8 of its 8 endpoints inherit it rather than declaring their own.

Call chain​

Dependencies​

Constructor-injected by Lombok's @RequiredArgsConstructor: CertificateTemplateService.

Tables reached​

EntityTableTenant-scoped
CertificateTemplatecertificate_templateYes
CompanyProfilecompany_profileYes
PayrollSettingspayroll_settingsYes

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/.