Package org.dspace.identifier
Class FilteredIdentifierProvider
java.lang.Object
org.dspace.identifier.IdentifierProvider
org.dspace.identifier.FilteredIdentifierProvider
- Direct Known Subclasses:
DOIIdentifierProvider
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 Summary
FieldsFields inherited from class org.dspace.identifier.IdentifierProvider
configurationService, parentService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcheckMintable(Context context, DSpaceObject dso) Check configured item filters to see if this identifier is allowed to be mintedabstract voidcheckMintable(Context context, Filter filter, DSpaceObject dso) Check configured item filters to see if this identifier is allowed to be mintedabstract Stringmint(Context context, DSpaceObject dso, Filter filter) Mint a new identifier in DSpace - this is usually the first step of registrationabstract voidregister(Context context, DSpaceObject dso, String identifier, Filter filter) Register a specified identifier for a given DSpaceObjectabstract Stringregister(Context context, DSpaceObject dso, Filter filter) Register a new identifier for a given DSpaceObjectabstract voidreserve(Context context, DSpaceObject dso, String identifier, Filter filter) Reserve a specified identifier for a given DSpaceObject (eg. reserving a DOI online with a registration agency)voidSetter for spring to set the default filter from the property in configuration XMLMethods inherited from class org.dspace.identifier.IdentifierProvider
delete, delete, lookup, mint, register, register, reserve, resolve, setConfigurationService, setParentService, supports, supports
-
Field Details
-
filter
-
-
Constructor Details
-
FilteredIdentifierProvider
public FilteredIdentifierProvider()
-
-
Method Details
-
setFilter
Setter for spring to set the default filter from the property in configuration XML- Parameters:
filter- - an object implementing the org.dspace.content.logic.Filter interface
-
register
public abstract String register(Context context, DSpaceObject dso, Filter filter) throws IdentifierException Register a new identifier for a given DSpaceObject- Parameters:
context- - DSpace contextdso- - DSpaceObject to use for identifier registrationfilter- - Logical item filter to determine whether this identifier should be registered- Returns:
- identifier
- Throws:
IdentifierException
-
register
public abstract void register(Context context, DSpaceObject dso, String identifier, Filter filter) throws IdentifierException Register a specified identifier for a given DSpaceObject- Parameters:
context- - DSpace contextdso- - DSpaceObject identified by the new identifieridentifier- - String containing the identifier to registerfilter- - Logical item filter to determine whether this identifier should be registered- Throws:
IdentifierException
-
reserve
public abstract void reserve(Context context, DSpaceObject dso, String identifier, Filter filter) throws IdentifierException, IllegalArgumentException, SQLException Reserve a specified identifier for a given DSpaceObject (eg. reserving a DOI online with a registration agency)- Parameters:
context- - DSpace contextdso- - DSpaceObject identified by this identifieridentifier- - String containing the identifier to reservefilter- - Logical item filter to determine whether this identifier should be reserved- Throws:
IdentifierExceptionIllegalArgumentExceptionSQLException
-
mint
public abstract String mint(Context context, DSpaceObject dso, Filter filter) throws IdentifierException Mint a new identifier in DSpace - this is usually the first step of registration- Parameters:
context- - DSpace contextdso- - DSpaceObject identified by the new identifierfilter- - Logical item filter to determine whether this identifier should be registered- Returns:
- a String containing the new identifier
- Throws:
IdentifierException
-
checkMintable
Check configured item filters to see if this identifier is allowed to be minted- Parameters:
context- - DSpace contextdso- - DSpaceObject to be inspected- Throws:
IdentifierException
-
checkMintable
public abstract void checkMintable(Context context, Filter filter, DSpaceObject dso) throws IdentifierException Check configured item filters to see if this identifier is allowed to be minted- Parameters:
context- - DSpace contextfilter- - Logical item filterdso- - DSpaceObject to be inspected- Throws:
IdentifierException
-