Class GeoportalResolver
- java.lang.Object
-
- org.gcube.datatransfer.resolver.services.GeoportalResolver
-
@Path("/geo") public class GeoportalResolver extends ObjectThe GeoportalResolver is able to get/resolve a link to "Geoportal Viewer" or "Geoportal Entry" Application. See more at https://gcube.wiki.gcube-system.org/gcube/URI_Resolver#Geoportal_Resolver- Author:
- Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Mar 23, 2023
-
-
Constructor Summary
Constructors Constructor Description GeoportalResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgenericCreateLink(javax.servlet.http.HttpServletRequest req, GeoportalRequest jsonRequest, TargetAppGeoportalCodes targetAppGeoportalCodes)Generic create link.javax.ws.rs.core.ResponsegenericResolveLink(javax.servlet.http.HttpServletRequest req, TargetAppGeoportalCodes resoruceGeoportalCodes, String vreName, String ucdID, String projectID, String resolveAs)Generic resolve link.javax.ws.rs.core.ResponsepostGeoportal(javax.servlet.http.HttpServletRequest req, String targetAppId, GeoportalRequest jsonRequest)Post geoportal.javax.ws.rs.core.ResponsepostGeoportalNoAppDef(javax.servlet.http.HttpServletRequest req, GeoportalRequest jsonRequest)Post geoportal.javax.ws.rs.core.ResponseresolveDataViewerLink(javax.servlet.http.HttpServletRequest req, String gcubeScope, String itemId, String itemType, String resolveAs)Resolve data viewer link.javax.ws.rs.core.ResponseresolveGeoportal(javax.servlet.http.HttpServletRequest req, String targetAppId, String vreName, String ucdID, String projectID, String resolveAs)Resolve geoportal.javax.ws.rs.core.ResponseresolveGeoportalNoAppDef(javax.servlet.http.HttpServletRequest req, String vreName, String ucdID, String projectID, String resolveAs)Resolve geoportal.
-
-
-
Field Detail
-
GEO_DE
public static final String GEO_DE
- See Also:
- Constant Field Values
-
GEO
public static final String GEO
- See Also:
- Constant Field Values
-
GEO_DV
public static final String GEO_DV
- See Also:
- Constant Field Values
-
-
Method Detail
-
resolveGeoportalNoAppDef
@GET @Path("/{vre_name}/{usecase_id}/{project_id}") public javax.ws.rs.core.Response resolveGeoportalNoAppDef(@Context javax.servlet.http.HttpServletRequest req, @PathParam("vre_name") String vreName, @PathParam("usecase_id") String ucdID, @PathParam("project_id") String projectID, @QueryParam("res") String resolveAs) throws javax.ws.rs.WebApplicationExceptionResolve geoportal. Resolve a Geoportal Link to "Data-Viewer" App- Parameters:
req- the reqvreName- the vre nameucdID- the ucd IDprojectID- the project IDresolveAs- the resolve as- Returns:
- the response
- Throws:
javax.ws.rs.WebApplicationException- the web application exception
-
resolveGeoportal
@GET @Path("/{targetAppId}/{vre_name}/{usecase_id}/{project_id}") public javax.ws.rs.core.Response resolveGeoportal(@Context javax.servlet.http.HttpServletRequest req, @PathParam("targetAppId") String targetAppId, @PathParam("vre_name") String vreName, @PathParam("usecase_id") String ucdID, @PathParam("project_id") String projectID, @QueryParam("res") String resolveAs) throws javax.ws.rs.WebApplicationExceptionResolve geoportal. Resolve a Geoportal Link to "Data-Viewer" or "Data-Entry" App- Parameters:
req- the reqtargetAppId- the target app idvreName- the vre nameucdID- the ucd IDprojectID- the project IDresolveAs- the resolve as- Returns:
- the response
- Throws:
javax.ws.rs.WebApplicationException- the web application exception
-
resolveDataViewerLink
@GET @Path("/") public javax.ws.rs.core.Response resolveDataViewerLink(@Context javax.servlet.http.HttpServletRequest req, @QueryParam("gcube_scope") String gcubeScope, @QueryParam("item_id") String itemId, @QueryParam("item_type") String itemType, @QueryParam("res") String resolveAs) throws javax.ws.rs.WebApplicationExceptionResolve data viewer link.- Parameters:
req- the reqgcubeScope- the gcube scopeitemId- the item iditemType- the item typeresolveAs- the resolve as- Returns:
- the response
- Throws:
javax.ws.rs.WebApplicationException- the web application exception
-
postGeoportalNoAppDef
@POST @Path("") @Consumes("application/json") @Produces("text/plain") public javax.ws.rs.core.Response postGeoportalNoAppDef(@Context javax.servlet.http.HttpServletRequest req, GeoportalRequest jsonRequest) throws javax.ws.rs.WebApplicationExceptionPost geoportal. Create a Geoportal Link to "Data-Viewer" App- Parameters:
req- the reqjsonRequest- the json request- Returns:
- the response
- Throws:
javax.ws.rs.WebApplicationException- the web application exception
-
postGeoportal
@POST @Path("/{targetAppId}") @Consumes("application/json") @Produces("text/plain") public javax.ws.rs.core.Response postGeoportal(@Context javax.servlet.http.HttpServletRequest req, @PathParam("targetAppId") String targetAppId, GeoportalRequest jsonRequest) throws javax.ws.rs.WebApplicationExceptionPost geoportal. Create a Geoportal Link to "Data-Viewer" or "Data-Entry" App- Parameters:
req- the reqtargetAppId- the target app idjsonRequest- the json request- Returns:
- the response
- Throws:
javax.ws.rs.WebApplicationException- the web application exception
-
genericResolveLink
public javax.ws.rs.core.Response genericResolveLink(@Context javax.servlet.http.HttpServletRequest req, TargetAppGeoportalCodes resoruceGeoportalCodes, @PathParam("vre_name") String vreName, @PathParam("usecase_id") String ucdID, @PathParam("project_id") String projectID, @QueryParam("res") String resolveAs) throws javax.ws.rs.WebApplicationExceptionGeneric resolve link.- Parameters:
req- the reqresoruceGeoportalCodes- the resoruce geoportal codesvreName- the vre nameucdID- the ucd IDprojectID- the project IDresolveAs- the resolve as- Returns:
- the response
- Throws:
javax.ws.rs.WebApplicationException- the web application exception
-
genericCreateLink
protected String genericCreateLink(@Context javax.servlet.http.HttpServletRequest req, GeoportalRequest jsonRequest, TargetAppGeoportalCodes targetAppGeoportalCodes)
Generic create link.- Parameters:
req- the reqjsonRequest- the json requesttargetAppGeoportalCodes- the target app geoportal codes- Returns:
- the URL
-
-