public class RepositoryForm extends VocabForm implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList |
compressions
compressions
|
protected java.lang.String |
deletedRecord
deletedRecord
|
protected java.lang.String |
earliestDatestamp
earliestDatestamp
|
protected java.lang.String |
exampleID
exampleID
|
protected java.lang.String |
granularity
granularity
|
protected java.util.Hashtable |
metadataFormats
metadataFormats
|
protected static PropertiesManager |
properties
A PropertiesManager that contains properties for this bean.
|
protected java.lang.String |
ProtocolVersion
ProtocolVersion
|
protected java.lang.String |
providerStatus
providerStatus
|
protected java.lang.String |
record
record
|
Constructor and Description |
---|
RepositoryForm()
Constructor for the RepositoryForm object
|
Modifier and Type | Method and Description |
---|---|
void |
addOaiError(java.lang.String error,
java.lang.String message)
Adds a feature to the Error attribute of the RepositoryForm object
|
java.util.ArrayList |
getAdminEmails()
Gets the adminEmails attribute of the RepositoryForm object.
|
java.lang.String |
getBaseURL()
Inserts the BASE_URL for this OAI provider.
|
java.util.ArrayList |
getCompressions()
Gets the optional compressionTag attribute of the RepositoryForm object.
|
java.lang.String |
getDatestamp()
Gets the datestamp attribute of the RepositoryForm object
|
java.lang.String |
getDeletedRecord()
Gets the deletedRecord attribute of the RepositoryForm object.
|
java.lang.String |
getDeletedStatus()
Gets the deletedStatus attribute of the RepositoryForm object
|
java.util.ArrayList |
getDescriptions()
Gets the optional descriptions that relate to this repository.
|
protected static java.lang.String |
getDs()
Return a string for the current time and date, sutiable for display in log files and output to standout:
|
java.lang.String |
getEarliestDatestamp()
Gets the earliestDatestamp attribute of the RepositoryForm object
|
java.util.ArrayList |
getErrors()
Iff OAI errors exist, returns the error tag(s) appropriate for the given response, otherwise returns an
empty string.
|
java.lang.String |
getExampleID()
Get an example ID that might be disiminated from this repository.
|
java.lang.String |
getGranularity()
Gets the granularity attribute of the RepositoryForm object.
|
java.lang.String |
getIdentifier()
Gets the identifier used in OAI requests.
|
java.util.Hashtable |
getMetadataFormats()
Gets the metadataFormats attribute of the RepositoryForm object
|
java.util.Map |
getMetadataNamespaces()
Gets the metadata namespacess keyed by metadataPrefix.
|
java.util.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.
|
java.lang.String |
getOaiIdPfx()
Gets the oaiIdPfx attribute of the RepositoryForm object
|
java.lang.String |
getOAIRequestTag(javax.servlet.http.HttpServletRequest req)
Get the
request tag that is required in all responses to an OAI request. |
java.lang.String |
getProtocolVersion()
Gets the protocolVersion attribute of the RepositoryForm object
|
java.lang.String |
getProviderStatus()
Gets the providerStatus attribute of the RepositoryForm object
|
java.lang.String |
getRecord()
Gets the record attribute of the RepositoryForm object used in the OAI GetRecord request.
|
java.lang.String |
getRepositoryIdentifier()
Gets the repositoryIdentifier attribute of the RepositoryForm object
|
java.lang.String |
getRepositoryName()
Gets the repositoryName attribute of the RepositoryForm object
|
java.lang.String |
getRequestedFormat()
Gets the requestedFormat attribute of the RepositoryForm object
|
ResultDocList |
getResults()
Gets the results attribute of the RepositoryForm object
|
java.lang.String |
getResultsLength()
Gets the total number of results that should be returned to the harvester.
|
java.lang.String |
getResultsOffset()
Gets the array index offset for the result set that should be returned to the harvester.
|
java.lang.String |
getResumptionToken()
Gets the resumptionToken that should be returned with the results.
|
java.lang.String |
getRootCloseTag()
Gets the rootCloseTag attribute of the RepositoryForm object
|
java.lang.String |
getRootOpenTag()
Gets the rootOpenTag attribute of the RepositoryForm object
|
java.util.ArrayList |
getSets()
Gets the sets attribute of the RepositoryForm object
|
java.util.List |
getSetSpecs()
Gets the setSpecs attribute of the RepositoryForm object
|
java.lang.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(java.lang.String s)
Output a line of text to standard out, with datestamp, if debug is set to true.
|
protected void |
prtlnErr(java.lang.String s)
Output a line of text to error out, with datestamp.
|
void |
setBaseURL(java.lang.String baseURL)
Sets the baseURL to the OAI provider.
|
void |
setDatestamp(java.lang.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(java.lang.String val)
Sets the deletedStatus attribute of the RepositoryForm object
|
void |
setIdentifier(java.lang.String id)
Sets the record attribute of the RepositoryForm object used in the OAI GetRecord request.
|
void |
setMetadataFormats(java.util.Hashtable formats)
Sets the metadataFormats attribute of the RepositoryForm object
|
void |
setOaiIdPfx(java.lang.String oaiIdPfx)
Sets the oaiIdPfx attribute of the RepositoryForm object
|
void |
setRecord(java.lang.String record)
Sets the record attribute of the RepositoryForm object used in the OAI GetRecord request.
|
void |
setRequestedFormat(java.lang.String requestedFormat)
Sets the requestedFormat attribute of the RepositoryForm object
|
void |
setResults(ResultDocList results)
Sets the results attribute of the RepositoryForm object
|
void |
setResultsLength(java.lang.String resultsLength)
Sets the total number of results that should be returned to the harvester.
|
void |
setResultsOffset(java.lang.String resultsOffset)
Sets the array index offset for the result set that should be returned to the harvester.
|
void |
setResumptionToken(java.lang.String resumptionToken)
Sets the resumptionToken that should be returned with the results.
|
void |
setSetSpecs(java.util.List s)
Sets the setSpecs attribute of the RepositoryForm object
|
java.lang.String |
xmlToHtml(java.lang.String s)
Provides HTML encoding for XML resulting in text that looks good in a Web browser.
|
getAudience, getField, getFieldId, getFieldLabel, getIsVocabTermAvailable, getLanguage, getVocab, getVocabList, getVocabList, getVocabTerm, setField, setField, setMetaFormat, setValue, setVocab, setVocabInterface
protected static PropertiesManager properties
protected java.lang.String exampleID
protected java.lang.String ProtocolVersion
protected java.lang.String providerStatus
protected java.lang.String earliestDatestamp
protected java.lang.String deletedRecord
protected java.lang.String granularity
protected java.util.ArrayList compressions
protected java.util.Hashtable metadataFormats
protected java.lang.String record
public java.lang.String getBaseURL()
public void setBaseURL(java.lang.String baseURL)
baseURL
- The new baseURL value.public java.lang.String getXMLDeclaration()
public java.lang.String getRootOpenTag()
public java.lang.String getRootCloseTag()
public java.lang.String getOAIRequestTag(javax.servlet.http.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 Parameterrequest
tag appropriate for the currnet OAI response.public void addOaiError(java.lang.String error, java.lang.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 java.util.ArrayList getErrors()
public java.lang.String getExampleID()
public java.lang.String getRepositoryName()
public java.util.Hashtable getMetadataFormats()
public void setDeletedStatus(java.lang.String val)
val
- The new deletedStatus valuepublic java.lang.String getDeletedStatus()
public int getNumDeletedDocs()
public int getNumNonDeletedDocs()
public void setMetadataFormats(java.util.Hashtable formats)
formats
- The new metadataFormats valuepublic void setResumptionToken(java.lang.String resumptionToken)
resumptionToken
- The new resumptionToken valuepublic java.lang.String getResumptionToken()
public void setResultsOffset(java.lang.String resultsOffset)
resultsOffset
- The new resultsOffset valuepublic java.lang.String getResultsOffset()
public void setResultsLength(java.lang.String resultsLength)
resultsLength
- The new resultsLength valuepublic java.lang.String getResultsLength()
public void setRequestedFormat(java.lang.String requestedFormat)
requestedFormat
- The new requestedFormat valuepublic java.lang.String getRequestedFormat()
public java.lang.String getRepositoryIdentifier()
public java.lang.String getProtocolVersion()
public java.lang.String getProviderStatus()
public java.util.ArrayList getAdminEmails()
public java.util.ArrayList getSets()
public java.lang.String getEarliestDatestamp()
public java.lang.String getDeletedRecord()
public java.util.Map getMetadataSchemaURLs()
public java.util.Map getMetadataNamespaces()
public java.lang.String getGranularity()
public java.util.ArrayList getCompressions()
public java.util.ArrayList getDescriptions()
<description> tag).
public void setResults(ResultDocList results)
results
- The new results valuepublic ResultDocList getResults()
public java.lang.String getRecord()
public void setRecord(java.lang.String record)
record
- The new record valuepublic java.lang.String getIdentifier()
public void setIdentifier(java.lang.String id)
id
- The new identifier valuepublic java.lang.String getOaiIdPfx()
public void setOaiIdPfx(java.lang.String oaiIdPfx)
oaiIdPfx
- The new oaiIdPfx valuepublic java.lang.String getDatestamp()
public void setDatestamp(java.lang.String s)
s
- The new datestamp valuepublic java.util.List getSetSpecs()
public void setSetSpecs(java.util.List s)
s
- The new setSpecs valuepublic java.lang.String xmlToHtml(java.lang.String s)
s
- The string to convert.protected static java.lang.String getDs()
protected final void prtlnErr(java.lang.String s)
s
- The text that will be output to error out.protected final void prtln(java.lang.String s)
s
- The String that will be output.public static void setDebug(boolean isDebugOuput)
isDebugOuput
- The new debug value