Package io.goobi.viewer.model.sitemap
Class Sitemap
java.lang.Object
io.goobi.viewer.model.sitemap.Sitemap
Sitemap generation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGenerates sitemap files and writes them to the given outputPath (or web root).writeFiles
(String outputDirPath, org.jdom2.Document docIndex, List<org.jdom2.Document> docListSitemap) Writes givent sitemap XML documents into the file system.
-
Constructor Details
-
Sitemap
public Sitemap()
-
-
Method Details
-
generate
public List<File> generate(String viewerRootUrl, String outputPath) throws IOException, PresentationException, IndexUnreachableException, DAOException Generates sitemap files and writes them to the given outputPath (or web root).- Parameters:
viewerRootUrl
- Root URL of the Goobi viewer instanceoutputPath
- Destination folder path for the sitemap files.- Returns:
- File list
- Throws:
IOException
- if any.PresentationException
- if any.IndexUnreachableException
- if any.DAOException
- if any.
-
writeFiles
protected List<File> writeFiles(String outputDirPath, org.jdom2.Document docIndex, List<org.jdom2.Document> docListSitemap) throws IOException Writes givent sitemap XML documents into the file system.- Parameters:
outputDirPath
- aString
object.docIndex
- aDocument
object.docListSitemap
- aList
object.- Returns:
- a
List
object. - Throws:
IOException
- if any.
-