Skip to content

Commit

Permalink
Merge pull request #29 from nimble-platform/staging
Browse files Browse the repository at this point in the history
Pull Request for Release MVP 19.0.3 / FMP 13.0.3
  • Loading branch information
dogukan10 authored Feb 4, 2021
2 parents f068547 + 91fe164 commit 07f90f0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 25 deletions.
47 changes: 23 additions & 24 deletions src/main/java/eu/nimble/indexing/utils/PartyTypeUtils.java
Original file line number Diff line number Diff line change
@@ -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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 07f90f0

Please sign in to comment.