org.mycore.frontend.cli
Class MCRMetsModsCommands

java.lang.Object
  extended by org.mycore.frontend.cli.MCRAbstractCommands
      extended by org.mycore.frontend.cli.MCRMetsModsCommands
All Implemented Interfaces:
MCRExternalCommandInterface

public final class MCRMetsModsCommands
extends MCRAbstractCommands

This class builds a google sitemap containing links to all documents and store them to the webapps directory. This can be configured with property variable MCR.GoogleSitemap.Directory. The web.xml file should contain a mapping to /sitemap.xml See http://www.google.com/webmasters/sitemaps/docs/en/protocol.html

Version:
$Revision: 13085 $ $Date: 2008-02-06 18:27:24 +0100 (Mi, 06 Feb 2008) $
Author:
Frank Luetzenkirchen, Jens Kupferschmidt, Thomas Scheffler (yagee), Stefan Freitag (sasf)

Field Summary
 
Fields inherited from class org.mycore.frontend.cli.MCRAbstractCommands
command, CONFIG
 
Constructor Summary
MCRMetsModsCommands()
          The empty constructor.
 
Method Summary
static void buildMets(String baseurl)
          The build mets.xml files in the derivates if they does not exist and the content are images.
static void buildMetsForMCRDerivateID(String MCRID, String baseurl)
           
static void buildMetsForMCRObjectID(String MCRID, String baseurl)
           
static void removeMets()
          Remove mets.xml files from all derivates.
static void removeMetsByZoomify()
          Remove mets.xml files from all derivates typed by zoomify.
 
Methods inherited from class org.mycore.frontend.cli.MCRAbstractCommands
getPossibleCommands
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCRMetsModsCommands

public MCRMetsModsCommands()
The empty constructor.

Method Detail

removeMets

public static final void removeMets()
                             throws Exception
Remove mets.xml files from all derivates.

Throws:
Exception

removeMetsByZoomify

public static final void removeMetsByZoomify()
                                      throws Exception
Remove mets.xml files from all derivates typed by zoomify.

Throws:
Exception

buildMetsForMCRObjectID

public static final void buildMetsForMCRObjectID(String MCRID,
                                                 String baseurl)

buildMetsForMCRDerivateID

public static final void buildMetsForMCRDerivateID(String MCRID,
                                                   String baseurl)

buildMets

public static final void buildMets(String baseurl)
                            throws Exception
The build mets.xml files in the derivates if they does not exist and the content are images.

Throws:
Exception