diff --git a/backend/core/src/main/java/org/opencdmp/model/builder/descriptionstatus/DescriptionStatusBuilder.java b/backend/core/src/main/java/org/opencdmp/model/builder/descriptionstatus/DescriptionStatusBuilder.java index 4174dc6d2..bee2d6180 100644 --- a/backend/core/src/main/java/org/opencdmp/model/builder/descriptionstatus/DescriptionStatusBuilder.java +++ b/backend/core/src/main/java/org/opencdmp/model/builder/descriptionstatus/DescriptionStatusBuilder.java @@ -7,6 +7,7 @@ import gr.cite.tools.logging.DataLogEntry; import gr.cite.tools.logging.LoggerService; import org.opencdmp.authorization.AuthorizationFlags; import org.opencdmp.commons.XmlHandlingService; +import org.opencdmp.commons.scope.tenant.TenantScope; import org.opencdmp.commons.types.descriptionstatus.DescriptionStatusDefinitionEntity; import org.opencdmp.convention.ConventionService; import org.opencdmp.data.DescriptionStatusEntity; @@ -24,11 +25,13 @@ import java.util.*; public class DescriptionStatusBuilder extends BaseBuilder { private EnumSet authorize = EnumSet.of(AuthorizationFlags.None); + private final TenantScope tenantScope; private final BuilderFactory builderFactory; private final XmlHandlingService xmlHandlingService; - public DescriptionStatusBuilder(ConventionService conventionService, BuilderFactory builderFactory, XmlHandlingService xmlHandlingService) { + public DescriptionStatusBuilder(ConventionService conventionService, TenantScope tenantScope, BuilderFactory builderFactory, XmlHandlingService xmlHandlingService) { super(conventionService, new LoggerService(LoggerFactory.getLogger(DescriptionStatusBuilder.class))); + this.tenantScope = tenantScope; this.builderFactory = builderFactory; this.xmlHandlingService = xmlHandlingService; } @@ -57,6 +60,7 @@ public class DescriptionStatusBuilder extends BaseBuilder