dk.netarkivet.harvester.webinterface
Class SnapshotHarvestDefinition

java.lang.Object
  extended by dk.netarkivet.harvester.webinterface.SnapshotHarvestDefinition

public class SnapshotHarvestDefinition
extends java.lang.Object

Contains utility methods for supporting GUI for updating snapshot harvests.


Method Summary
static boolean flipActive(javax.servlet.jsp.PageContext context, I18n i18n)
          Flip the active status of a harvestdefinition named in the "flipactive" parameter.
static void processRequest(javax.servlet.jsp.PageContext context, I18n i18n)
          Extracts all required parameters from the request, checks for any inconsistencies, and passes the requisite data to the updateHarvestDefinition method for processing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

processRequest

public static void processRequest(javax.servlet.jsp.PageContext context,
                                  I18n i18n)
Extracts all required parameters from the request, checks for any inconsistencies, and passes the requisite data to the updateHarvestDefinition method for processing. If the "update" parameter is not set, this method does nothing. The parameters in the request are defined in Definitions-edit-snapshot-harvest.jsp.

Parameters:
context - The context of the web request.
i18n - Translation information
Throws:
ForwardedToErrorPage - if an error happened that caused a forward to the standard error page, in which case further JSP processing should be aborted.

flipActive

public static boolean flipActive(javax.servlet.jsp.PageContext context,
                                 I18n i18n)
Flip the active status of a harvestdefinition named in the "flipactive" parameter.

Parameters:
context - The context of the web servlet
i18n - Translation information
Returns:
True if a harvest definition changed state.