This commit is contained in:
CITE\spapacharalampous 2024-08-26 16:24:59 +03:00
parent 252d712d2a
commit d8959d4180
2 changed files with 1 additions and 4 deletions

View File

@ -158,7 +158,6 @@ public class DescriptionWorkflowController {
query = query.tenantIds(this.tenantScope.getTenant()); query = query.tenantIds(this.tenantScope.getTenant());
DescriptionWorkflow model = this.builderFactory.builder(DescriptionWorkflowBuilder.class).build(fieldSet, query.firstAs(fieldSet)); DescriptionWorkflow model = this.builderFactory.builder(DescriptionWorkflowBuilder.class).build(fieldSet, query.firstAs(fieldSet));
if (model == null) throw new MyNotFoundException(this.messageSource.getMessage("General_ItemNotFound", new Object[]{DescriptionWorkflow.class.getSimpleName()}, LocaleContextHolder.getLocale()));
this.auditService.track(AuditableAction.DescriptionWorkflow_Lookup, "fieldSet", fieldSet); this.auditService.track(AuditableAction.DescriptionWorkflow_Lookup, "fieldSet", fieldSet);

View File

@ -159,7 +159,7 @@ public class PlanWorkflowController {
public PlanWorkflow GetByCurrentTenant( public PlanWorkflow GetByCurrentTenant(
@Parameter(name = "fieldSet", description = SwaggerHelpers.Commons.fieldset_description, required = true) FieldSet fieldSet, @Parameter(name = "fieldSet", description = SwaggerHelpers.Commons.fieldset_description, required = true) FieldSet fieldSet,
Locale locale Locale locale
) throws MyApplicationException, MyForbiddenException, MyNotFoundException, InvalidApplicationException { ) throws MyApplicationException, MyForbiddenException, InvalidApplicationException {
logger.debug(new MapLogEntry("retrieving" + PlanWorkflow.class.getSimpleName()).And("fields", fieldSet)); logger.debug(new MapLogEntry("retrieving" + PlanWorkflow.class.getSimpleName()).And("fields", fieldSet));
this.censorFactory.censor(PlanWorkflowCensor.class).censor(fieldSet, null); this.censorFactory.censor(PlanWorkflowCensor.class).censor(fieldSet, null);
@ -172,8 +172,6 @@ public class PlanWorkflowController {
query = query.tenantIds(this.tenantScope.getTenant()); query = query.tenantIds(this.tenantScope.getTenant());
PlanWorkflow model = this.builderFactory.builder(PlanWorkflowBuilder.class).build(fieldSet, query.firstAs(fieldSet)); PlanWorkflow model = this.builderFactory.builder(PlanWorkflowBuilder.class).build(fieldSet, query.firstAs(fieldSet));
if (model == null)
throw new MyNotFoundException(this.messageSource.getMessage("General_ItemNotFound", new Object[]{PlanWorkflow.class.getSimpleName()}, LocaleContextHolder.getLocale()));
this.auditService.track(AuditableAction.PlanWorkflow_Lookup, "fields", fieldSet); this.auditService.track(AuditableAction.PlanWorkflow_Lookup, "fields", fieldSet);