Package org.mycore.oai.set
Class MCROAISetResolver<K,T>
java.lang.Object
org.mycore.oai.set.MCROAISetResolver<K,T>
- Author:
- Thomas Scheffler (yagee)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected Collection<T>
protected String
getSetId()
Collection<org.mycore.oai.pmh.Set>
Returns a collection of Sets for the current SetSpec.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).
-
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 prefixsetId
- the set id without any prefix
-
getSets
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
-
getSetId
-
getResult
-
getIdentifier
-
getSetMap
-