Class 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 Detail

      • LOG

        public static final org.slf4j.Logger LOG
      • DEFAULT_TYPE

        public static String DEFAULT_TYPE
    • Constructor Detail

      • GeoportalExporterAPI

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

      • 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