Package com.onec.ui
Class CatalogCommandService
java.lang.Object
com.onec.ui.CatalogCommandService
Write-side commands for catalogs — create, update, delete. Extracted from
GenericCatalogController so the REST API and other callers (e.g. the MCP
server) share one write path, and read-only mode + UiAccessService write
checks are enforced in a single place against the caller's Principal.-
Constructor Summary
ConstructorsConstructorDescriptionCatalogCommandService(org.jdbi.v3.core.Jdbi jdbi, UiProperties properties, NumberGenerator numberGenerator, CatalogQueryService query, UiAccessService access, org.springframework.context.ApplicationEventPublisher events, SecretCipher secretCipher) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(CatalogDescriptor desc, UUID id, Principal principal)
-
Constructor Details
-
CatalogCommandService
public CatalogCommandService(org.jdbi.v3.core.Jdbi jdbi, UiProperties properties, NumberGenerator numberGenerator, CatalogQueryService query, UiAccessService access, org.springframework.context.ApplicationEventPublisher events, SecretCipher secretCipher)
-
-
Method Details
-
create
-
update
-
delete
-