Class PDFExporterConfigProvider


  • public class PDFExporterConfigProvider
    extends Object
    Retrieves available 'PDF Exporter Config' from a single Generic Resource - secondary Type : "CMS" - name : "PDF_Exporter_Config".
    Author:
    Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Nov 20, 2023
    • Constructor Detail

      • PDFExporterConfigProvider

        public PDFExporterConfigProvider()
        Instantiates a new exporter file provider.
    • Method Detail

      • readConfigsFromGR

        protected PDFExporterConfig readConfigsFromGR()
                                               throws Exception
        Read configs from GR.
        Returns:
        the PDF exporter project config
        Throws:
        Exception - the exception
      • getGcubeGenericQueryString

        public static String getGcubeGenericQueryString​(String secondaryType,
                                                        String resourceName)
        Gets the gcube generic query string.
        Parameters:
        secondaryType - the secondary type
        resourceName - the resource name
        Returns:
        the gcube generic query string
      • fromXml

        public <T> T fromXml​(String xml,
                             Class<T> clazz)
        Deserializes a XML text to Object.
        Type Parameters:
        T - the generic type
        Parameters:
        xml - the xml
        clazz - the clazz
        Returns:
        the t