Package org.dspace.discovery
Class SolrServiceWorkspaceWorkflowRestrictionPlugin
java.lang.Object
org.dspace.discovery.SolrServiceWorkspaceWorkflowRestrictionPlugin
- All Implemented Interfaces:
SolrServiceSearchPlugin
public class SolrServiceWorkspaceWorkflowRestrictionPlugin
extends Object
implements SolrServiceSearchPlugin
Plugin to restrict or grant access to workspace and workflow items
based on the discovery configuration used.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuthorizeServicestatic final StringThe name of the discover configuration used by administrators to search for workspace and workflow tasksstatic final StringThe name of the discover configuration used by administrators to search for workflow tasksstatic final StringThe name of the discover configuration used to search for workflow tasks in the mydspacestatic final StringThe name of the discover configuration used to search for inprogress submission in the mydspaceprotected GroupService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadditionalSearchParameters(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
-
DISCOVER_WORKSPACE_CONFIGURATION_NAME
The name of the discover configuration used to search for inprogress submission in the mydspace- See Also:
-
DISCOVER_WORKFLOW_CONFIGURATION_NAME
The name of the discover configuration used to search for workflow tasks in the mydspace- See Also:
-
DISCOVER_WORKFLOW_ADMIN_CONFIGURATION_NAME
The name of the discover configuration used by administrators to search for workflow tasks- See Also:
-
DISCOVER_SUPERVISION_CONFIGURATION_NAME
The name of the discover configuration used by administrators to search for workspace and workflow tasks- See Also:
-
groupService
-
authorizeService
-
-
Constructor Details
-
SolrServiceWorkspaceWorkflowRestrictionPlugin
public SolrServiceWorkspaceWorkflowRestrictionPlugin()
-
-
Method Details
-
additionalSearchParameters
public void additionalSearchParameters(Context context, DiscoverQuery discoveryQuery, org.apache.solr.client.solrj.SolrQuery solrQuery) throws SearchServiceException 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.- Throws:
SearchServiceException- Any checked exception that might happen in this plugin
-