Service to perform processing of data between the DAO and View layers
| Type | Name and description |
|---|---|
java.lang.Object |
grailsApplication |
java.lang.Object |
qualityService |
java.lang.Object |
webServicesService |
| Type Params | Return Type | Name and description |
|---|---|---|
|
org.grails.web.json.JSONObject |
augmentRecord(org.grails.web.json.JSONObject record)Add markup, links, etc., to certain field values. |
|
java.lang.String |
createQueryWithTaxaParam(java.util.List taxaQueries, java.util.List guidsForTaxa)Generate SOLR query from a taxa[] query |
|
java.util.LinkedHashMap |
getAllFacets(java.util.List defaultFacets)Build a LinkedHashMap form of the facets to display in the customise drop down div |
|
java.util.Map |
getAllGroupedFacets(java.util.Map groupedFacets, java.lang.Object facetResults, java.lang.Object dynamicFacets)Add any ungrouped facets from search results to the groupedFacetsMap used to construct the facets column in search results. |
|
static java.lang.String |
getCookieValue(javax.servlet.http.Cookie[] cookies, java.lang.String cookieName, java.lang.String defaultValue)Utility method for getting a named cookie value from the HttpServletRepsonse cookies array |
|
java.lang.String[] |
getFacetsFromCookie(javax.servlet.http.HttpServletRequest request)Read the request cookie to determine which facets are active |
|
java.lang.String[] |
getFilteredFacets(java.util.LinkedHashMap<java.lang.String, java.lang.Boolean> finalFacetsMap)Filter the Map of all facets to produce a list of only the "active" or selected facets |
|
java.util.List |
getGroupedAssertions(org.grails.web.json.JSONArray userAssertions, org.grails.web.json.JSONArray queryAssertions, java.lang.String currentUserId)Get the assertions grouped by assertion code. |
|
java.util.List |
getListFromGroupedFacets(java.util.Map groupedFacets)Extract list of facet fields from the grouped facets Map (json) |
|
java.util.List |
getListOfLayerIds(SpatialSearchRequestParams searchRequestParams)Find any cl1234 or el1234 layer IDs in the q or fq params and return a list of layer IDs |
|
java.util.List |
getListOfLayerObjects(java.util.List layerIdsList)For a given list of layer IDs (el1234 or cl456) do a lookup against spatial service for metadata for the layer ID and return a list of layer objects. |
|
java.util.List |
getListOfLayers(SpatialSearchRequestParams searchRequestParams)Find any cl1234 or el1234 layer IDs in the q or fq params and return a list of layer objects containing layer metadata |
|
java.util.Map |
getMapOfFacetResults(org.grails.web.json.JSONArray facetResults)Create a Map of facet fields for a "lookup" in _facets.gsp Also normalises some fields (decade) |
|
java.util.List |
getMetadataForOutlierLayers(org.grails.web.json.JSONObject record, java.util.Map layersMetaData)Add layers metadata to outlier for layer record attributes |
|
java.util.List |
getUngroupedFacetsList(java.util.Map groupedFacets, java.lang.Object facetResults)Get a list of facet fields (from search results) that are NOT in the grouped facets Map. |
|
java.lang.String[] |
mergeRequestedFacets(java.util.List requestedFacets, java.util.List customFacets)Merge requested and custom facets |
|
java.util.Map |
processUserFQInteraction(SpatialSearchRequestParams requestParams, java.lang.Object activeFacetObj) |
|
java.lang.Boolean |
resultsHaveImages(org.grails.web.json.JSONObject searchResults)Determine if the record contains images |
|
java.lang.Object |
translateValues(java.lang.Object qualityFiltersByLabel, java.lang.Object propertyMap, java.lang.Object assertionMap) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), 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() |
Add markup, links, etc., to certain field values. Due to the way the record page is generated in a field-agnostic way, it makes it hard to add field-specific formatting in the current output taglib (formatExtraDwC). TODO: move record key string values into enum or config (e.g. Location & Occurrence)
Generate SOLR query from a taxa[] query
Build a LinkedHashMap form of the facets to display in the customise drop down div
Add any ungrouped facets from search results to the groupedFacetsMap used to construct the facets column in search results.
Utility method for getting a named cookie value from the HttpServletRepsonse cookies array
Read the request cookie to determine which facets are active
Filter the Map of all facets to produce a list of only the "active" or selected facets
Get the assertions grouped by assertion code.
Extract list of facet fields from the grouped facets Map (json)
Find any cl1234 or el1234 layer IDs in the q or fq params and return a list of layer IDs
For a given list of layer IDs (el1234 or cl456) do a lookup against spatial service for metadata for the layer ID and return a list of layer objects.
Find any cl1234 or el1234 layer IDs in the q or fq params and return a list of layer objects containing layer metadata
Create a Map of facet fields for a "lookup" in _facets.gsp Also normalises some fields (decade)
Add layers metadata to outlier for layer record attributes
Get a list of facet fields (from search results) that are NOT in the grouped facets Map.
Merge requested and custom facets
Determine if the record contains images