Class RepositoryAdminForm
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.repository.action.form.RepositoryAdminForm
- All Implemented Interfaces:
Serializable
This class uses the getter methods of the ProviderBean and then adds setter methods for editable fields.
- Version:
- $Id: RepositoryAdminForm.java,v 1.27 2010/03/16 21:42:01 jweather Exp $
- Author:
- John Weatherley
- 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 RepositoryAdminForm 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 command attribute of the RepositoryAdminForm objectGets the path to the RepositoryManager config directory.Gets the currentAdminEmail attribute of the RepositoryAdminForm objectGets the currentDescription attribute of the RepositoryAdminForm objectGets the currentSetDescription attribute of the RepositoryAdminForm objectGets the currentSetDirectory attribute of the RepositoryAdminForm objectGets the currentSetFormat attribute of the RepositoryAdminForm objectGets the currentSetName attribute of the RepositoryAdminForm objectGets the currentSetSpec attribute of the RepositoryAdminForm objectGets the boosting factor used to rank items in the DRC.Gets the exampleId attribute of the RepositoryAdminForm objectGets the days of the week the indexer will run, as a String.Gets 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 RepositoryAdminForm 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 RepositoryAdminForm objectGets the number of indexing errors that are present.Gets the numRecordsResults attribute of the RepositoryAdminForm objectGets the removeInvalidRecords attribute of the RepositoryAdminForm objectGet the directory where the repository persistent data and certain configs resides, including the collections configs, specified by the init param repositoryData.Gets the repositoryIdentifier attribute of the RepositoryAdminForm objectgetSets()Gets the sets configured in the RepositoryManager.Gets the sortSetsBy attribute of the RepositoryAdminForm objectGets the boosting factor used to rank items with matching stemmed terms.Indicates whether stemming support is enabled.Gets the titleBoostFactor attribute of the RepositoryAdminForm objectGets the trustedWsIps attribute of the RepositoryAdminForm objectGets the frequency by which the index is updated to reflect changes that occur in the metadata files.Gets the validateRecords attribute of the RepositoryAdminForm objectGrabs the collection keys from the DPC keys schema.Grabs the valid metadata formats from the DPC schema.Gets the xmlError attribute of the RepositoryAdminForm objectvoidreset(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request) Reset bean properties to their default state, as needed.voidSets the add attribute of the RepositoryAdminForm objectvoidsetCollectionRecordsLocation(String collectionRecordsLocation) Sets the absolute path to the collectionRecordsLocation.voidsetCommand(String command) Sets the command attribute of the RepositoryAdminForm objectvoidsetCurrentAdminEmail(String value) Sets the currentAdminEmail attribute of the RepositoryAdminForm objectvoidsetCurrentDescription(String value) Sets the currentDescription attribute of the RepositoryAdminForm objectvoidsetCurrentSetDescription(String value) Sets the currentSetDescription attribute of the RepositoryAdminForm objectvoidsetCurrentSetDirectory(String value) Sets the currentSetDirectory attribute of the RepositoryAdminForm objectvoidsetCurrentSetFormat(String value) Sets the currentSetFormat attribute of the RepositoryAdminForm objectvoidsetCurrentSetName(String value) Sets the currentSetName attribute of the RepositoryAdminForm objectvoidsetCurrentSetSpec(String value) Sets the currentSetSpec attribute of the RepositoryAdminForm objectvoidsetDrcBoostFactor(String boostFactor) Sets the boosting factor used to rank items in the DRC.voidsetIdexingDaysOfWeek(int[] daysOfWeek) Sets the idexingDaysOfWeek as an array of Calendar.DAY_OF_WEEK fields, or null if none.voidsetIndexingStartTime(Date indexingStartTime) Sets the date and time the indexer is/was scheduled to start.voidsetMessage(String message) Sets the message attribute of the RepositoryAdminForm 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 RepositoryAdminForm objectvoidsetNumIndexingErrors(int numErrors) Sets the number of indexing errors that are present.voidsetNumRecordsResults(String numResults) Sets the numRecordsResults attribute of the RepositoryAdminForm objectvoidsetRepositoryIdentifier(String value) Sets the repositoryIdentifier attribute of the RepositoryAdminForm objectvoidsetRepositoryName(String name) Sets the repositoryName attribute of the RepositoryAdminForm objectvoidSets the sets attribute of the RepositoryAdminForm objectvoidsetSortSetsBy(String sortSetsBy) Sets the sortSetsBy attribute of the RepositoryAdminForm 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) Sets the trustedWsIps attribute of the RepositoryAdminForm objectvoidsetUpdateFrequency(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 RepositoryAdminForm 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, setMultipartRequestHandler, setServlet, validate
-
Constructor Details
-
RepositoryAdminForm
public RepositoryAdminForm()Constructor for the RepositoryAdminForm Bean object
-
-
Method Details
-
getCommand
Gets the command attribute of the RepositoryAdminForm object- Returns:
- The command value
-
setCommand
Sets the command attribute of the RepositoryAdminForm object- Parameters:
command- The new command value
-
getTrustedWsIps
Gets the trustedWsIps attribute of the RepositoryAdminForm object- Returns:
- The trustedWsIps value
-
setTrustedWsIps
Sets the trustedWsIps attribute of the RepositoryAdminForm object- Parameters:
val- The new trustedWsIps value
-
getNumIdentifiersResults
Gets the numIdentifiersResults attribute of the RepositoryAdminForm object- Returns:
- The numIdentifiersResults value
-
setNumIdentifiersResults
Sets the numIdentifiersResults attribute of the RepositoryAdminForm object- Parameters:
numResults- The new numIdentifiersResults value
-
getNumRecordsResults
Gets the numRecordsResults attribute of the RepositoryAdminForm object- Returns:
- The numRecordsResults value
-
setNumRecordsResults
Sets the numRecordsResults attribute of the RepositoryAdminForm 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
-
getIndexingDaysOfWeek
Gets the days of the week the indexer will run, as a String.- Returns:
- The indexingDaysOfWeek value
-
setIdexingDaysOfWeek
public void setIdexingDaysOfWeek(int[] daysOfWeek) Sets the idexingDaysOfWeek as an array of Calendar.DAY_OF_WEEK fields, or null if none.- Parameters:
daysOfWeek- The new idexingDaysOfWeek 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 RepositoryAdminForm object- Returns:
- The removeInvalidRecords value
-
getValidateRecords
Gets the validateRecords attribute of the RepositoryAdminForm object- Returns:
- The validateRecords value
-
setRepositoryName
Sets the repositoryName attribute of the RepositoryAdminForm object- Parameters:
name- The new repositoryName value
-
setRepositoryIdentifier
Sets the repositoryIdentifier attribute of the RepositoryAdminForm object- Parameters:
value- The new repositoryIdentifier value
-
getRepositoryIdentifier
Gets the repositoryIdentifier attribute of the RepositoryAdminForm object- Overrides:
getRepositoryIdentifierin classRepositoryForm- Returns:
- The repositoryIdentifier value
-
setCurrentAdminEmail
Sets the currentAdminEmail attribute of the RepositoryAdminForm object- Parameters:
value- The new currentAdminEmail value
-
getCurrentAdminEmail
Gets the currentAdminEmail attribute of the RepositoryAdminForm object- Returns:
- The currentAdminEmail value
-
getExampleId
Gets the exampleId attribute of the RepositoryAdminForm object- Returns:
- The exampleId value
-
setCurrentDescription
Sets the currentDescription attribute of the RepositoryAdminForm object- Parameters:
value- The new currentDescription value
-
getCurrentDescription
Gets the currentDescription attribute of the RepositoryAdminForm object- Returns:
- The currentDescription value
-
setAdd
Sets the add attribute of the RepositoryAdminForm object- Parameters:
value- The new add value
-
getAdd
Gets the add attribute of the RepositoryAdminForm 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
-
getConfigDirLocation
Gets the path to the RepositoryManager config directory.- Returns:
- The RepositoryManager config dir.
-
getRepositoryDataDir
Get the directory where the repository persistent data and certain configs resides, including the collections configs, specified by the init param repositoryData.- Returns:
- The directory where the repository data and certain configs resides.
-
setCurrentSetDescription
Sets the currentSetDescription attribute of the RepositoryAdminForm object- Parameters:
value- The new currentSetDescription value
-
getCurrentSetDescription
Gets the currentSetDescription attribute of the RepositoryAdminForm object- Returns:
- The currentSetDescription value
-
setCurrentSetName
Sets the currentSetName attribute of the RepositoryAdminForm object- Parameters:
value- The new currentSetName value
-
getCurrentSetName
Gets the currentSetName attribute of the RepositoryAdminForm object- Returns:
- The currentSetName value
-
setCurrentSetSpec
Sets the currentSetSpec attribute of the RepositoryAdminForm object- Parameters:
value- The new currentSetSpec value
-
getCurrentSetSpec
Gets the currentSetSpec attribute of the RepositoryAdminForm object- Returns:
- The currentSetSpec value
-
setCurrentSetDirectory
Sets the currentSetDirectory attribute of the RepositoryAdminForm object- Parameters:
value- The new currentSetDirectory value
-
getCurrentSetDirectory
Gets the currentSetDirectory attribute of the RepositoryAdminForm object- Returns:
- The currentSetDirectory value
-
getSortSetsBy
Gets the sortSetsBy attribute of the RepositoryAdminForm object- Returns:
- The sortSetsBy value
-
setSortSetsBy
Sets the sortSetsBy attribute of the RepositoryAdminForm 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 RepositoryAdminForm object- Parameters:
sets- The new sets value
-
setCurrentSetFormat
Sets the currentSetFormat attribute of the RepositoryAdminForm object- Parameters:
value- The new currentSetFormat value
-
getCurrentSetFormat
Gets the currentSetFormat attribute of the RepositoryAdminForm 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 RepositoryAdminForm 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 RepositoryAdminForm object- Parameters:
message- The new message value
-
getMessage
Gets the message attribute of the RepositoryAdminForm object- Returns:
- The message value
-
setXmlError
Sets the xmlError attribute of the RepositoryAdminForm object- Parameters:
xmlError- The new xmlError value
-
getXmlError
Gets the xmlError attribute of the RepositoryAdminForm 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.
-
reset
Reset bean properties to their default state, as needed.- Overrides:
resetin classorg.apache.struts.action.ActionForm- Parameters:
mapping- The ActionMapping being usedrequest- The HttpServletRequest
-
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.
-