Skip to content

Commit

Permalink
Merge branch 'develop' into XRDCAT-12
Browse files Browse the repository at this point in the history
  • Loading branch information
raits authored Jun 14, 2024
2 parents 2e79434 + a3a62cb commit ddc09f0
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
commons-beanutils = "1.9.4"
commons-csv = "1.11.0"
cxf = "4.0.4"
guava = "33.2.0-jre"
guava = "33.2.1-jre"
h2 = "2.2.224"
httpclient = "5.3.1"
jackson = "2.17.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public static void main(String[] args) throws MalformedURLException, URISyntaxEx
final ListClientsTask listClientsTask = new ListClientsTask(context, listMethodsQueue, fetchCompaniesQueue,
fetchOrganizationsQueue);


long collectorInterval = taskPoolConfiguration.getCollectorInterval();
log.info("Starting up catalog collector with collector interval of {}", collectorInterval);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public class FetchOrganizationsTask implements Runnable {

public FetchOrganizationsTask(final ApplicationContext applicationContext,
final BlockingQueue<String> fetchOrganizationsQueue) {

this.catalogService = applicationContext.getBean(CatalogService.class);
this.organizationService = applicationContext.getBean(OrganizationService.class);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"type":"fi.prh.opendata.bis",
"version":"1",
"totalResults":4,
"resultsFrom":0,
"previousResultsUri":null,
"nextResultsUri":"http://localhost/v1?totalResults=true&maxResults=100&resultsFrom=100&companyRegistrationFrom=1970-01-01",
"exceptionNoticeUri":null,
"results":[
{
"businessId":"1234567-1",
"name":"Test Company 1",
"registrationDate":"2020-01-01",
"companyForm":"OY",
"detailsUri":"http://localhost/v1/1234567-1"
},
{
"businessId":"1234567-2",
"name":"Test Company 2",
"registrationDate":"2022-02-09",
"companyForm":"OY",
"detailsUri":"http://localhost/v1/1234567-2"
},
{
"businessId":"1234567-3",
"name":"Test Company 3",
"registrationDate":"2012-06-08",
"companyForm":"OY",
"detailsUri":"http://localhost/v1/1234567-3"
},
{
"businessId":"1234567-4",
"name":"Test Company 4",
"registrationDate":"2019-05-09",
"companyForm":"OY",
"detailsUri":"http://localhost/v1/1234567-4"
}
]
}

0 comments on commit ddc09f0

Please sign in to comment.