-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 2.25.x] [GEOS-11267] csw-iso: multiple mappings should have…
… multiple queryabl… (#7518) * [GEOS-11267] csw-iso: multiple mappings should have multiple queryables mappings * [GEOS-11267] csw-iso: multiple mappings should have multiple queryables mappings (fixes) --------- Co-authored-by: NielsCharlier <niels@scitus.be>
- Loading branch information
1 parent
e0a1787
commit c980f1a
Showing
18 changed files
with
431 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/extension/csw/api/src/main/java/org/geoserver/csw/records/QueryablesMapping.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* (c) 2024 Open Source Geospatial Foundation - all rights reserved | ||
* This code is licensed under the GPL 2.0 license, available at the root | ||
* application directory. | ||
*/ | ||
package org.geoserver.csw.records; | ||
|
||
import java.util.List; | ||
import org.geotools.api.data.Query; | ||
import org.geotools.api.feature.type.Name; | ||
import org.geotools.api.filter.expression.PropertyName; | ||
|
||
/** | ||
* A mapping of CSW queryables to properties of the metadata record schema. Provides functionality | ||
* for translating properties and adapting queries. | ||
*/ | ||
public interface QueryablesMapping { | ||
|
||
/** | ||
* Allow the descriptor to adjust the query to the internal representation of records. For | ||
* example, in the case of SimpleLiteral we have a complex type with simple content, something | ||
* that we cannot readily represent in GeoTools | ||
* | ||
* <p>Must provide a copy, not change the original query. | ||
*/ | ||
Query adaptQuery(Query query); | ||
|
||
/** | ||
* Return the property name (with dots) for the bounding box property | ||
* | ||
* @return the bounding box property name | ||
*/ | ||
String getBoundingBoxPropertyName(); | ||
|
||
/** | ||
* Translate a property from a queryable name to a propertyname, possibly converting to an | ||
* x-path | ||
* | ||
* @return the property name | ||
*/ | ||
List<PropertyName> translateProperty(Name name); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.