Class GeoportalExporterAPI

java.lang.Object
org.gcube.portlets.user.uriresolvermanager.geoportal.GeoportalExporterAPI

public class GeoportalExporterAPI extends Object
The Class GeoportalExporterAPI. The endpoints provided by GeoportalExporter service in the URI-Resolver service
Author:
Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Apr 23, 2024
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
      Logger for this class.
    • DEFAULT_TYPE

      public static String DEFAULT_TYPE
      Default export type.
  • Constructor Details

    • GeoportalExporterAPI

      public GeoportalExporterAPI() throws Exception
      Instantiates a new geoportal exporter API.
      Throws:
      Exception - the exception
  • Method Details

    • exportProject

      public URL exportProject(String type, String ucdID, String projectID, boolean asDirectURLToPDFFile) throws MalformedURLException
      Export project.
      Parameters:
      type - the type
      ucdID - the ucd ID
      projectID - the project ID
      asDirectURLToPDFFile - the as direct URL to PDF file
      Returns:
      the url
      Throws:
      MalformedURLException - the malformed URL exception
    • exportProject

      public String exportProject(String type, String ucdID, String projectID, boolean asDirectURLToPDFFile, boolean shortLink) throws MalformedURLException
      Export project.
      Parameters:
      type - the type
      ucdID - the ucd ID
      projectID - the project ID
      asDirectURLToPDFFile - the as direct URL to PDF file
      shortLink - the short link
      Returns:
      the string
      Throws:
      MalformedURLException - the malformed URL exception
    • viewJob

      public URL viewJob(String jobCode) throws MalformedURLException
      View job.
      Parameters:
      jobCode - the job code
      Returns:
      the url
      Throws:
      MalformedURLException - the malformed URL exception
    • healthcheck

      public URL healthcheck(String type) throws MalformedURLException
      Healthcheck.
      Parameters:
      type - the type
      Returns:
      the url
      Throws:
      MalformedURLException - the malformed URL exception