Package org.dlese.dpc.schemedit.config
Class CollectionConfigReader
java.lang.Object
org.dlese.dpc.schemedit.config.AbstractConfigReader
org.dlese.dpc.schemedit.config.CollectionConfigReader
- All Implemented Interfaces:
Serializable
Extracts info from a Collection configuration document. Used to populate
CollectionConfig objects for each of
the frameworks supported by DCS.- Author:
- ostwald
- See Also:
-
Field Summary
FieldsFields inherited from class org.dlese.dpc.schemedit.config.AbstractConfigReader
df, docMap, nameSpaceInfo, rootElementName, source, writeOnDestroy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRemove all ndrInfo from the CollectionConfig and set "authority" to "dcs".Gets the agentHandle attribute of the CollectionConfigReader objectGets the aggregatorHandle attribute of the CollectionConfigReader objectbooleanGets the authority attribute of the CollectionConfigReader objectGets the name attribute of the CollectionConfigReader objectGets the finalStatusLabel attribute of the CollectionConfigReader objectgetId()optional nodeoptional nodeGets the metadataProviderHandle attribute of the CollectionConfigReader objectGets the ndrOaiLink attribute of the CollectionConfigReader objectGets the ndrServer attribute of the CollectionConfigReader objectGets the statusMap attribute of the CollectionConfigReader objectGets the tupleMap attribute of the CollectionConfigReader objectGets the xmlFormat attribute of the CollectionConfigReader objectprotected static voidPrint a line to standard out.voidrefresh()Force update by clearing cached valuesvoidsetAgentHandle(String pid) Sets the agentHandle attribute of the CollectionConfigReader objectvoidSets the aggregatorHandle attribute of the CollectionConfigReader objectvoidsetAllowSuggestions(boolean value) voidSets the authority attribute of the CollectionConfigReader objectvoidSets the exportDirectory attribute of the CollectionConfigReader objectvoidSets the finalStatusLabel attribute of the CollectionConfigReader objectvoidSets the discussionURL attribute of the CollectionConfigReader objectvoidSets the idPrefix attribute of the CollectionConfigReader objectvoidsetMetadataProviderHandle(String handle) Sets the metadataProviderHandle attribute of the CollectionConfigReader objectvoidsetNdrOaiLink(String link) Sets the ndrOaiLink attribute of the CollectionConfigReader objectvoidsetNdrServer(String server) Sets the ndrServer attribute of the CollectionConfigReader objectvoidsetStatusMap(Map sMap) NOTE: if we edit the config record via schemedit, the record is automatically updated and then we have to reload it.voidsetTupleMap(Map tMap) Sets the tupleMap attribute of the CollectionConfigReader objectvoidSets the xmlFormat attribute of the CollectionConfigReader objectMethods inherited from class org.dlese.dpc.schemedit.config.AbstractConfigReader
destroy, flush, getDelocalizedDoc, getDocMap, getDocument, getNode, getNodes, getNodeText, getSource, getSourcePath, setNodeText, setSource
-
Field Details
-
debug
protected static boolean debugNOT YET DOCUMENTED
-
-
Constructor Details
-
CollectionConfigReader
Create a CollectionConfigReader.- Parameters:
source- Description of the Parameter- Throws:
Exception- NOT YET DOCUMENTED
-
-
Method Details
-
getId
optional node- Returns:
- The discussionURL value
-
setId
Sets the discussionURL attribute of the CollectionConfigReader object- Parameters:
s- The new discussionURL value
-
getIdPrefix
optional node- Returns:
- The idPrefix value
-
setIdPrefix
Sets the idPrefix attribute of the CollectionConfigReader object- Parameters:
s- The new idPrefix value
-
getExportDirectory
Gets the name attribute of the CollectionConfigReader object- Returns:
- The name value
-
setExportDirectory
Sets the exportDirectory attribute of the CollectionConfigReader object- Parameters:
s- The new exportDirectory value
-
getXmlFormat
Gets the xmlFormat attribute of the CollectionConfigReader object- Returns:
- The xmlFormat value
-
setXmlFormat
Sets the xmlFormat attribute of the CollectionConfigReader object- Parameters:
s- The new xmlFormat value
-
getAuthority
Gets the authority attribute of the CollectionConfigReader object- Returns:
- The authority value
-
setAuthority
Sets the authority attribute of the CollectionConfigReader object- Parameters:
s- The new authority value
-
getAllowSuggestions
public boolean getAllowSuggestions() -
setAllowSuggestions
public void setAllowSuggestions(boolean value) -
clearNdrInfo
public void clearNdrInfo()Remove all ndrInfo from the CollectionConfig and set "authority" to "dcs". -
getMetadataProviderHandle
Gets the metadataProviderHandle attribute of the CollectionConfigReader object- Returns:
- The metadataProviderHandle value
-
setMetadataProviderHandle
Sets the metadataProviderHandle attribute of the CollectionConfigReader object- Parameters:
handle- The new metadataProviderHandle value
-
getAggregatorHandle
Gets the aggregatorHandle attribute of the CollectionConfigReader object- Returns:
- The aggregatorHandle value
-
setAggregatorHandle
Sets the aggregatorHandle attribute of the CollectionConfigReader object- Parameters:
pid- The new aggregatorHandle value
-
getAgentHandle
Gets the agentHandle attribute of the CollectionConfigReader object- Returns:
- The agentHandle value
-
setAgentHandle
Sets the agentHandle attribute of the CollectionConfigReader object- Parameters:
pid- The new agentHandle value
-
getNdrOaiLink
Gets the ndrOaiLink attribute of the CollectionConfigReader object- Returns:
- The ndrOaiLink value
-
setNdrOaiLink
Sets the ndrOaiLink attribute of the CollectionConfigReader object- Parameters:
link- The new ndrOaiLink value
-
getNdrServer
Gets the ndrServer attribute of the CollectionConfigReader object- Returns:
- The ndrServer value
-
setNdrServer
Sets the ndrServer attribute of the CollectionConfigReader object- Parameters:
link- The new ndrServer value
-
getFinalStatusLabel
Gets the finalStatusLabel attribute of the CollectionConfigReader object- Returns:
- The finalStatusLabel value
-
setFinalStatusLabel
Sets the finalStatusLabel attribute of the CollectionConfigReader object- Parameters:
s- The new finalStatusLabel value
-
getStatusMap
Gets the statusMap attribute of the CollectionConfigReader object- Returns:
- The statusMap value
-
setStatusMap
NOTE: if we edit the config record via schemedit, the record is automatically updated and then we have to reload it. But if we edit the statusMap via another editor, then this method is necessary to update the config file- Parameters:
sMap- The new statusMap value- Throws:
Exception- NOT YET DOCUMENTED
-
getTupleMap
Gets the tupleMap attribute of the CollectionConfigReader object- Returns:
- The tupleMap value
-
setTupleMap
Sets the tupleMap attribute of the CollectionConfigReader object- Parameters:
tMap- The new tupleMap value- Throws:
Exception- NOT YET DOCUMENTED
-
refresh
public void refresh()Force update by clearing cached values- Overrides:
refreshin classAbstractConfigReader
-
prtln
Print a line to standard out.- Parameters:
s- The String to print.
-