Class SitemapBuilder

java.lang.Object
io.goobi.viewer.model.sitemap.SitemapBuilder

public class SitemapBuilder extends Object
Resource for sitemap generation.
  • Constructor Details

  • Method Details

    • updateSitemap

      public void updateSitemap(SitemapRequestParameters params) throws AccessDeniedException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException, org.json.JSONException, PresentationException
      Throws:
      AccessDeniedException
      de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
      org.json.JSONException
      PresentationException
    • updateSitemap

      public void updateSitemap(String outputPath, String viewerRootUrl) throws AccessDeniedException, org.json.JSONException, PresentationException
      Starts a single-threaded sitemap generation run. Only one generation may be active at a time; concurrent calls throw AccessDeniedException. After completion the static worker thread reference is cleared so the captured Sitemap instance becomes eligible for GC.
      Parameters:
      outputPath - Destination directory for the generated sitemap XML files
      viewerRootUrl - Viewer root URL used in sitemap <loc> elements
      Throws:
      AccessDeniedException - if a generation is already in progress
      org.json.JSONException - if the status JSON cannot be constructed
      PresentationException - if the worker thread reported a failure or was interrupted