Package org.dspace.discovery
Class SolrServiceResourceRestrictionPlugin
java.lang.Object
org.dspace.discovery.SolrServiceResourceRestrictionPlugin
- All Implemented Interfaces:
SolrServiceIndexPlugin,SolrServiceSearchPlugin
public class SolrServiceResourceRestrictionPlugin
extends Object
implements SolrServiceIndexPlugin, SolrServiceSearchPlugin
Restriction plugin that ensures that indexes all the resource policies.
When a search is performed extra filter queries are added to retrieve only results to which the user has READ access
- Author:
- Kevin Van de Velde (kevin at atmire dot com), Mark Diggory (markd at atmire dot com), Ben Bosman (ben at atmire dot com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuthorizeServiceprotected CollectionServiceprotected CommunityServiceprotected GroupServiceprotected ResourcePolicyService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadditionalIndex(Context context, IndexableObject idxObj, org.apache.solr.common.SolrInputDocument document) voidadditionalSearchParameters(Context context, DiscoverQuery discoveryQuery, org.apache.solr.client.solrj.SolrQuery solrQuery) Edits the solr query before it is sent to solr by adding additional parameters to it.
-
Field Details
-
authorizeService
-
communityService
-
collectionService
-
groupService
-
resourcePolicyService
-
-
Constructor Details
-
SolrServiceResourceRestrictionPlugin
public SolrServiceResourceRestrictionPlugin()
-
-
Method Details
-
additionalIndex
public void additionalIndex(Context context, IndexableObject idxObj, org.apache.solr.common.SolrInputDocument document) - Specified by:
additionalIndexin interfaceSolrServiceIndexPlugin
-
additionalSearchParameters
public void additionalSearchParameters(Context context, DiscoverQuery discoveryQuery, org.apache.solr.client.solrj.SolrQuery solrQuery) Description copied from interface:SolrServiceSearchPluginEdits the solr query before it is sent to solr by adding additional parameters to it.- Specified by:
additionalSearchParametersin interfaceSolrServiceSearchPlugin- Parameters:
context- The DSpace Context object.discoveryQuery- The discovery query object on which the solr query is based.solrQuery- The query that will be sent to solr and which may be edited by this plugin.
-