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

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

        @Autowired(required=true)
        protected AuthorizeService authorizeService
    • Constructor Detail

      • SolrServiceWorkspaceWorkflowRestrictionPlugin

        public SolrServiceWorkspaceWorkflowRestrictionPlugin()
    • Method Detail

      • 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