|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.ActionForm org.dlese.dpc.dds.action.form.VocabForm org.dlese.dpc.repository.action.form.RepositoryForm
public class RepositoryForm
A base class bean for creating output used in OAI requests. This class extends ActionFrom, however for security reasons it does not contain any setter functions. All setter functions are contained in the subclass ProviderAcminForm.
Field Summary | |
---|---|
protected ArrayList |
compressions
compressions |
protected String |
deletedRecord
deletedRecord |
protected String |
earliestDatestamp
earliestDatestamp |
protected String |
exampleID
exampleID |
protected String |
granularity
granularity |
protected Hashtable |
metadataFormats
metadataFormats |
protected static PropertiesManager |
properties
A PropertiesManager that contains properties for this bean. |
protected String |
ProtocolVersion
ProtocolVersion |
protected String |
providerStatus
providerStatus |
protected String |
record
record |
Fields inherited from class org.dlese.dpc.dds.action.form.VocabForm |
---|
audience, field, language, metaFormat, value, vocab |
Fields inherited from class org.apache.struts.action.ActionForm |
---|
multipartRequestHandler, servlet |
Constructor Summary | |
---|---|
RepositoryForm()
Constructor for the RepositoryForm object |
Method Summary | |
---|---|
void |
addOaiError(String error,
String message)
Adds a feature to the Error attribute of the RepositoryForm object |
ArrayList |
getAdminEmails()
Gets the adminEmails attribute of the RepositoryForm object. |
String |
getBaseURL()
Inserts the BASE_URL for this OAI provider. |
ArrayList |
getCompressions()
Gets the optional compressionTag attribute of the RepositoryForm object. |
String |
getDatestamp()
Gets the datestamp attribute of the RepositoryForm object |
String |
getDeletedRecord()
Gets the deletedRecord attribute of the RepositoryForm object. |
String |
getDeletedStatus()
Gets the deletedStatus attribute of the RepositoryForm object |
ArrayList |
getDescriptions()
Gets the optional descriptions that relate to this repository. |
protected static String |
getDs()
Return a string for the current time and date, sutiable for display in log files and output to standout: |
String |
getEarliestDatestamp()
Gets the earliestDatestamp attribute of the RepositoryForm object |
ArrayList |
getErrors()
Iff OAI errors exist, returns the error tag(s) appropriate for the given response, otherwise returns an empty string. |
String |
getExampleID()
Get an example ID that might be disiminated from this repository. |
String |
getGranularity()
Gets the granularity attribute of the RepositoryForm object. |
String |
getIdentifier()
Gets the identifier used in OAI requests. |
Hashtable |
getMetadataFormats()
Gets the metadataFormats attribute of the RepositoryForm object |
Map |
getMetadataNamespaces()
Gets the metadata namespacess keyed by metadataPrefix. |
Map |
getMetadataSchemaURLs()
Gets the metadata schema URLs keyed by metadataPrefix. |
int |
getNumDeletedDocs()
Gets the number of records that have a status of deleted in the OAI repository. |
int |
getNumNonDeletedDocs()
Gets the number of records that have a status NOT deleted in the OAI repository. |
String |
getOaiIdPfx()
Gets the oaiIdPfx attribute of the RepositoryForm object |
String |
getOAIRequestTag(HttpServletRequest req)
Get the request tag that is required in all responses to an OAI request. |
String |
getProtocolVersion()
Gets the protocolVersion attribute of the RepositoryForm object |
String |
getProviderStatus()
Gets the providerStatus attribute of the RepositoryForm object |
String |
getRecord()
Gets the record attribute of the RepositoryForm object used in the OAI GetRecord request. |
String |
getRepositoryIdentifier()
Gets the repositoryIdentifier attribute of the RepositoryForm object |
String |
getRepositoryName()
Gets the repositoryName attribute of the RepositoryForm object |
String |
getRequestedFormat()
Gets the requestedFormat attribute of the RepositoryForm object |
ResultDocList |
getResults()
Gets the results attribute of the RepositoryForm object |
String |
getResultsLength()
Gets the total number of results that should be returned to the harvester. |
String |
getResultsOffset()
Gets the array index offset for the result set that should be returned to the harvester. |
String |
getResumptionToken()
Gets the resumptionToken that should be returned with the results. |
String |
getRootCloseTag()
Gets the rootCloseTag attribute of the RepositoryForm object |
String |
getRootOpenTag()
Gets the rootOpenTag attribute of the RepositoryForm object |
ArrayList |
getSets()
Gets the sets attribute of the RepositoryForm object |
List |
getSetSpecs()
Gets the setSpecs attribute of the RepositoryForm object |
String |
getXMLDeclaration()
Gets the xMLDeclaration attribute of the RepositoryForm object |
boolean |
hasErrors()
Determines whether there has been at least one error generated for this request. |
protected void |
prtln(String s)
Output a line of text to standard out, with datestamp, if debug is set to true. |
protected void |
prtlnErr(String s)
Output a line of text to error out, with datestamp. |
void |
setBaseURL(String baseURL)
Sets the baseURL to the OAI provider. |
void |
setDatestamp(String s)
Sets the datestamp attribute of the RepositoryForm object |
static void |
setDebug(boolean isDebugOuput)
Sets the debug attribute of the DocumentService object |
void |
setDeletedStatus(String val)
Sets the deletedStatus attribute of the RepositoryForm object |
void |
setIdentifier(String id)
Sets the record attribute of the RepositoryForm object used in the OAI GetRecord request. |
void |
setMetadataFormats(Hashtable formats)
Sets the metadataFormats attribute of the RepositoryForm object |
void |
setOaiIdPfx(String oaiIdPfx)
Sets the oaiIdPfx attribute of the RepositoryForm object |
void |
setRecord(String record)
Sets the record attribute of the RepositoryForm object used in the OAI GetRecord request. |
void |
setRequestedFormat(String requestedFormat)
Sets the requestedFormat attribute of the RepositoryForm object |
void |
setResults(ResultDocList results)
Sets the results attribute of the RepositoryForm object |
void |
setResultsLength(String resultsLength)
Sets the total number of results that should be returned to the harvester. |
void |
setResultsOffset(String resultsOffset)
Sets the array index offset for the result set that should be returned to the harvester. |
void |
setResumptionToken(String resumptionToken)
Sets the resumptionToken that should be returned with the results. |
void |
setSetSpecs(List s)
Sets the setSpecs attribute of the RepositoryForm object |
String |
xmlToHtml(String s)
Provides HTML encoding for XML resulting in text that looks good in a Web browser. |
Methods 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, setVocabInterface |
Methods inherited from class org.apache.struts.action.ActionForm |
---|
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static PropertiesManager properties
protected String exampleID
protected String ProtocolVersion
protected String providerStatus
protected String earliestDatestamp
protected String deletedRecord
protected String granularity
protected ArrayList compressions
protected Hashtable metadataFormats
protected String record
Constructor Detail |
---|
public RepositoryForm()
Method Detail |
---|
public String getBaseURL()
public void setBaseURL(String baseURL)
baseURL
- The new baseURL value.public String getXMLDeclaration()
public String getRootOpenTag()
public String getRootCloseTag()
public String getOAIRequestTag(HttpServletRequest req)
request
tag that is required in all responses to an OAI request. If the request
contained a badVerb or badArgument error then no argument=value pairs are returned. For all other
responses the request
tag includes all argument=value pairs as atributes and the OAI
BASE_URL as the tag body.
req
- Description of the Parameter
request
tag appropriate for the currnet OAI response.public void addOaiError(String error, String message)
error
- The OAI Error.message
- The message that will be returned in the OAI response that describes the reason for the
error.public boolean hasErrors()
public ArrayList getErrors()
public String getExampleID()
public String getRepositoryName()
public Hashtable getMetadataFormats()
public void setDeletedStatus(String val)
val
- The new deletedStatus valuepublic String getDeletedStatus()
public int getNumDeletedDocs()
public int getNumNonDeletedDocs()
public void setMetadataFormats(Hashtable formats)
formats
- The new metadataFormats valuepublic void setResumptionToken(String resumptionToken)
resumptionToken
- The new resumptionToken valuepublic String getResumptionToken()
public void setResultsOffset(String resultsOffset)
resultsOffset
- The new resultsOffset valuepublic String getResultsOffset()
public void setResultsLength(String resultsLength)
resultsLength
- The new resultsLength valuepublic String getResultsLength()
public void setRequestedFormat(String requestedFormat)
requestedFormat
- The new requestedFormat valuepublic String getRequestedFormat()
public String getRepositoryIdentifier()
public String getProtocolVersion()
public String getProviderStatus()
public ArrayList getAdminEmails()
public ArrayList getSets()
public String getEarliestDatestamp()
public String getDeletedRecord()
public Map getMetadataSchemaURLs()
public Map getMetadataNamespaces()
public String getGranularity()
public ArrayList getCompressions()
public ArrayList getDescriptions()
<description> tag).
- Returns:
- An ArrayList of descriptions for this repository.
public void setResults(ResultDocList results)
results
- The new results valuepublic ResultDocList getResults()
public String getRecord()
public void setRecord(String record)
record
- The new record valuepublic String getIdentifier()
public void setIdentifier(String id)
id
- The new identifier valuepublic String getOaiIdPfx()
public void setOaiIdPfx(String oaiIdPfx)
oaiIdPfx
- The new oaiIdPfx valuepublic String getDatestamp()
public void setDatestamp(String s)
s
- The new datestamp valuepublic List getSetSpecs()
public void setSetSpecs(List s)
s
- The new setSpecs valuepublic String xmlToHtml(String s)
s
- The string to convert.
protected static String getDs()
protected final void prtlnErr(String s)
s
- The text that will be output to error out.protected final void prtln(String s)
s
- The String that will be output.public static void setDebug(boolean isDebugOuput)
isDebugOuput
- The new debug value
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |