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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAssociatedRecordPis(SolrSearchIndex searchIndex) static StringgetIdForName(String name) abstract List<ArchiveResource> Get the database names and file names.abstract StringgetUrl()abstract ArchiveEntryloadDatabase(ArchiveResource database, int lazyLoadingThreshold) Loads the given database and parses the EAD document.abstract booleansearchInUnparsedNodes(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:
PresentationExceptionIndexUnreachableException
-
getPossibleDatabases
public abstract List<ArchiveResource> getPossibleDatabases() throws PresentationException, IndexUnreachableException, IOException, HTTPExceptionGet the database names and file names.- Returns:
- List
- Throws:
HTTPExceptionIndexUnreachableExceptionIOExceptionPresentationException
-
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:
HTTPExceptionIllegalStateExceptionIndexUnreachableExceptionIOExceptionPresentationException
-
getIdForName
-
getUrl
-
searchInUnparsedNodes
- Parameters:
node-searchValue-- Returns:
- true if new nodes were loaded; false otherwise
-