|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.frontend.indexbrowser.MCRGoogleSitemapCommon
public final class MCRGoogleSitemapCommon
This class implements all common methods th create the Google sitemap data.
| Constructor Summary | |
|---|---|
MCRGoogleSitemapCommon()
The constructor |
|
MCRGoogleSitemapCommon(String baseURL)
|
|
| Method Summary | |
|---|---|
protected Document |
buildSitemap()
The method build the sitemap_google.xml JDOM document over all items. |
protected Document |
buildSitemap(int number)
The method call the database and build the sitemap_google.xml JDOM document. |
protected Document |
buildSitemapIndex(int number)
The method build the index sitemap_google.xml JDOM document. |
protected int |
checkSitemapFile()
The method compute the number of sitemap files. |
protected String |
getFileName(int number,
boolean withpath)
The method return the path to the sitemap_google.xml file. |
protected void |
removeSitemapFiles()
This method remove all sitemap files from the webapps directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MCRGoogleSitemapCommon()
public MCRGoogleSitemapCommon(String baseURL)
| Method Detail |
|---|
protected final int checkSitemapFile()
protected final String getFileName(int number,
boolean withpath)
number - number of this file - 1 = sitemap_google.xml - >1 sitemap_google_xxx.xmlwithpath - true for the full path, false for the file name
protected final Document buildSitemap()
throws Exception
Exception
protected final Document buildSitemap(int number)
throws Exception
number - number of this file - 1 = sitemap_google.xml - > 1 sitemap_google_xxx.xml
Exception
protected final Document buildSitemapIndex(int number)
throws Exception
number - number of indexed files (must greater than 1
Exceptionprotected final void removeSitemapFiles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||