Skip to content

Commit

Permalink
Use new lists API, move WebService to ecodata-client-plugin #3454
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Feb 24, 2025
1 parent 3e7fe45 commit a2b2af9
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 608 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ dependencies {
providedCompile "io.methvin:directory-watcher:0.4.0"

if (!Boolean.valueOf(inplace)) {
implementation "org.grails.plugins:ecodata-client-plugin:7.2.1"
implementation "org.grails.plugins:ecodata-client-plugin:7.3-SNAPSHOT"
}
}

Expand Down
6 changes: 2 additions & 4 deletions grails-app/conf/application.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ if (!sld.polgon.default.url) {
if (!sld.polgon.highlight.url) {
sld.polgon.highlight.url = "http://fish.ala.org.au/data/fc-highlight.sld"
}
if (!lists.baseURL) {
lists.baseURL = "https://lists.ala.org.au"
}

//this is for SpeciesService class in Merit
if (!bie.service.baseURL) {
Expand Down Expand Up @@ -207,7 +204,8 @@ if (!pdfgen.baseURL){

abn.abnLookupToken = "Insert abn Token here"
abn.abnUrl= "https://abr.business.gov.au/json/AbnDetails.aspx?abn="

lists.baseURL = "https://lists-ws.test.ala.org.au"
//lists.baseURL = "https://lists-test.ala.org.au/ws"
esp.activities.admin = 'ESP Annual Report Submission'
reports.initialScrollPositionDelay = 1000
risks.scheduleCheckingPeriod = 7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ class ProxyController {
render webService.get("${grailsApplication.config.getProperty('lists.baseURL')}/ws/speciesList?druid=${params.druid}", false)
}

def speciesItemsForList() {
render webService.get("${grailsApplication.config.getProperty('lists.baseURL')}/ws/speciesListItems/${params.druid}?includeKVP=true", false)
}

def intersect(){
render webService.get("${grailsApplication.config.getProperty('spatial.layersUrl')}/intersect/${params.layerId}/${params.lat}/${params.lng}", false)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package au.org.ala.merit

import au.org.ala.ecodata.forms.SpeciesListService

class SpeciesListController {

static responseFormats = ['json', 'xml']
private static final int DEFAULT_PAGE_SIZE = 500
SpeciesListService speciesListService

def speciesListItems(String druid, Integer pageSize, Integer page) {
if (!druid) {
respond null
}
List speciesList = speciesListService.speciesListItems(druid, pageSize ?: DEFAULT_PAGE_SIZE, page ?: 1)
respond speciesList
}
}
Loading

0 comments on commit a2b2af9

Please sign in to comment.