Package io.goobi.viewer.model.archives
Class SolrEADParser
java.lang.Object
io.goobi.viewer.model.archives.ArchiveParser
io.goobi.viewer.model.archives.SolrEADParser
- All Implemented Interfaces:
Serializable
Loads and parses EAD documents from the Solr index.
- See Also:
-
Field Summary
Fields inherited from class io.goobi.viewer.model.archives.ArchiveParser
associatedRecordMap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.apache.solr.common.SolrDocument>
getChildDocsForIddoc
(String iddoc) Get the database names.getUrl()
void
loadChildren
(ArchiveEntry entry, Set<String> loadPath, boolean loadChildrenRecursively) loadDatabase
(ArchiveResource database, int lazyLoadingThreshold) Loads the given database and parses the EAD document.loadNode
(int order, int hierarchy, org.apache.solr.common.SolrDocument doc, Set<String> loadPath, boolean loadChildrenRecursively) boolean
searchInUnparsedNodes
(ArchiveEntry node, String searchValue) toString()
Methods inherited from class io.goobi.viewer.model.archives.ArchiveParser
getAssociatedRecordPis, getIdForName, updateAssociatedRecordMap
-
Constructor Details
-
SolrEADParser
public SolrEADParser()
-
-
Method Details
-
getPossibleDatabases
public List<ArchiveResource> getPossibleDatabases() throws PresentationException, IndexUnreachableExceptionGet the database names.- Specified by:
getPossibleDatabases
in classArchiveParser
- Returns:
- List
- Throws:
IndexUnreachableException
PresentationException
-
loadDatabase
public ArchiveEntry loadDatabase(ArchiveResource database, int lazyLoadingThreshold) throws PresentationException, IndexUnreachableException Loads the given database and parses the EAD document.- Specified by:
loadDatabase
in classArchiveParser
- Parameters:
database
-lazyLoadingThreshold
-- Returns:
- Root element of the loaded tree
- Throws:
IndexUnreachableException
PresentationException
-
loadNode
public ArchiveEntry loadNode(int order, int hierarchy, org.apache.solr.common.SolrDocument doc, Set<String> loadPath, boolean loadChildrenRecursively) throws PresentationException, IndexUnreachableException - Parameters:
order
-hierarchy
-doc
-loadPath
-loadChildrenRecursively
-- Returns:
ArchiveEntry
- Throws:
IndexUnreachableException
PresentationException
-
loadChildren
public void loadChildren(ArchiveEntry entry, Set<String> loadPath, boolean loadChildrenRecursively) throws PresentationException, IndexUnreachableException - Parameters:
entry
-loadPath
-loadChildrenRecursively
-- Throws:
PresentationException
IndexUnreachableException
-
getChildDocsForIddoc
public static List<org.apache.solr.common.SolrDocument> getChildDocsForIddoc(String iddoc) throws PresentationException, IndexUnreachableException - Parameters:
iddoc
- Parent IDDOC- Returns:
- Map<String, List<SolrDocument>>
- Throws:
PresentationException
IndexUnreachableException
-
searchInUnparsedNodes
- Specified by:
searchInUnparsedNodes
in classArchiveParser
- Returns:
- true if new nodes were loaded; false otherwise
-
getUrl
- Specified by:
getUrl
in classArchiveParser
-
toString
-