Package io.goobi.viewer.model.archives
Class ArchiveParser
java.lang.Object
io.goobi.viewer.model.archives.ArchiveParser
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SolrEADParser
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAssociatedRecordPis
(SolrSearchIndex searchIndex) static String
getIdForName
(String name) abstract List<ArchiveResource>
Get the database names and file names.abstract String
getUrl()
abstract ArchiveEntry
loadDatabase
(ArchiveResource database, int lazyLoadingThreshold) Loads the given database and parses the EAD document.abstract boolean
searchInUnparsedNodes
(ArchiveEntry node, String searchValue) void
-
Field Details
-
associatedRecordMap
-
-
Constructor Details
-
ArchiveParser
protected ArchiveParser()
-
-
Method Details
-
updateAssociatedRecordMap
-
getAssociatedRecordPis
protected static Map<String,Map.Entry<String, getAssociatedRecordPisBoolean>> (SolrSearchIndex searchIndex) throws PresentationException, IndexUnreachableException - Parameters:
searchIndex
-- Returns:
- Map<String, Entry<String, Boolean>>
- Throws:
PresentationException
IndexUnreachableException
-
getPossibleDatabases
public abstract List<ArchiveResource> getPossibleDatabases() throws PresentationException, IndexUnreachableException, IOException, HTTPExceptionGet the database names and file names.- Returns:
- List
- Throws:
HTTPException
IndexUnreachableException
IOException
PresentationException
-
loadDatabase
public abstract ArchiveEntry loadDatabase(ArchiveResource database, int lazyLoadingThreshold) throws PresentationException, IndexUnreachableException, IllegalStateException, IOException, HTTPException Loads the given database and parses the EAD document.- Parameters:
database
-lazyLoadingThreshold
- Number of total archive nodes from which to no longer eager load the entire tree- Returns:
- Root element of the loaded tree
- Throws:
HTTPException
IllegalStateException
IndexUnreachableException
IOException
PresentationException
-
getIdForName
-
getUrl
-
searchInUnparsedNodes
- Parameters:
node
-searchValue
-- Returns:
- true if new nodes were loaded; false otherwise
-