|
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.dlese.dpc.schemedit.config.CollectionConfig
public class CollectionConfig
Holds information about a collection that is accessed via a CollectionConfigReader
.
CollectionConfig supports getting and setting of workflow status flags, default export directory path, etc. Existing collection configuration files are read at system startup time, but there need not be a config file for each collection. Config files are created by copying a default.xml file and modifying it as settings are edited.
CollectionConfig instances are registered in a CollectionRegistry
instance.
$Id $
Constructor Summary | |
---|---|
CollectionConfig(CollectionConfigReader configReader)
Constructor for the CollectionConfig object |
|
CollectionConfig(File configFile,
CollectionRegistry collectionRegistry)
Constructor for the CollectionConfig object |
Method Summary | |
---|---|
void |
clearNdrInfo()
Removes all content from the NDR info element. |
void |
destroy()
Description of the Method |
boolean |
flush()
Writes config file to disk and re-initializes data structures based on config. |
String |
getAgentHandle()
Gets the handle of the NDR agent object for this collection. |
String |
getAggregatorHandle()
Gets the handle of the NDR aggregator object for this collection. |
List |
getAssignableStatusFlags()
Return a list of StatusFlag beans that describe the statuses that
can be assigned to a record of this collection. |
String |
getAuthority()
Gets the authority attribute of the CollectionConfig object |
CollectionConfigReader |
getConfigReader()
Gets the configReader attribute of the CollectionConfig object |
String |
getExportDirectory()
Gets the exportDirectory attribute of the CollectionConfig object |
StatusFlag |
getFinalStatusFlag()
Gets the finalStatusFlag for this collection. |
String |
getFinalStatusLabel()
Gets the finalStatusLabel (display string) for this collection. |
String |
getFinalStatusValue()
Convenience method to retrieve the FinalStatusFlagValue for this collection from StatusFlags. |
String |
getId()
Gets the id attribute of the CollectionConfig object |
IDGenerator |
getIDGenerator()
Gets the iDGenerator attribute of the CollectionConfig object |
String |
getIdPrefix()
Gets the idPrefix for this collection. |
String |
getMetadataProviderHandle()
Gets the handle of this collections metadataProvider object in the NDR. |
String |
getNdrOaiLink()
Gets the ndrOaiLink for this collection, which is the "itemId" of Collection Metadata records stored in the NDR, and which is inserted in the InfoStream of item-level metadata records when they are written to the NDR. |
String |
getNdrServer()
|
List |
getSelectableStatusFlags()
Returns a list of StatusFlags defined by this collection that can be selected for searching. |
DcsSetInfo |
getSetInfo(RepositoryManager rm)
Gets the setInfo for this collection from the RepositoryManager. |
String |
getStatusFlagLabel(String statusFlagValue)
Return the status flag label (the readable version) for the given status flag value (which must be decoded if it is a final status flag). |
List |
getStatusFlags()
Get sorted list of statusFlags defined in this collection for use in jsp, where we need the StatusFlag object, not just the label. |
List |
getStatusLabels()
Returns a sorted list of StatusFlag labels defined by this collection. |
Map |
getStatusMap()
The StatusMap holds mappings from the StatusFlag values defined by this collection to their corresponding StatusFlag instances. |
boolean |
getSuggestionsAllowed()
|
Map |
getTupleMap()
Gets the tupleMap for this collection. |
String |
getTupleValue(String name)
Get the value of the named tuple. |
String |
getXmlFormat()
Gets the xmlFormat attribute of the CollectionConfig object |
boolean |
isNDRCollection()
Convenience method to determine whether this collection is managed in the NDR. |
String |
nextID()
Get the next ID to be assigned for this collection. |
void |
refresh()
Causes all values to be re-read from config file on disk. |
void |
setAgentHandle(String agentHandle)
Sets the handle of the NDR agent object for this collection. |
void |
setAggregatorHandle(String aggregatorHandle)
Sets the handle of the NDR aggregator object for this collection. |
void |
setAuthority(String authority)
Sets the authority attribute for this collection, which is used to determine whether the collection is managed in the NDR. |
void |
setExportDirectory(String s)
Sets the exportDirectory attribute of the CollectionConfig object |
void |
setFinalStatusLabel(String s)
Sets the finalStatusLabel (the display label) for this collection's final Status. |
void |
setId(String id)
Sets the id attribute of the CollectionConfig object |
void |
setIdPrefix(String idPrefix)
Sets the idPrefix for this collection that is used to construct record IDs. |
void |
setMetadataProviderHandle(String metadataProviderHandle)
Sets the handle of this collections metadataProvider object in the NDR. |
void |
setNdrOaiLink(String link)
Sets the ndrOaiLink attribute of the CollectionConfig object |
void |
setNdrServer(String server)
Sets the ndrServer attribute of the CollectionConfig object |
void |
setStatusMap(Map statusMap)
Write the contents of this collection's StatusMap to the collection-config file. |
void |
setSuggestionsAllowedd(boolean allowed)
|
void |
setTupleMap(Map tupleMap)
Sets the tupleMap for this collection, which contains name, value pairs that are automatically inserted into new metadata records. |
void |
setTupleValue(String name,
String value)
Adds tuple entry to the tupleMap. |
void |
setXmlFormat(String xmlFormat)
Sets the xmlFormat attribute for this collection. |
String |
toString()
Description of the Method |
void |
updateTuples(MetaDataFramework framework)
Ensure there is an element in the config file for each tuple defined in the metaDataFramework for this collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CollectionConfig(File configFile, CollectionRegistry collectionRegistry)
configFile
- Description of the ParametercollectionRegistry
- NOT YET DOCUMENTEDpublic CollectionConfig(CollectionConfigReader configReader)
configReader
- Description of the ParameterMethod Detail |
---|
public IDGenerator getIDGenerator()
public String nextID()
public void setIdPrefix(String idPrefix)
idPrefix
- The new idPrefix valuepublic String getIdPrefix()
public CollectionConfigReader getConfigReader()
public void updateTuples(MetaDataFramework framework) throws Exception
framework
- NOT YET DOCUMENTED
Exception
- NOT YET DOCUMENTEDpublic String getId()
public void setId(String id)
id
- The new id valuepublic String getXmlFormat()
public void setXmlFormat(String xmlFormat)
xmlFormat
- The new xmlFormat valuepublic boolean getSuggestionsAllowed()
public void setSuggestionsAllowedd(boolean allowed)
public void clearNdrInfo()
public String getAuthority()
public boolean isNDRCollection()
public void setAuthority(String authority)
authority
- The new authority valuepublic String getMetadataProviderHandle()
public void setMetadataProviderHandle(String metadataProviderHandle)
metadataProviderHandle
- The new metadataProviderHandle valuepublic String getAggregatorHandle()
public void setAggregatorHandle(String aggregatorHandle)
aggregatorHandle
- The new aggregatorHandle valuepublic String getAgentHandle()
public void setAgentHandle(String agentHandle)
agentHandle
- The new agentHandle valuepublic String getNdrOaiLink()
public void setNdrOaiLink(String link)
link
- The new ndrOaiLink valuepublic String getNdrServer()
public void setNdrServer(String server)
link
- The new ndrServer valuepublic Map getStatusMap()
public Map getTupleMap()
public DcsSetInfo getSetInfo(RepositoryManager rm)
rm
- Description of the Parameter
public void setStatusMap(Map statusMap)
statusMap
- The new statusMap valuepublic void setTupleMap(Map tupleMap)
tupleMap
- The new tupleMap valuepublic List getStatusLabels()
public String getTupleValue(String name)
name
- NOT YET DOCUMENTED
public void setTupleValue(String name, String value)
name
- The new tupleValue valuevalue
- The new tupleValue valuepublic String getStatusFlagLabel(String statusFlagValue)
statusFlagValue
- NOT YET DOCUMENTED
public List getStatusFlags()
public List getAssignableStatusFlags()
StatusFlag
beans that describe the statuses that
can be assigned to a record of this collection. The selectableStatusFlags
list is composed of the UNKNOWN_status plus those statuses that are defined
for the collection. The IMPORT status is not selectable, since it is only
assigned by the system.
public List getSelectableStatusFlags()
public String getExportDirectory()
public void setExportDirectory(String s)
s
- The new exportDirectory valuepublic String getFinalStatusValue()
public String getFinalStatusLabel()
public StatusFlag getFinalStatusFlag()
public void setFinalStatusLabel(String s)
s
- The new finalStatusLabel valuepublic boolean flush()
public void refresh()
public String toString()
toString
in class Object
public void destroy()
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |