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
Fields Modifier and Type Field Description protected AuthorizeServiceauthorizeServicestatic StringDISCOVER_SUPERVISION_CONFIGURATION_NAMEThe name of the discover configuration used by administrators to search for workspace and workflow tasksstatic StringDISCOVER_WORKFLOW_ADMIN_CONFIGURATION_NAMEThe name of the discover configuration used by administrators to search for workflow tasksstatic StringDISCOVER_WORKFLOW_CONFIGURATION_NAMEThe name of the discover configuration used to search for workflow tasks in the mydspacestatic StringDISCOVER_WORKSPACE_CONFIGURATION_NAMEThe name of the discover configuration used to search for inprogress submission in the mydspaceprotected GroupServicegroupService
-
Constructor Summary
Constructors Constructor Description SolrServiceWorkspaceWorkflowRestrictionPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 Detail
-
DISCOVER_WORKSPACE_CONFIGURATION_NAME
public static final String DISCOVER_WORKSPACE_CONFIGURATION_NAME
The name of the discover configuration used to search for inprogress submission in the mydspace- See Also:
- Constant Field Values
-
DISCOVER_WORKFLOW_CONFIGURATION_NAME
public static final String DISCOVER_WORKFLOW_CONFIGURATION_NAME
The name of the discover configuration used to search for workflow tasks in the mydspace- See Also:
- Constant Field Values
-
DISCOVER_WORKFLOW_ADMIN_CONFIGURATION_NAME
public static final String DISCOVER_WORKFLOW_ADMIN_CONFIGURATION_NAME
The name of the discover configuration used by administrators to search for workflow tasks- See Also:
- Constant Field Values
-
DISCOVER_SUPERVISION_CONFIGURATION_NAME
public static final String DISCOVER_SUPERVISION_CONFIGURATION_NAME
The name of the discover configuration used by administrators to search for workspace and workflow tasks- See Also:
- Constant Field Values
-
groupService
@Autowired(required=true) protected GroupService groupService
-
authorizeService
@Autowired(required=true) protected AuthorizeService authorizeService
-
-
Method Detail
-
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
-
-