Class MCROAISetResolver<K,T>

java.lang.Object
org.mycore.oai.set.MCROAISetResolver<K,T>

public class MCROAISetResolver<K,T> extends Object
Author:
Thomas Scheffler (yagee)
  • Constructor Details

    • MCROAISetResolver

      public MCROAISetResolver()
  • Method Details

    • init

      public void init(String configPrefix, String setId, Map<String,MCRSet> setMap, Collection<T> result, Function<T,K> identifier)
      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
    • getSets

      public Collection<org.mycore.oai.pmh.Set> getSets(K key)
      Returns a collection of Sets for the current SetSpec.
      Parameters:
      key - is the key of the result
      Returns:
      this implementation returns empty set, should be overwritten
    • getConfigPrefix

      protected String getConfigPrefix()
    • getSetId

      protected String getSetId()
    • getResult

      protected Collection<T> getResult()
    • getIdentifier

      protected Function<T,K> getIdentifier()
    • getSetMap

      protected Map<String,MCRSet> getSetMap()