diff --git a/src/main/java/eu/nimble/indexing/utils/PartyTypeUtils.java b/src/main/java/eu/nimble/indexing/utils/PartyTypeUtils.java index 4cf5f08..d528037 100644 --- a/src/main/java/eu/nimble/indexing/utils/PartyTypeUtils.java +++ b/src/main/java/eu/nimble/indexing/utils/PartyTypeUtils.java @@ -1,24 +1,23 @@ -package eu.nimble.indexing.utils; - -import eu.nimble.service.model.solr.party.PartyType; - -public class PartyTypeUtils { - public static PartyType template() { - PartyType p = new PartyType(); - p.setId("uri"); - p.setLegalName("legalName"); - p.addLabel("en","name"); - p.addOrigin("en","origin"); - p.addCertificateType("en", "certificateType"); - p.setPpapComplianceLevel(3); - p.addPpapDocumentType("en","ppapDocumentType"); - p.setTrustDeliveryPackaging(0.0d); - p.setTrustFullfillmentOfTerms(0.0d); - p.setTrustNumberOfTransactions(0.0d); - p.setTrustRating(0.0d); - p.setTrustScore(0.0d); - p.setTrustSellerCommunication(0.0d); - p.setTrustTradingVolume(0.0d); - return p; - } -} +package eu.nimble.indexing.utils; + +import eu.nimble.service.model.solr.party.PartyType; + +public class PartyTypeUtils { + public static PartyType template() { + PartyType p = new PartyType(); + p.setId("uri"); + p.setLegalName("legalName"); + p.addLabel("en","name"); + p.addOrigin("en","origin"); + p.setPpapComplianceLevel(3); + p.addPpapDocumentType("en","ppapDocumentType"); + p.setTrustDeliveryPackaging(0.0d); + p.setTrustFullfillmentOfTerms(0.0d); + p.setTrustNumberOfTransactions(0.0d); + p.setTrustRating(0.0d); + p.setTrustScore(0.0d); + p.setTrustSellerCommunication(0.0d); + p.setTrustTradingVolume(0.0d); + return p; + } +} diff --git a/src/main/java/eu/nimble/indexing/web/controller/IndexController.java b/src/main/java/eu/nimble/indexing/web/controller/IndexController.java index d5b8287..5db4236 100644 --- a/src/main/java/eu/nimble/indexing/web/controller/IndexController.java +++ b/src/main/java/eu/nimble/indexing/web/controller/IndexController.java @@ -503,7 +503,7 @@ public ResponseEntity setParty( PUBLISHER,COMPANY_ADMIN,EFACTORYUSER) == false) return new ResponseEntity<>("User Not Allowed To Access The Indexing End Points", HttpStatus.UNAUTHORIZED); - + logger.info("Indexing party: {}, legal name: {}",party.getId(),party.getLegalName()); partyService.set(party); return ResponseEntity.ok(Boolean.TRUE); }