use of org.devgateway.ocds.persistence.mongo.Publisher in project ocvn by devgateway.
the class OcdsController method createReleasePackage.
public ReleasePackage createReleasePackage(final Release release) {
ReleasePackage releasePackage = new ReleasePackage();
releasePackage.setLicense("https://creativecommons.org/licenses/by/2.0/");
releasePackage.setPublicationPolicy("https://github.com/open-contracting/sample-data/");
releasePackage.setPublishedDate(release.getDate());
releasePackage.getReleases().add(release);
releasePackage.setUri(SERVER_DOMAIN + "/api/ocds/package/ocid/" + release.getOcid());
Publisher publisher = new Publisher();
publisher.setName("Government of Vietnam: Public Procurement Agency");
publisher.setScheme("VN-PPA");
publisher.setUid(release.getOcid());
publisher.setUri(SERVER_DOMAIN);
releasePackage.setPublisher(publisher);
return releasePackage;
}
Aggregations