Class ContentAssistResourceBuilder

java.lang.Object
io.goobi.viewer.api.rest.resourcebuilders.ContentAssistResourceBuilder

public class ContentAssistResourceBuilder extends Object
Manages contentAssist requests by returning lists of suggested values from partial input.
Author:
Florian Alpers
  • 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 values
      inputString - 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 index
      IndexUnreachableException - If an error occurred communicating with the SOLR index
      de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException