class DownloadService extends java.lang.Object
Service to perform the records downloads (marshalls to appropriate web service)
| Type | Name and description |
|---|---|
BiocacheService |
biocacheService |
java.lang.Object |
grailsApplication |
java.lang.Object |
webService |
| Constructor and description |
|---|
DownloadService
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.util.List |
getLoggerReasons()Get the list of reason codes from logger system TODO: provide option to read this from a config file |
|
java.util.List |
getLoggerSources()Get the list of reason sources from logger system TODO: provide option to read this from a config file |
|
java.util.Map |
triggerDownload(DownloadParams downloadParams)Records download service |
|
java.lang.Object |
triggerFieldGuideDownload(java.lang.String params)Prepare the field guide download request to be sent to the field-guide server |
|
java.util.Map |
triggerOfflineDownload(DownloadParams downloadParams)Send the occurrences download request to biocache-service |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Get the list of reason codes from logger system TODO: provide option to read this from a config file @return
Get the list of reason sources from logger system TODO: provide option to read this from a config file @return
Records download service
Prepare the field guide download request to be sent to the field-guide server @return
Send the occurrences download request to biocache-service
Groovy Documentation