Class OdfXSLTHelper

    • Method Detail

      • odfRootPage

        public static String odfRootPage​(String siteName,
                                         String language)
        Get the ODF root page, for a specific site, language. If there is many ODF root pages, the first page of the list is returned.
        Parameters:
        siteName - the desired site name.
        language - the sitemap language to search in.
        Returns:
        the first ODF root page, or null if not found
      • odfRootPage

        public static String odfRootPage​(String siteName,
                                         String language,
                                         String catalog)
        Get the ODF root page, for a specific site, language and catalog.
        Parameters:
        siteName - the desired site name.
        language - the sitemap language to search in.
        catalog - The ODF catalog
        Returns:
        the ODF root page, or null if not found
      • odfPDFUrl

        public static String odfPDFUrl​(String contentId,
                                       String siteName)
        Get the PDF url of a program or a subprogram
        Parameters:
        contentId - The content id
        siteName - The site name
        Returns:
        the PDF url or empty string if the content is not a Program or SubProgram
      • parentProgramId

        public static String parentProgramId()
        Get the id of parent program from the current page
        Returns:
        the id of parent program or null if not found