Package org.mycore.oai.set
Class MCROAIClassificationToSetHandler
java.lang.Object
org.mycore.oai.set.MCROAISolrSetHandler
org.mycore.oai.set.MCROAIClassificationToSetHandler
- All Implemented Interfaces:
MCROAISetHandler<org.apache.solr.client.solrj.SolrQuery,
org.apache.solr.common.SolrDocument, String>
Classification set handler.
- Author:
- Matthias Eichner
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
Called beforeMCROAISetHandler.apply(MCRSet, Object)
to check if the given set should be added to the ListSets view.MCROAISetResolver<String,
org.apache.solr.common.SolrDocument> getSetResolver
(Collection<org.apache.solr.common.SolrDocument> result) void
Initializes the set handler with the configPrefix (MCR.OAIDataProvider.MY_PROVIDER) and a setId (MCR.OAIDataProvider.MY_PROVIDER.Sets.SET_ID).Methods inherited from class org.mycore.oai.set.MCROAISolrSetHandler
getConfigPrefix, getHandlerPrefix, getIdentifier, getSetMap
-
Field Details
-
LOGGER
-
-
Constructor Details
-
MCROAIClassificationToSetHandler
public MCROAIClassificationToSetHandler()
-
-
Method Details
-
init
Description copied from interface:MCROAISetHandler
Initializes the set handler with the configPrefix (MCR.OAIDataProvider.MY_PROVIDER) and a setId (MCR.OAIDataProvider.MY_PROVIDER.Sets.SET_ID).- Specified by:
init
in interfaceMCROAISetHandler<org.apache.solr.client.solrj.SolrQuery,
org.apache.solr.common.SolrDocument, String> - Overrides:
init
in classMCROAISolrSetHandler
- Parameters:
configPrefix
- the config prefixhandlerPrefix
- the set id without any prefix
-
apply
-
filter
Description copied from interface:MCROAISetHandler
Called beforeMCROAISetHandler.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)
-
getFieldNames
- Overrides:
getFieldNames
in classMCROAISolrSetHandler
-
getSetResolver
public MCROAISetResolver<String,org.apache.solr.common.SolrDocument> getSetResolver(Collection<org.apache.solr.common.SolrDocument> result) - Specified by:
getSetResolver
in interfaceMCROAISetHandler<org.apache.solr.client.solrj.SolrQuery,
org.apache.solr.common.SolrDocument, String> - Overrides:
getSetResolver
in classMCROAISolrSetHandler
-