code import fixes
This commit is contained in:
parent
4b8afcc00b
commit
1dd9716bdc
|
@ -12,6 +12,9 @@ public class PlanDescriptionTemplateImportExport {
|
|||
@XmlElement(name = "descriptionTemplateGroupId")
|
||||
private UUID descriptionTemplateGroupId;
|
||||
|
||||
@XmlElement(name = "descriptionTemplateCode")
|
||||
private String descriptionTemplateCode;
|
||||
|
||||
@XmlElement(name = "sectionId")
|
||||
private UUID sectionId;
|
||||
|
||||
|
@ -30,4 +33,12 @@ public class PlanDescriptionTemplateImportExport {
|
|||
public void setSectionId(UUID sectionId) {
|
||||
this.sectionId = sectionId;
|
||||
}
|
||||
|
||||
public String getDescriptionTemplateCode() {
|
||||
return descriptionTemplateCode;
|
||||
}
|
||||
|
||||
public void setDescriptionTemplateCode(String descriptionTemplateCode) {
|
||||
this.descriptionTemplateCode = descriptionTemplateCode;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -842,7 +842,7 @@ public class DescriptionTemplateServiceImpl implements DescriptionTemplateServic
|
|||
|
||||
}
|
||||
}
|
||||
throw new MyValidationException(this.errors.getDescriptionTemplateTypeImportNotFound().getCode(), !this.conventionService.isNullOrEmpty(importXml.getCode()) ? importXml.getCode() : importXml.getName());
|
||||
throw new MyValidationException(this.errors.getDescriptionTemplateTypeImportNotFound().getCode(), importXml.getCode());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -122,7 +122,7 @@ public class ReferenceTypeFieldDataHelperService extends BaseFieldDataHelperServ
|
|||
ReferenceTypeEntity referenceTypeEntity = data.getReferenceTypeId() != null ? this.queryFactory.query(ReferenceTypeQuery.class).disableTracking().ids(data.getReferenceTypeId()).disableTracking().firstAs(new BaseFieldSet().ensure(ReferenceType._id)) : null;
|
||||
if (referenceTypeEntity == null){
|
||||
if (!this.conventionService.isNullOrEmpty(data.getReferenceTypeCode())) referenceTypeEntity = this.queryFactory.query(ReferenceTypeQuery.class).disableTracking().codes(data.getReferenceTypeCode()).disableTracking().firstAs(new BaseFieldSet().ensure(ReferenceType._id));
|
||||
if (referenceTypeEntity == null) throw new MyValidationException(this.errors.getReferenceTypeImportNotFound().getCode(), !this.conventionService.isNullOrEmpty(data.getReferenceTypeCode()) ? data.getReferenceTypeCode() : data.getReferenceTypeName());
|
||||
if (referenceTypeEntity == null) throw new MyValidationException(this.errors.getReferenceTypeImportNotFound().getCode(), data.getReferenceTypeCode());
|
||||
}
|
||||
persist.setMultipleSelect(data.getMultipleSelect());
|
||||
persist.setReferenceTypeId(referenceTypeEntity.getId());
|
||||
|
@ -134,7 +134,7 @@ public class ReferenceTypeFieldDataHelperService extends BaseFieldDataHelperServ
|
|||
ReferenceTypeEntity referenceTypeEntity = data.getReferenceType() != null && data.getReferenceType().getId() != null ? this.queryFactory.query(ReferenceTypeQuery.class).disableTracking().ids(data.getReferenceType().getId()).disableTracking().firstAs(new BaseFieldSet().ensure(ReferenceType._id)) : null;
|
||||
if (referenceTypeEntity == null){
|
||||
if (!this.conventionService.isNullOrEmpty(data.getReferenceType().getCode())) referenceTypeEntity = this.queryFactory.query(ReferenceTypeQuery.class).disableTracking().codes(data.getReferenceType().getCode()).disableTracking().firstAs(new BaseFieldSet().ensure(ReferenceType._id));
|
||||
if (referenceTypeEntity == null) throw new MyValidationException(this.errors.getReferenceTypeImportNotFound().getCode(), data.getReferenceType() != null ? data.getReferenceType().getCode() : this.errors.getReferenceTypeImportNotFound().getMessage());
|
||||
if (referenceTypeEntity == null) throw new MyValidationException(this.errors.getReferenceTypeImportNotFound().getCode(), data.getReferenceType().getCode());
|
||||
}
|
||||
persist.setMultipleSelect(data.getMultipleSelect());
|
||||
persist.setReferenceTypeId(referenceTypeEntity.getId());
|
||||
|
|
|
@ -1782,18 +1782,25 @@ public class PlanServiceImpl implements PlanService {
|
|||
List<PlanDescriptionTemplateEntity> planDescriptionTemplateEntities = this.queryFactory.query(PlanDescriptionTemplateQuery.class).disableTracking().authorize(AuthorizationFlags.All).planIds(data.getId()).isActive(IsActive.Active).collect();
|
||||
if (!this.conventionService.isListNullOrEmpty(planDescriptionTemplateEntities)) {
|
||||
List<PlanDescriptionTemplateImportExport> planDescriptionTemplateImportExports = new LinkedList<>();
|
||||
List<org.opencdmp.data.DescriptionTemplateEntity> templatesWithCode = this.queryFactory.query(DescriptionTemplateQuery.class).disableTracking().groupIds(planDescriptionTemplateEntities.stream().map(PlanDescriptionTemplateEntity::getDescriptionTemplateGroupId).distinct().collect(Collectors.toList())).disableTracking().collectAs(new BaseFieldSet().ensure(org.opencdmp.data.DescriptionTemplateEntity._code).ensure(org.opencdmp.data.DescriptionTemplateEntity._groupId));
|
||||
|
||||
for (PlanDescriptionTemplateEntity descriptionTemplateEntity : planDescriptionTemplateEntities) {
|
||||
planDescriptionTemplateImportExports.add(this.planDescriptionTemplateToExport(descriptionTemplateEntity));
|
||||
planDescriptionTemplateImportExports.add(this.planDescriptionTemplateToExport(descriptionTemplateEntity, templatesWithCode));
|
||||
}
|
||||
return planDescriptionTemplateImportExports;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private PlanDescriptionTemplateImportExport planDescriptionTemplateToExport(PlanDescriptionTemplateEntity entity) {
|
||||
private PlanDescriptionTemplateImportExport planDescriptionTemplateToExport(PlanDescriptionTemplateEntity entity, List<org.opencdmp.data.DescriptionTemplateEntity> templatesWithCode) {
|
||||
PlanDescriptionTemplateImportExport xml = new PlanDescriptionTemplateImportExport();
|
||||
if (entity == null) return xml;
|
||||
|
||||
if (!this.conventionService.isListNullOrEmpty(templatesWithCode)) {
|
||||
org.opencdmp.data.DescriptionTemplateEntity code = templatesWithCode.stream().filter(x -> x.getGroupId().equals(entity.getDescriptionTemplateGroupId())).findFirst().orElse(null);
|
||||
if (code != null) xml.setDescriptionTemplateCode(code.getCode());
|
||||
}
|
||||
|
||||
xml.setDescriptionTemplateGroupId(entity.getDescriptionTemplateGroupId());
|
||||
xml.setSectionId(entity.getSectionId());
|
||||
|
||||
|
@ -2068,7 +2075,18 @@ public class PlanServiceImpl implements PlanService {
|
|||
|
||||
PlanDescriptionTemplatePersist persist = new PlanDescriptionTemplatePersist();
|
||||
|
||||
persist.setDescriptionTemplateGroupId(importXml.getDescriptionTemplateGroupId());
|
||||
org.opencdmp.data.DescriptionTemplateEntity data = importXml.getDescriptionTemplateGroupId() != null ? this.queryFactory.query(DescriptionTemplateQuery.class).disableTracking().groupIds(importXml.getDescriptionTemplateGroupId()).disableTracking().firstAs(new BaseFieldSet().ensure(DescriptionTemplate._groupId)) : null;
|
||||
if (data != null ) {
|
||||
persist.setDescriptionTemplateGroupId(importXml.getDescriptionTemplateGroupId());
|
||||
} else {
|
||||
if (!this.conventionService.isNullOrEmpty(importXml.getDescriptionTemplateCode())) {
|
||||
data = this.queryFactory.query(DescriptionTemplateQuery.class).disableTracking().codes(importXml.getDescriptionTemplateCode()).disableTracking().firstAs(new BaseFieldSet().ensure(DescriptionTemplate._code).ensure(DescriptionTemplate._groupId));
|
||||
if (data != null) persist.setDescriptionTemplateGroupId(data.getGroupId());
|
||||
}
|
||||
}
|
||||
|
||||
if (data == null) throw new MyValidationException(this.errors.getDescriptionTemplateImportNotFound().getCode(), importXml.getDescriptionTemplateCode());
|
||||
|
||||
persist.setSectionId(importXml.getSectionId());
|
||||
|
||||
return persist;
|
||||
|
|
|
@ -60,6 +60,7 @@ import java.io.IOException;
|
|||
import java.nio.charset.StandardCharsets;
|
||||
import java.time.Instant;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Service
|
||||
public class PlanBlueprintServiceImpl implements PlanBlueprintService {
|
||||
|
@ -580,8 +581,10 @@ public class PlanBlueprintServiceImpl implements PlanBlueprintService {
|
|||
|
||||
List<BlueprintDescriptionTemplateImportExport> planBlueprintDescriptionTemplates = new LinkedList<>();
|
||||
if (!this.conventionService.isListNullOrEmpty(entity.getDescriptionTemplates())) {
|
||||
List<org.opencdmp.data.DescriptionTemplateEntity> templatesWithCode = this.queryFactory.query(DescriptionTemplateQuery.class).disableTracking().groupIds(entity.getDescriptionTemplates().stream().map(DescriptionTemplateEntity::getDescriptionTemplateGroupId).distinct().collect(Collectors.toList())).disableTracking().collectAs(new BaseFieldSet().ensure(org.opencdmp.data.DescriptionTemplateEntity._code).ensure(org.opencdmp.data.DescriptionTemplateEntity._groupId));
|
||||
|
||||
for (DescriptionTemplateEntity descriptionTemplate : entity.getDescriptionTemplates()) {
|
||||
planBlueprintDescriptionTemplates.add(this.blueprintDescriptionTemplateXmlToExport(descriptionTemplate));
|
||||
planBlueprintDescriptionTemplates.add(this.blueprintDescriptionTemplateXmlToExport(descriptionTemplate, templatesWithCode));
|
||||
}
|
||||
}
|
||||
xml.setDescriptionTemplates(planBlueprintDescriptionTemplates);
|
||||
|
@ -596,11 +599,15 @@ public class PlanBlueprintServiceImpl implements PlanBlueprintService {
|
|||
return xml;
|
||||
}
|
||||
|
||||
private BlueprintDescriptionTemplateImportExport blueprintDescriptionTemplateXmlToExport(DescriptionTemplateEntity entity) {
|
||||
private BlueprintDescriptionTemplateImportExport blueprintDescriptionTemplateXmlToExport(DescriptionTemplateEntity entity, List<org.opencdmp.data.DescriptionTemplateEntity> templatesWithCode) {
|
||||
BlueprintDescriptionTemplateImportExport xml = new BlueprintDescriptionTemplateImportExport();
|
||||
org.opencdmp.data.DescriptionTemplateEntity data = this.queryFactory.query(DescriptionTemplateQuery.class).disableTracking().groupIds(entity.getDescriptionTemplateGroupId()).disableTracking().firstAs(new BaseFieldSet().ensure(org.opencdmp.data.DescriptionTemplateEntity._code));
|
||||
|
||||
if (data != null) xml.setDescriptionTemplateCode(data.getCode());
|
||||
if (entity == null) return xml;
|
||||
|
||||
if (!this.conventionService.isListNullOrEmpty(templatesWithCode)) {
|
||||
org.opencdmp.data.DescriptionTemplateEntity code = templatesWithCode.stream().filter(x -> x.getGroupId().equals(entity.getDescriptionTemplateGroupId())).findFirst().orElse(null);
|
||||
if (code != null) xml.setDescriptionTemplateCode(code.getCode());
|
||||
}
|
||||
xml.setDescriptionTemplateGroupId(entity.getDescriptionTemplateGroupId());
|
||||
xml.setLabel(entity.getLabel());
|
||||
if (entity.getMinMultiplicity() != null ) xml.setMinMultiplicity(entity.getMinMultiplicity());
|
||||
|
@ -812,7 +819,7 @@ public class PlanBlueprintServiceImpl implements PlanBlueprintService {
|
|||
}
|
||||
}
|
||||
|
||||
if (data == null) throw new MyValidationException(this.errors.getDescriptionTemplateImportNotFound().getCode(), !this.conventionService.isNullOrEmpty(importXml.getDescriptionTemplateCode()) ? importXml.getDescriptionTemplateCode() : importXml.getDescriptionTemplateGroupId().toString());
|
||||
if (data == null) throw new MyValidationException(this.errors.getDescriptionTemplateImportNotFound().getCode(), importXml.getDescriptionTemplateCode());
|
||||
|
||||
persist.setLabel(importXml.getLabel());
|
||||
persist.setMinMultiplicity(importXml.getMinMultiplicity());
|
||||
|
|
|
@ -83,11 +83,12 @@
|
|||
"USAGE-LIMIT-EXCEPTION": "Υou have exceeded the {{usageLimitLabel}} usage limit. Please contact your administrator.",
|
||||
"USAGE-LIMIT-METRIC-ALLREADY-EXISTS": "This usage limit metric is already defined in this tenant. Change metric or select other tenant.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-CODE-EXISTS": "The description template type code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type {{descriptionTemplateTypeLabel}} not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type {{referenceTypeCode}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template {{descriptionTemplateLabel}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type with code '{{descriptionTemplateTypeLabel}}' not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type with code '{{referenceTypeCode}}' not found.",
|
||||
"DESCRIPTION-TEMPLATE-CODE-EXISTS": "The description template code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template with code '{{descriptionTemplateLabel}}' not found.",
|
||||
"PLAN-BLUEPRINT-CODE-EXISTS": "The plan blueprint code you provided already exists. Please choose a different code.",
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint {{planBlueprintLabel}} not found."
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint with code '{{planBlueprintLabel}}' not found."
|
||||
},
|
||||
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||
"WARNING": "Kontuz!",
|
||||
|
|
|
@ -83,11 +83,12 @@
|
|||
"USAGE-LIMIT-EXCEPTION": "Υou have exceeded the {{usageLimitLabel}} usage limit. Please contact your administrator.",
|
||||
"USAGE-LIMIT-METRIC-ALLREADY-EXISTS": "This usage limit metric is already defined in this tenant. Change metric or select other tenant.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-CODE-EXISTS": "The description template type code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type {{descriptionTemplateTypeLabel}} not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type {{referenceTypeCode}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template {{descriptionTemplateLabel}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type with code '{{descriptionTemplateTypeLabel}}' not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type with code '{{referenceTypeCode}}' not found.",
|
||||
"DESCRIPTION-TEMPLATE-CODE-EXISTS": "The description template code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template with code '{{descriptionTemplateLabel}}' not found.",
|
||||
"PLAN-BLUEPRINT-CODE-EXISTS": "The plan blueprint code you provided already exists. Please choose a different code.",
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint {{planBlueprintLabel}} not found."
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint with code '{{planBlueprintLabel}}' not found."
|
||||
},
|
||||
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||
"WARNING": "Warnung!",
|
||||
|
|
|
@ -83,12 +83,12 @@
|
|||
"USAGE-LIMIT-EXCEPTION": "Υou have exceeded the {{usageLimitLabel}} usage limit. Please contact your administrator.",
|
||||
"USAGE-LIMIT-METRIC-ALLREADY-EXISTS": "This usage limit metric is already defined in this tenant. Change metric or select other tenant.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-CODE-EXISTS": "The description template type code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type {{descriptionTemplateTypeLabel}} not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type {{referenceTypeCode}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type with code '{{descriptionTemplateTypeLabel}}' not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type with code '{{referenceTypeCode}}' not found.",
|
||||
"DESCRIPTION-TEMPLATE-CODE-EXISTS": "The description template code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template {{descriptionTemplateLabel}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template with code '{{descriptionTemplateLabel}}' not found.",
|
||||
"PLAN-BLUEPRINT-CODE-EXISTS": "The plan blueprint code you provided already exists. Please choose a different code.",
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint {{planBlueprintLabel}} not found."
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint with code '{{planBlueprintLabel}}' not found."
|
||||
},
|
||||
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||
"WARNING": "Warning!",
|
||||
|
|
|
@ -83,11 +83,12 @@
|
|||
"USAGE-LIMIT-EXCEPTION": "Υou have exceeded the {{usageLimitLabel}} usage limit. Please contact your administrator.",
|
||||
"USAGE-LIMIT-METRIC-ALLREADY-EXISTS": "This usage limit metric is already defined in this tenant. Change metric or select other tenant.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-CODE-EXISTS": "The description template type code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type {{descriptionTemplateTypeLabel}} not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type {{referenceTypeCode}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template {{descriptionTemplateLabel}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type with code '{{descriptionTemplateTypeLabel}}' not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type with code '{{referenceTypeCode}}' not found.",
|
||||
"DESCRIPTION-TEMPLATE-CODE-EXISTS": "The description template code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template with code '{{descriptionTemplateLabel}}' not found.",
|
||||
"PLAN-BLUEPRINT-CODE-EXISTS": "The plan blueprint code you provided already exists. Please choose a different code.",
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint {{planBlueprintLabel}} not found."
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint with code '{{planBlueprintLabel}}' not found."
|
||||
},
|
||||
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||
"WARNING": "Atención!",
|
||||
|
|
|
@ -83,11 +83,12 @@
|
|||
"USAGE-LIMIT-EXCEPTION": "Υou have exceeded the {{usageLimitLabel}} usage limit. Please contact your administrator.",
|
||||
"USAGE-LIMIT-METRIC-ALLREADY-EXISTS": "This usage limit metric is already defined in this tenant. Change metric or select other tenant.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-CODE-EXISTS": "The description template type code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type {{descriptionTemplateTypeLabel}} not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type {{referenceTypeCode}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template {{descriptionTemplateLabel}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type with code '{{descriptionTemplateTypeLabel}}' not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type with code '{{referenceTypeCode}}' not found.",
|
||||
"DESCRIPTION-TEMPLATE-CODE-EXISTS": "The description template code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template with code '{{descriptionTemplateLabel}}' not found.",
|
||||
"PLAN-BLUEPRINT-CODE-EXISTS": "The plan blueprint code you provided already exists. Please choose a different code.",
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint {{planBlueprintLabel}} not found."
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint with code '{{planBlueprintLabel}}' not found."
|
||||
},
|
||||
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||
"WARNING": "Προσοχή!",
|
||||
|
|
|
@ -83,11 +83,12 @@
|
|||
"USAGE-LIMIT-EXCEPTION": "Υou have exceeded the {{usageLimitLabel}} usage limit. Please contact your administrator.",
|
||||
"USAGE-LIMIT-METRIC-ALLREADY-EXISTS": "This usage limit metric is already defined in this tenant. Change metric or select other tenant.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-CODE-EXISTS": "The description template type code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type {{descriptionTemplateTypeLabel}} not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type {{referenceTypeCode}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template {{descriptionTemplateLabel}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type with code '{{descriptionTemplateTypeLabel}}' not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type with code '{{referenceTypeCode}}' not found.",
|
||||
"DESCRIPTION-TEMPLATE-CODE-EXISTS": "The description template code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template with code '{{descriptionTemplateLabel}}' not found.",
|
||||
"PLAN-BLUEPRINT-CODE-EXISTS": "The plan blueprint code you provided already exists. Please choose a different code.",
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint {{planBlueprintLabel}} not found."
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint with code '{{planBlueprintLabel}}' not found."
|
||||
},
|
||||
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||
"WARNING": "Oprez!",
|
||||
|
|
|
@ -83,11 +83,12 @@
|
|||
"USAGE-LIMIT-EXCEPTION": "Υou have exceeded the {{usageLimitLabel}} usage limit. Please contact your administrator.",
|
||||
"USAGE-LIMIT-METRIC-ALLREADY-EXISTS": "This usage limit metric is already defined in this tenant. Change metric or select other tenant.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-CODE-EXISTS": "The description template type code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type {{descriptionTemplateTypeLabel}} not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type {{referenceTypeCode}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template {{descriptionTemplateLabel}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type with code '{{descriptionTemplateTypeLabel}}' not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type with code '{{referenceTypeCode}}' not found.",
|
||||
"DESCRIPTION-TEMPLATE-CODE-EXISTS": "The description template code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template with code '{{descriptionTemplateLabel}}' not found.",
|
||||
"PLAN-BLUEPRINT-CODE-EXISTS": "The plan blueprint code you provided already exists. Please choose a different code.",
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint {{planBlueprintLabel}} not found."
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint with code '{{planBlueprintLabel}}' not found."
|
||||
},
|
||||
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||
"WARNING": "Ostrzeżenie!",
|
||||
|
|
|
@ -83,11 +83,12 @@
|
|||
"USAGE-LIMIT-EXCEPTION": "Υou have exceeded the {{usageLimitLabel}} usage limit. Please contact your administrator.",
|
||||
"USAGE-LIMIT-METRIC-ALLREADY-EXISTS": "This usage limit metric is already defined in this tenant. Change metric or select other tenant.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-CODE-EXISTS": "The description template type code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type {{descriptionTemplateTypeLabel}} not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type {{referenceTypeCode}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template {{descriptionTemplateLabel}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type with code '{{descriptionTemplateTypeLabel}}' not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type with code '{{referenceTypeCode}}' not found.",
|
||||
"DESCRIPTION-TEMPLATE-CODE-EXISTS": "The description template code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template with code '{{descriptionTemplateLabel}}' not found.",
|
||||
"PLAN-BLUEPRINT-CODE-EXISTS": "The plan blueprint code you provided already exists. Please choose a different code.",
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint {{planBlueprintLabel}} not found."
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint with code '{{planBlueprintLabel}}' not found."
|
||||
},
|
||||
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||
"WARNING": "Atenção!",
|
||||
|
|
|
@ -83,11 +83,12 @@
|
|||
"USAGE-LIMIT-EXCEPTION": "Υou have exceeded the {{usageLimitLabel}} usage limit. Please contact your administrator.",
|
||||
"USAGE-LIMIT-METRIC-ALLREADY-EXISTS": "This usage limit metric is already defined in this tenant. Change metric or select other tenant.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-CODE-EXISTS": "The description template type code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type {{descriptionTemplateTypeLabel}} not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type {{referenceTypeCode}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template {{descriptionTemplateLabel}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type with code '{{descriptionTemplateTypeLabel}}' not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type with code '{{referenceTypeCode}}' not found.",
|
||||
"DESCRIPTION-TEMPLATE-CODE-EXISTS": "The description template code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template with code '{{descriptionTemplateLabel}}' not found.",
|
||||
"PLAN-BLUEPRINT-CODE-EXISTS": "The plan blueprint code you provided already exists. Please choose a different code.",
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint {{planBlueprintLabel}} not found."
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint with code '{{planBlueprintLabel}}' not found."
|
||||
},
|
||||
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||
"WARNING": "Upozornenie!",
|
||||
|
|
|
@ -83,11 +83,12 @@
|
|||
"USAGE-LIMIT-EXCEPTION": "Υou have exceeded the {{usageLimitLabel}} usage limit. Please contact your administrator.",
|
||||
"USAGE-LIMIT-METRIC-ALLREADY-EXISTS": "This usage limit metric is already defined in this tenant. Change metric or select other tenant.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-CODE-EXISTS": "The description template type code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type {{descriptionTemplateTypeLabel}} not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type {{referenceTypeCode}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template {{descriptionTemplateLabel}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type with code '{{descriptionTemplateTypeLabel}}' not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type with code '{{referenceTypeCode}}' not found.",
|
||||
"DESCRIPTION-TEMPLATE-CODE-EXISTS": "The description template code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template with code '{{descriptionTemplateLabel}}' not found.",
|
||||
"PLAN-BLUEPRINT-CODE-EXISTS": "The plan blueprint code you provided already exists. Please choose a different code.",
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint {{planBlueprintLabel}} not found."
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint with code '{{planBlueprintLabel}}' not found."
|
||||
},
|
||||
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||
"WARNING": "Oprez!",
|
||||
|
|
|
@ -83,11 +83,12 @@
|
|||
"USAGE-LIMIT-EXCEPTION": "Υou have exceeded the {{usageLimitLabel}} usage limit. Please contact your administrator.",
|
||||
"USAGE-LIMIT-METRIC-ALLREADY-EXISTS": "This usage limit metric is already defined in this tenant. Change metric or select other tenant.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-CODE-EXISTS": "The description template type code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type {{descriptionTemplateTypeLabel}} not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type {{referenceTypeCode}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template {{descriptionTemplateLabel}} not found.",
|
||||
"DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND": "Description template type with code '{{descriptionTemplateTypeLabel}}' not found.",
|
||||
"REFERENCE-TYPE-IMPORT-NOT-FOUND": "Reference type with code '{{referenceTypeCode}}' not found.",
|
||||
"DESCRIPTION-TEMPLATE-CODE-EXISTS": "The description template code you provided already exists. Please choose a different code.",
|
||||
"DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND": "Description template with code '{{descriptionTemplateLabel}}' not found.",
|
||||
"PLAN-BLUEPRINT-CODE-EXISTS": "The plan blueprint code you provided already exists. Please choose a different code.",
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint {{planBlueprintLabel}} not found."
|
||||
"PLAN-BLUEPRINT-IMPORT-NOT-FOUND": "Plan blueprint with code '{{planBlueprintLabel}}' not found."
|
||||
},
|
||||
"FORM-VALIDATION-DISPLAY-DIALOG": {
|
||||
"WARNING": "Uyarı!",
|
||||
|
|
|
@ -19,13 +19,13 @@ export class HttpErrorHandlingService {
|
|||
if(errorResponse.error && ResponseErrorCodeHelper.isBackendError(errorResponse.error?.code)){
|
||||
if (errorResponse.error.code === ResponseErrorCode.UsageLimitException && errorResponse.error.error){
|
||||
this.uiNotificationService.snackBarNotification(this.language.instant('GENERAL.BACKEND-ERRORS.USAGE-LIMIT-EXCEPTION', { 'usageLimitLabel': errorResponse.error.error }), SnackBarNotificationLevel.Error);
|
||||
} if (errorResponse.error.code === ResponseErrorCode.descriptionTemplateTypeImportNotFound){
|
||||
} else if (errorResponse.error.code === ResponseErrorCode.descriptionTemplateTypeImportNotFound){
|
||||
this.uiNotificationService.snackBarNotification(this.language.instant('GENERAL.BACKEND-ERRORS.DESCRIPTION-TEMPLATE-TYPE-IMPORT-NOT-FOUND', { 'descriptionTemplateTypeLabel': errorResponse.error.error }), SnackBarNotificationLevel.Error);
|
||||
} if (errorResponse.error.code === ResponseErrorCode.referenceTypeImportNotFound){
|
||||
} else if (errorResponse.error.code === ResponseErrorCode.referenceTypeImportNotFound){
|
||||
this.uiNotificationService.snackBarNotification(this.language.instant('GENERAL.BACKEND-ERRORS.REFERENCE-TYPE-IMPORT-NOT-FOUND', { 'referenceTypeCode': errorResponse.error.error }), SnackBarNotificationLevel.Error);
|
||||
} if (errorResponse.error.code === ResponseErrorCode.descriptionTemplateImportNotFound){
|
||||
} else if (errorResponse.error.code === ResponseErrorCode.descriptionTemplateImportNotFound){
|
||||
this.uiNotificationService.snackBarNotification(this.language.instant('GENERAL.BACKEND-ERRORS.DESCRIPTION-TEMPLATE-IMPORT-NOT-FOUND', { 'descriptionTemplateLabel': errorResponse.error.error }), SnackBarNotificationLevel.Error);
|
||||
} if (errorResponse.error.code === ResponseErrorCode.planBlueprintImportNotFound){
|
||||
} else if (errorResponse.error.code === ResponseErrorCode.planBlueprintImportNotFound){
|
||||
this.uiNotificationService.snackBarNotification(this.language.instant('GENERAL.BACKEND-ERRORS.PLAN-BLUEPRINT-IMPORT-NOT-FOUND', { 'planBlueprintLabel': errorResponse.error.error }), SnackBarNotificationLevel.Error);
|
||||
} else {
|
||||
this.uiNotificationService.snackBarNotification(ResponseErrorCodeHelper.getErrorMessageByBackendStatusCode(errorResponse.error.code, this.language), SnackBarNotificationLevel.Error);
|
||||
|
|
Loading…
Reference in New Issue