Class DCSServicesForm
java.lang.Object
org.apache.struts.action.ActionForm
org.dlese.dpc.dds.action.form.VocabForm
org.dlese.dpc.services.dcs.action.form.DCSServicesForm
- All Implemented Interfaces:
Serializable
An ActionForm bean that holds data for DCS web services.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.dlese.dpc.dds.action.form.VocabForm
audience, field, language, metaFormat, value, vocabFields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the role name for which this user is authorizedGets the collection attribute of the DCSServicesForm objectString[]protected static final StringgetDs()Return a string for the current time and date, sutiable for display in log files and output to standout:Gets the errorList attribute of the DCSServicesForm objectGets the errorMsg attribute of the DCSServicesForm objectGets the exportDir attribute of the DCSServicesForm objectgetId()Gets the id attribute of the DCSServicesForm objectGets the localizedRecordXml attribute of the DCSServicesForm objectintgetN()Gets the n attribute of the DCSServicesForm objectintGets the number of matching results.Gets the recordFormat attribute of the DCSServicesForm objectGets the recordXml attribute of the DCSServicesForm objectGets the results attribute of the DCSServicesForm objectintgetS()Gets the s attribute of the DCSServicesForm objectString[]Gets the statuses attribute of the DCSServicesForm objectGets the statusLabels attribute of the DCSServicesForm objectgetUrl()A list of UTC dates in the past in the following order: one minute, one hour, one day, one week, one month, one year.Gets the xmlFormat attribute of the DCSServicesForm objectGets the xmlFormats attribute of the DCSServicesForm objectprotected 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.voidsetAuthorizedFor(String val) Sets the role name for which this user is authorizedvoidsetCollection(String collection) Sets the collection attribute of the DCSServicesForm objectvoidsetCollections(String[] collections) static voidsetDebug(boolean isDebugOuput) Sets the debug attributevoidsetErrorList(List errorList) Sets the errorList attribute of the DCSServicesForm objectvoidsetErrorMsg(String errorMsg) Sets the errorMsg attribute of the DCSServicesForm objectvoidsetExportDir(String dir) Sets the exportDir attribute of the DCSServicesForm objectvoidSets the id attribute of the DCSServicesForm objectvoidsetN(int val) Sets the n attribute of the DCSServicesForm objectvoidsetRecordFormat(String val) Sets the recordFormat attribute of the DCSServicesForm objectvoidsetRecordXml(String val) Sets the recordXml attribute of the DCSServicesForm objectvoidsetResults(ResultDocList results) Sets the results attribute of the DCSServicesForm objectvoidsetS(int val) Sets the s attribute of the DCSServicesForm objectvoidsetStatusEntry(String entry) voidsetStatuses(String[] statusValues) Sets the statuses attribute of the DCSServicesForm objectvoidsetStatusLabels(List labels) Sets the statusLabels attribute of the DCSServicesForm objectvoidvoidsetXmlFormat(String xmlFormat) Sets the xmlFormat attribute of the DCSServicesForm objectvoidsetXmlFormats(List var) Sets the xmlFormats attribute of the DCSServicesForm objectMethods inherited from class org.dlese.dpc.dds.action.form.VocabForm
getAudience, getField, getFieldId, getFieldLabel, getIsVocabTermAvailable, getLanguage, getVocab, getVocabList, getVocabList, getVocabTerm, setField, setField, setMetaFormat, setValue, setVocab, setVocabInterfaceMethods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate
-
Constructor Details
-
DCSServicesForm
public DCSServicesForm()Constructor for the RepositoryForm object
-
-
Method Details
-
getId
Gets the id attribute of the DCSServicesForm object- Returns:
- The id value
-
setId
Sets the id attribute of the DCSServicesForm object- Parameters:
id- The new id value
-
getUrl
-
setUrl
-
getCollections
-
setCollections
-
getCollection
Gets the collection attribute of the DCSServicesForm object- Returns:
- The collection value
-
setCollection
Sets the collection attribute of the DCSServicesForm object- Parameters:
collection- The new collection value
-
getXmlFormat
Gets the xmlFormat attribute of the DCSServicesForm object- Returns:
- The xmlFormat value
-
setXmlFormat
Sets the xmlFormat attribute of the DCSServicesForm object- Parameters:
xmlFormat- The new xmlFormat value
-
getStatuses
Gets the statuses attribute of the DCSServicesForm object- Returns:
- The statuses value
-
setStatuses
Sets the statuses attribute of the DCSServicesForm object- Parameters:
statusValues- The new statuses value
-
getStatusLabels
Gets the statusLabels attribute of the DCSServicesForm object- Returns:
- The statusLabels value
-
setStatusLabels
Sets the statusLabels attribute of the DCSServicesForm object- Parameters:
labels- The new statusLabels value
-
getStatusEntry
-
setStatusEntry
-
getExportDir
Gets the exportDir attribute of the DCSServicesForm object- Returns:
- The exportDir value
-
setExportDir
Sets the exportDir attribute of the DCSServicesForm object- Parameters:
dir- The new exportDir value
-
setErrorList
Sets the errorList attribute of the DCSServicesForm object- Parameters:
errorList- The new errorList value
-
getErrorList
Gets the errorList attribute of the DCSServicesForm object- Returns:
- The errorList value
-
getXmlFormats
Gets the xmlFormats attribute of the DCSServicesForm object- Returns:
- The xmlFormats value
-
setXmlFormats
Sets the xmlFormats attribute of the DCSServicesForm object- Parameters:
var- The new xmlFormats value
-
getLocalizedRecordXml
Gets the localizedRecordXml attribute of the DCSServicesForm object- Returns:
- The localizedRecordXml value
-
getRecordXml
Gets the recordXml attribute of the DCSServicesForm object- Returns:
- The recordXml value
-
setRecordXml
Sets the recordXml attribute of the DCSServicesForm object- Parameters:
val- The new recordXml value
-
setRecordFormat
Sets the recordFormat attribute of the DCSServicesForm object- Parameters:
val- The new recordFormat value
-
getRecordFormat
Gets the recordFormat attribute of the DCSServicesForm object- Returns:
- The recordFormat value
-
getS
public int getS()Gets the s attribute of the DCSServicesForm object- Returns:
- The s value
-
setS
public void setS(int val) Sets the s attribute of the DCSServicesForm object- Parameters:
val- The new s value
-
getN
public int getN()Gets the n attribute of the DCSServicesForm object- Returns:
- The n value
-
setN
public void setN(int val) Sets the n attribute of the DCSServicesForm object- Parameters:
val- The new n value
-
getAuthorizedFor
Gets the role name for which this user is authorized- Returns:
- The authorizedFor value
-
setAuthorizedFor
Sets the role name for which this user is authorized- Parameters:
val- The new authorizedFor value
-
setErrorMsg
Sets the errorMsg attribute of the DCSServicesForm object- Parameters:
errorMsg- The new errorMsg value
-
getErrorMsg
Gets the errorMsg attribute of the DCSServicesForm object- Returns:
- The errorMsg value
-
getResults
Gets the results attribute of the DCSServicesForm object- Returns:
- The results value
-
setResults
Sets the results attribute of the DCSServicesForm object- Parameters:
results- The new results value
-
getNumResults
public int getNumResults()Gets the number of matching results.- Returns:
- The numResults value
-
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.
-
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
public static void setDebug(boolean isDebugOuput) Sets the debug attribute- Parameters:
isDebugOuput- The new debug value
-