Interface PageProcessorService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> processMetaData​(java.lang.String pageUrl, java.lang.String containerId, java.lang.String repositoryName)
      This method does search request for database entity based on metadata URL property
      java.util.Map<java.lang.String,​java.lang.Object> processPage​(java.lang.String pageRoot, java.lang.String html)
      Processes the given HTML page and returns a map containing information extracted from the page.
      java.util.Map<java.lang.String,​java.lang.Object> processPageTitle​(java.lang.String entityId, java.lang.String repositoryName)
      Retrieves the page title for a given entity ID and repository name.
      java.lang.String processThemeCss​(java.lang.String pageUrl)
      Processes the CSS for a given page URL and returns the modified CSS.
      java.util.Map<java.lang.String,​java.lang.Object> processTranslation​(java.lang.String pageRoot, java.lang.String articleId, java.lang.String repository)
      This method performs content manipulation on the page in order to rebuild it in an SEO-friendly way.
    • Method Detail

      • processPage

        java.util.Map<java.lang.String,​java.lang.Object> processPage​(java.lang.String pageRoot,
                                                                           java.lang.String html)
        Processes the given HTML page and returns a map containing information extracted from the page.
        Parameters:
        pageRoot - The root URL or identifier of the page.
        html - The HTML content of the page.
        Returns:
        A map containing information extracted from the page, with the key "value"
      • processPageTitle

        java.util.Map<java.lang.String,​java.lang.Object> processPageTitle​(java.lang.String entityId,
                                                                                java.lang.String repositoryName)
        Retrieves the page title for a given entity ID and repository name.
        Parameters:
        entityId - the ID of the entity
        repositoryName - the name of the repository
        Returns:
        a Map object containing the page title as a String value, with the key "value"
      • processTranslation

        java.util.Map<java.lang.String,​java.lang.Object> processTranslation​(java.lang.String pageRoot,
                                                                                  java.lang.String articleId,
                                                                                  java.lang.String repository)
        This method performs content manipulation on the page in order to rebuild it in an SEO-friendly way.
        Parameters:
        pageRoot - the root path where the page is located
        articleId - transfer identifier in the database
        repository - the name of the repository from which the transfer can be retrieved
        Returns:
        a Map object containing the page title as a String value, with the key "value"
      • processMetaData

        java.util.Map<java.lang.String,​java.lang.Object> processMetaData​(java.lang.String pageUrl,
                                                                               java.lang.String containerId,
                                                                               java.lang.String repositoryName)
        This method does search request for database entity based on metadata URL property
        Parameters:
        pageUrl - this is page-url
        containerId - the ID of the container
        repositoryName - repository name from where will be returned data
        Returns:
        map-representation of data
      • processThemeCss

        java.lang.String processThemeCss​(java.lang.String pageUrl)
        Processes the CSS for a given page URL and returns the modified CSS.
        Parameters:
        pageUrl - the URL of the web page for which the CSS needs to be processed
        Returns:
        the modified CSS for the given page URL