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 Details

    • 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:
    • 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:
    • 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:
    • 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:
    • groupService

      @Autowired(required=true) protected GroupService groupService
    • authorizeService

      @Autowired(required=true) protected AuthorizeService 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: SolrServiceSearchPlugin
      Edits the solr query before it is sent to solr by adding additional parameters to it.
      Specified by:
      additionalSearchParameters in interface SolrServiceSearchPlugin
      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