Class FilteredIdentifierProvider

  • Direct Known Subclasses:
    DOIIdentifierProvider

    public abstract class FilteredIdentifierProvider
    extends IdentifierProvider
    This abstract class adds extra method signatures so that implementing IdentifierProviders can handle "skip filter" booleans, so that any configured filters can be skipped and DOI registration forced.
    Version:
    $Revision$
    Author:
    Kim Shepherd
    • Field Detail

      • filterService

        protected Filter filterService
    • Constructor Detail

      • FilteredIdentifierProvider

        public FilteredIdentifierProvider()
    • Method Detail

      • setFilterService

        @Autowired
        public void setFilterService​(Filter filterService)
        Setter for spring to set the filter service from the property in configuration XML
        Parameters:
        filterService - - an object implementing the org.dspace.content.logic.Filter interface
      • register

        public abstract String register​(Context context,
                                        DSpaceObject dso,
                                        boolean skipFilter)
                                 throws IdentifierException
        Register a new identifier for a given DSpaceObject
        Parameters:
        context - - DSpace context
        dso - - DSpaceObject to use for identifier registration
        skipFilter - - boolean indicating whether to skip any filtering of items before performing registration
        Returns:
        identifier
        Throws:
        IdentifierException
      • register

        public abstract void register​(Context context,
                                      DSpaceObject dso,
                                      String identifier,
                                      boolean skipFilter)
                               throws IdentifierException
        Register a specified identifier for a given DSpaceObject
        Parameters:
        context - - DSpace context
        dso - - DSpaceObject identified by the new identifier
        identifier - - String containing the identifier to register
        skipFilter - - boolean indicating whether to skip any filtering of items before performing registration
        Throws:
        IdentifierException
      • mint

        public abstract String mint​(Context context,
                                    DSpaceObject dso,
                                    boolean skipFilter)
                             throws IdentifierException
        Mint a new identifier in DSpace - this is usually the first step of registration
        Parameters:
        context - - DSpace context
        dso - - DSpaceObject identified by the new identifier
        skipFilter - - boolean indicating whether to skip any filtering of items before minting.
        Returns:
        a String containing the new identifier
        Throws:
        IdentifierException
      • checkMintable

        public abstract void checkMintable​(Context context,
                                           DSpaceObject dso)
                                    throws IdentifierException
        Check configured item filters to see if this identifier is allowed to be minted
        Parameters:
        context - - DSpace context
        dso - - DSpaceObject to be inspected
        Throws:
        IdentifierException