Class ContentAssistResourceBuilder
java.lang.Object
io.goobi.viewer.api.rest.resourcebuilders.ContentAssistResourceBuilder
Manages contentAssist requests by returning lists of suggested values from partial input.
- Author:
- Florian Alpers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCollections(String solrField, String inputString) getCollections.
-
Constructor Details
-
ContentAssistResourceBuilder
public ContentAssistResourceBuilder()
-
-
Method Details
-
getCollections
public List<String> getCollections(String solrField, String inputString) throws de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException, IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException getCollections.- Parameters:
solrField- Solr facet field to query for collection valuesinputString- partial input to filter suggestions, or "-" for all- Returns:
- a list of collection name strings matching the given input, filtered to exclude already configured CMS collections
- Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException- if the solrField doesn't exist in the indexIndexUnreachableException- If an error occurred communicating with the SOLR indexde.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
-