Class DCSAdminForm
java.lang.Object
org.apache.struts.action.ActionForm
org.dlese.dpc.dds.action.form.VocabForm
org.dlese.dpc.repository.action.form.RepositoryForm
org.dlese.dpc.schemedit.action.form.DCSAdminForm
- All Implemented Interfaces:
Serializable
This class uses the getter methods of the ProviderBean and then adds setter methods
for editable fields.
- Author:
- John Weatherley, Jonathan Ostwald
- See Also:
-
Field Summary
Fields inherited from class org.dlese.dpc.repository.action.form.RepositoryForm
compressions, deletedRecord, earliestDatestamp, exampleID, granularity, metadataFormats, properties, ProtocolVersion, providerStatus, recordFields 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 TypeMethodDescriptiongetAdd()Gets the add attribute of the DCSAdminForm objectGets the path for the directory of collect-level records the RepositoryManager is using, or empty string if none is configured.Grabs the base directory where collections metadata files are located, or null if not configured.Gets the currentAdminEmail attribute of the DCSAdminForm objectGets the currentDescription attribute of the DCSAdminForm objectGets the currentSetDescription attribute of the DCSAdminForm objectGets the currentSetDirectory attribute of the DCSAdminForm objectGets the currentSetFormat attribute of the DCSAdminForm objectGets the currentSetName attribute of the DCSAdminForm objectGets the currentSetSpec attribute of the DCSAdminForm objectgetDcsId()Gets the boosting factor used to rank items in the DRC.Gets the exampleId attribute of the DCSAdminForm objectGets the date and time the indexer is/was scheduled to start, for example 'Dec 2, 2003 1:35 AM MST'.Gets the time of day the indexer isscheduled to start, for example '1:35 AM MST'.Gets the message attribute of the DCSAdminForm objectGets the path for the directory of metadata records the RepositoryManager is using, or empty string if none is configured.Gets the boosting factor used to rank resources that have multiple records.Gets the numIdentifiersResults attribute of the DCSAdminForm objectGets the number of indexing errors that are present.Gets the numRecordsResults attribute of the DCSAdminForm objectGets the removeInvalidRecords attribute of the DCSAdminForm objectGets the repositoryIdentifier attribute of the DCSAdminForm objectgetSets()Gets the sets configured in the RepositoryManager.Gets the sortSetsBy attribute of the DCSAdminForm objectGets the boosting factor used to rank items with matching stemmed terms.Indicates whether stemming support is enabled.Gets the titleBoostFactor attribute of the DCSAdminForm objectGets the frequency by which the index is updated to reflect changes that occur in the metadata files.Gets the validateRecords attribute of the DCSAdminForm objectGrabs the collection keys from the DPC keys schema.Grabs the valid metadata formats from the DPC schema.Gets the xmlError attribute of the DCSAdminForm objectvoidSets the add attribute of the DCSAdminForm objectvoidsetCollectionKey(String key) voidsetCollectionPrefix(String prefix) voidsetCollectionRecordsLocation(String collectionRecordsLocation) Sets the absolute path to the collectionRecordsLocation.voidsetCurrentAdminEmail(String value) Sets the currentAdminEmail attribute of the DCSAdminForm objectvoidsetCurrentDescription(String value) Sets the currentDescription attribute of the DCSAdminForm objectvoidsetCurrentSetDescription(String value) Sets the currentSetDescription attribute of the DCSAdminForm objectvoidsetCurrentSetDirectory(String value) Sets the currentSetDirectory attribute of the DCSAdminForm objectvoidsetCurrentSetFormat(String value) Sets the currentSetFormat attribute of the DCSAdminForm objectvoidsetCurrentSetName(String value) Sets the currentSetName attribute of the DCSAdminForm objectvoidsetCurrentSetSpec(String value) Sets the currentSetSpec attribute of the DCSAdminForm objectvoidvoidvoidsetDrcBoostFactor(String boostFactor) Sets the boosting factor used to rank items in the DRC.voidsetFrameworks(Map map) voidsetIndexingStartTime(Date indexingStartTime) Sets the date and time the indexer is/was scheduled to start.voidsetLockedRecords(Map lockedRecords) voidsetMessage(String message) Sets the message attribute of the DCSAdminForm objectvoidsetMetadataRecordsLocation(String metadataRecordsLocation) Sets the absolute path to the metadataRecordsLocation.voidsetMultiDocBoostFactor(String boostFactor) Sets the boosting factor used to rank resources that have multiple records.voidsetNumIdentifiersResults(String numResults) Sets the numIdentifiersResults attribute of the DCSAdminForm objectvoidsetNumIndexingErrors(int numErrors) Sets the number of indexing errors that are present.voidsetNumRecordsResults(String numResults) Sets the numRecordsResults attribute of the DCSAdminForm objectvoidsetRepositoryIdentifier(String value) Sets the repositoryIdentifier attribute of the DCSAdminForm objectvoidsetRepositoryName(String name) Sets the repositoryName attribute of the DCSAdminForm objectvoidsetSessionBeans(List sessionBeans) voidSets the sets attribute of the DCSAdminForm objectvoidsetSortSetsBy(String sortSetsBy) Sets the sortSetsBy attribute of the DCSAdminForm objectvoidsetStemmingBoostFactor(String boostFactor) Sets the boosting factor used to rank items with matching stemmed terms.voidsetStemmingEnabled(String stemmingEnabled) Sets whether stemming support is enabled.voidsetTitleBoostFactor(String boostFactor) Sets the boosting factor used to rank items with matching terms in the title field.voidsetTrustedWsIps(String val) voidsetUnloadedFrameworks(List formats) voidsetUpdateFrequency(int frequency) Sets the frequency by which the index is updated to reflect changes that occur in the metadata files.voidsetXmlError(String xmlError) Sets the xmlError attribute of the DCSAdminForm objectorg.apache.struts.action.ActionErrorsvalidate(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request) Validate the input.Methods inherited from class org.dlese.dpc.repository.action.form.RepositoryForm
addOaiError, getAdminEmails, getBaseURL, getCompressions, getDatestamp, getDeletedRecord, getDeletedStatus, getDescriptions, getDs, getEarliestDatestamp, getErrors, getExampleID, getGranularity, getIdentifier, getMetadataFormats, getMetadataNamespaces, getMetadataSchemaURLs, getNumDeletedDocs, getNumNonDeletedDocs, getOaiIdPfx, getOAIRequestTag, getProtocolVersion, getProviderStatus, getRecord, getRepositoryName, getRequestedFormat, getResults, getResultsLength, getResultsOffset, getResumptionToken, getRootCloseTag, getRootOpenTag, getSetSpecs, getXMLDeclaration, hasErrors, prtln, prtlnErr, setBaseURL, setDatestamp, setDebug, setDeletedStatus, setIdentifier, setMetadataFormats, setOaiIdPfx, setRecord, setRequestedFormat, setResults, setResultsLength, setResultsOffset, setResumptionToken, setSetSpecs, xmlToHtmlMethods 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
-
Constructor Details
-
DCSAdminForm
public DCSAdminForm()Constructor for the DCSAdminForm Bean object
-
-
Method Details
-
getDcsXml
-
setDcsXml
-
getDcsId
-
setDcsId
-
getSessionBeans
-
setSessionBeans
-
getFrameworks
-
setFrameworks
-
setUnloadedFrameworks
-
getUnloadedFrameworks
-
getCollectionPrefix
-
setCollectionPrefix
-
getCollectionKey
-
setCollectionKey
-
getTrustedWsIps
-
setTrustedWsIps
-
getMetadataGroupsLoaderFile
-
setLockedRecords
-
getLockedRecords
-
getNumIdentifiersResults
Gets the numIdentifiersResults attribute of the DCSAdminForm object- Returns:
- The numIdentifiersResults value
-
setNumIdentifiersResults
Sets the numIdentifiersResults attribute of the DCSAdminForm object- Parameters:
numResults- The new numIdentifiersResults value
-
getNumRecordsResults
Gets the numRecordsResults attribute of the DCSAdminForm object- Returns:
- The numRecordsResults value
-
setNumRecordsResults
Sets the numRecordsResults attribute of the DCSAdminForm object- Parameters:
numResults- The new numRecordsResults value
-
getUpdateFrequency
Gets the frequency by which the index is updated to reflect changes that occur in the metadata files. A return of 0 indicates no automatic updating occurs.- Returns:
- The updateFrequency, in minutes.
-
setUpdateFrequency
public void setUpdateFrequency(int frequency) Sets the frequency by which the index is updated to reflect changes that occur in the metadata files. A return of 0 indicates no automatic updating occurs.- Parameters:
frequency- The new updateFrequency, in minutes.
-
getIndexingStartDate
Gets the date and time the indexer is/was scheduled to start, for example 'Dec 2, 2003 1:35 AM MST'.- Returns:
- The date and time the indexer is scheduled to start, or empty String if not available.
-
getIndexingTimeOfDay
Gets the time of day the indexer isscheduled to start, for example '1:35 AM MST'.- Returns:
- the time of day the indexer isscheduled to start, or empty String if not available.
-
setIndexingStartTime
Sets the date and time the indexer is/was scheduled to start.- Parameters:
indexingStartTime- The new indexingStartTime value
-
setNumIndexingErrors
public void setNumIndexingErrors(int numErrors) Sets the number of indexing errors that are present.- Parameters:
numErrors- The number of indexing errors that are present.
-
getNumIndexingErrors
Gets the number of indexing errors that are present. A value of -1 means no data is available.- Returns:
- numErrors The number of indexing errors that are present.
-
getRemoveInvalidRecords
Gets the removeInvalidRecords attribute of the DCSAdminForm object- Returns:
- The removeInvalidRecords value
-
getValidateRecords
Gets the validateRecords attribute of the DCSAdminForm object- Returns:
- The validateRecords value
-
setRepositoryName
Sets the repositoryName attribute of the DCSAdminForm object- Parameters:
name- The new repositoryName value
-
setRepositoryIdentifier
Sets the repositoryIdentifier attribute of the DCSAdminForm object- Parameters:
value- The new repositoryIdentifier value
-
getRepositoryIdentifier
Gets the repositoryIdentifier attribute of the DCSAdminForm object- Overrides:
getRepositoryIdentifierin classRepositoryForm- Returns:
- The repositoryIdentifier value
-
setCurrentAdminEmail
Sets the currentAdminEmail attribute of the DCSAdminForm object- Parameters:
value- The new currentAdminEmail value
-
getCurrentAdminEmail
Gets the currentAdminEmail attribute of the DCSAdminForm object- Returns:
- The currentAdminEmail value
-
getExampleId
Gets the exampleId attribute of the DCSAdminForm object- Returns:
- The exampleId value
-
setCurrentDescription
Sets the currentDescription attribute of the DCSAdminForm object- Parameters:
value- The new currentDescription value
-
getCurrentDescription
Gets the currentDescription attribute of the DCSAdminForm object- Returns:
- The currentDescription value
-
setAdd
Sets the add attribute of the DCSAdminForm object- Parameters:
value- The new add value
-
getAdd
Gets the add attribute of the DCSAdminForm object- Returns:
- The add value
-
setMetadataRecordsLocation
Sets the absolute path to the metadataRecordsLocation.- Parameters:
metadataRecordsLocation- The absolute path to a directory containing item-level metadata. All metadata files must reside in sub-directores by format and collection, for example: metadataRecordsLocation + /adn/dcc/DLESE-000-000-000-001.xml.
-
setCollectionRecordsLocation
Sets the absolute path to the collectionRecordsLocation.- Parameters:
collectionRecordsLocation- The absolute path to a directory of DLESE collection-level XML records.
-
getCollectionRecordsLocation
Gets the path for the directory of collect-level records the RepositoryManager is using, or empty string if none is configured.- Returns:
- The collectionRecordsLocation value
-
getMetadataRecordsLocation
Gets the path for the directory of metadata records the RepositoryManager is using, or empty string if none is configured.- Returns:
- The metadataRecordsLocation value
-
setCurrentSetDescription
Sets the currentSetDescription attribute of the DCSAdminForm object- Parameters:
value- The new currentSetDescription value
-
getCurrentSetDescription
Gets the currentSetDescription attribute of the DCSAdminForm object- Returns:
- The currentSetDescription value
-
setCurrentSetName
Sets the currentSetName attribute of the DCSAdminForm object- Parameters:
value- The new currentSetName value
-
getCurrentSetName
Gets the currentSetName attribute of the DCSAdminForm object- Returns:
- The currentSetName value
-
setCurrentSetSpec
Sets the currentSetSpec attribute of the DCSAdminForm object- Parameters:
value- The new currentSetSpec value
-
getCurrentSetSpec
Gets the currentSetSpec attribute of the DCSAdminForm object- Returns:
- The currentSetSpec value
-
setCurrentSetDirectory
Sets the currentSetDirectory attribute of the DCSAdminForm object- Parameters:
value- The new currentSetDirectory value
-
getCurrentSetDirectory
Gets the currentSetDirectory attribute of the DCSAdminForm object- Returns:
- The currentSetDirectory value
-
getSortSetsBy
Gets the sortSetsBy attribute of the DCSAdminForm object- Returns:
- The sortSetsBy value
-
setSortSetsBy
Sets the sortSetsBy attribute of the DCSAdminForm object- Parameters:
sortSetsBy- The new sortSetsBy value
-
getSets
Gets the sets configured in the RepositoryManager. Overloaded method from RepositoryForm.- Overrides:
getSetsin classRepositoryForm- Returns:
- The sets value
-
setSets
Sets the sets attribute of the DCSAdminForm object- Parameters:
sets- The new sets value
-
setCurrentSetFormat
Sets the currentSetFormat attribute of the DCSAdminForm object- Parameters:
value- The new currentSetFormat value
-
getCurrentSetFormat
Gets the currentSetFormat attribute of the DCSAdminForm object- Returns:
- The currentSetFormat value
-
setDrcBoostFactor
Sets the boosting factor used to rank items in the DRC. Value must be zero or greater.- Parameters:
boostFactor- The new boosting factor used to rank items in the DRC.
-
setMultiDocBoostFactor
Sets the boosting factor used to rank resources that have multiple records.- Parameters:
boostFactor- The boosting factor used to rank resources that have multiple records.
-
setTitleBoostFactor
Sets the boosting factor used to rank items with matching terms in the title field. Value must be zero or greater.- Parameters:
boostFactor- The boosting factor used to rank items with matching terms in the title field.
-
setStemmingEnabled
Sets whether stemming support is enabled.- Parameters:
stemmingEnabled- The new stemmingEnabled value
-
setStemmingBoostFactor
Sets the boosting factor used to rank items with matching stemmed terms. Value must be zero or greater.- Parameters:
boostFactor- The boosting factor used to rank items with matching stemmed terms.
-
getStemmingBoostFactor
Gets the boosting factor used to rank items with matching stemmed terms.- Returns:
- The boosting factor used to rank items with matching stemmed terms.
-
getDrcBoostFactor
Gets the boosting factor used to rank items in the DRC.- Returns:
- The boosting factor used to rank items in the DRC.
-
getMultiDocBoostFactor
Gets the boosting factor used to rank resources that have multiple records.- Returns:
- The boosting factor used to rank resources that have multiple records.
-
getTitleBoostFactor
Gets the titleBoostFactor attribute of the DCSAdminForm object- Returns:
- The titleBoostFactor value
-
getStemmingEnabled
Indicates whether stemming support is enabled.- Returns:
- true if stemming is enabled, false otherwise.
-
setMessage
Sets the message attribute of the DCSAdminForm object- Parameters:
message- The new message value
-
getMessage
Gets the message attribute of the DCSAdminForm object- Returns:
- The message value
-
setXmlError
Sets the xmlError attribute of the DCSAdminForm object- Parameters:
xmlError- The new xmlError value
-
getXmlError
Gets the xmlError attribute of the DCSAdminForm object- Returns:
- The xmlError value
-
getCollectionsBaseDir
Grabs the base directory where collections metadata files are located, or null if not configured.- Returns:
- Base directory where the collections reside.
-
getValidCollectionKeys
Grabs the collection keys from the DPC keys schema.- Returns:
- A list of valid colleciton keys.
-
getValidMetadataFormats
Grabs the valid metadata formats from the DPC schema.- Returns:
- A list of valid metadata formats.
-
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.
-