Interface MCROAISetHandler<Q,R,K>

Type Parameters:
Q - set type
R - Result collection type
K - Result collection key type
All Known Implementing Classes:
MCROAIClassificationToSetHandler, MCROAIQueryToSetHandler, MCROAISolrSetHandler

public interface MCROAISetHandler<Q,R,K>
Base interface to handle mycore oai sets.
Author:
Matthias Eichner
  • Method Details

    • init

      void init(String configPrefix, String setId)
      Initializes the set handler with the configPrefix (MCR.OAIDataProvider.MY_PROVIDER) and a setId (MCR.OAIDataProvider.MY_PROVIDER.Sets.SET_ID).
      Parameters:
      configPrefix - the config prefix
      setId - the set id without any prefix
    • filter

      default boolean filter(MCRSet set)
      Called before apply(MCRSet, Object) to check if the given set should be added to the ListSets view.
      Returns:
      false if the given set should be added (the set is not filtered)
    • getSetMap

      Map<String,MCRSet> getSetMap()
    • apply

      void apply(MCRSet set, Q q)
    • getSetResolver

      MCROAISetResolver<K,R> getSetResolver(Collection<R> result)