Class OaiPmhSearchForm
java.lang.Object
org.apache.struts.action.ActionForm
org.dlese.dpc.oai.provider.action.form.OaiPmhSearchForm
- All Implemented Interfaces:
Serializable
public final class OaiPmhSearchForm
extends org.apache.struts.action.ActionForm
Form used to support OAI-PMH search page.
- Author:
- John Weatherley
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringgetDs()Return a string for the current time and date, sutiable for display in log files and output to standout:Gets the message attribute of the ProviderAdminForm objectGets the oaiIdPfx attribute of the ProviderBean objectA list of UTC dates in the past in the following order: one minute, one hour, one day, one week, one month, one year.protected final voidOutput a line of text to standard out, with datestamp, if debug is set to true.protected final voidOutput a line of text to error out, with datestamp.voidsetAvailableFormats(List availableFormats) voidsetAvailableSets(List avalableSets) voidsetContextURL(String contextURL) protected final voidsetDebug(boolean db) Sets the debug attribute of the DocumentService objectvoidsetExampleFormat(String exampleFormat) voidsetExampleId(String exampleId) voidsetMessage(String message) Sets the message attribute of the ProviderAdminForm objectvoidsetOaiIdPfx(String oaiIdPfx) Sets the oaiIdPfx attribute of the ProviderBean objectvoidsetShowAdvanced(String showAdvanced) org.apache.struts.action.ActionErrorsvalidate(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request) Validate the input.Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
-
Constructor Details
-
OaiPmhSearchForm
public OaiPmhSearchForm()Constructor for the ProviderAdminForm Bean object
-
-
Method Details
-
getShowAdvanced
-
setShowAdvanced
-
getExampleFormat
-
setExampleFormat
-
getContextURL
-
setContextURL
-
getOaiIdPfx
Gets the oaiIdPfx attribute of the ProviderBean object- Returns:
- The oaiIdPfx value
-
setOaiIdPfx
Sets the oaiIdPfx attribute of the ProviderBean object- Parameters:
oaiIdPfx- The new oaiIdPfx value
-
getAvailableFormats
-
setAvailableFormats
-
getAvailableSets
-
setAvailableSets
-
setExampleId
-
getExampleId
-
getUtcDates
A list of UTC dates in the past in the following order: one minute, one hour, one day, one week, one month, one year.- Returns:
- A list of UTC dates in the past.
-
setMessage
Sets the message attribute of the ProviderAdminForm object- Parameters:
message- The new message value
-
getMessage
Gets the message attribute of the ProviderAdminForm object- Returns:
- The message value
-
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request) Validate the input. This method is called AFTER the setter method is called.- Overrides:
validatein classorg.apache.struts.action.ActionForm- Parameters:
mapping- The ActionMapping used.request- The HttpServletRequest for this request.- Returns:
- An ActionError containin any errors that had occured.
-
getDs
Return a string for the current time and date, sutiable for display in log files and output to standout:- Returns:
- The dateStamp value
-
prtlnErr
Output a line of text to error out, with datestamp.- Parameters:
s- The text that will be output to error out.
-
prtln
Output a line of text to standard out, with datestamp, if debug is set to true.- Parameters:
s- The String that will be output.
-
setDebug
protected final void setDebug(boolean db) Sets the debug attribute of the DocumentService object- Parameters:
db- The new debug value
-