public class EZIDIdentifierProvider extends IdentifierProvider
Configuration of this class is is in two parts.
Installation-specific configuration (credentials and the "shoulder" value which forms a prefix of the site's DOIs) is supplied from property files in [DSpace]/config**.
Then there are properties injected using Spring:
| Modifier and Type | Field and Description |
|---|---|
static String |
DOI_ELEMENT |
static String |
DOI_QUALIFIER |
static String |
MD_SCHEMA |
configurationService, parentService| Constructor and Description |
|---|
EZIDIdentifierProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Context context,
DSpaceObject dso)
Unbind this type of identifier(s) from an object.
|
void |
delete(Context context,
DSpaceObject dso,
String identifier)
Unbind the given identifier from an object.
|
String |
lookup(Context context,
DSpaceObject object)
Return the identifier for a DSpaceObject.
|
String |
mint(Context context,
DSpaceObject dso)
Create an identifier for a DSpaceObject.
|
String |
register(Context context,
DSpaceObject dso)
Create and apply an identifier to a DSpaceObject.
|
void |
register(Context context,
DSpaceObject object,
String identifier)
Create a specific identifier and apply it to an object.
|
void |
reserve(Context context,
DSpaceObject dso,
String identifier)
Set an object's identifier.
|
DSpaceObject |
resolve(Context context,
String identifier,
String... attributes)
Find the object named by a given identifier.
|
void |
setCrosswalk(Map<String,String> aCrosswalk) |
void |
setCrosswalkTransform(Map<String,Transform> transformMap) |
static void |
setRequestFactory(EZIDRequestFactory aRequestFactory) |
boolean |
supports(Class<? extends Identifier> identifier)
Can this provider provide identifiers of a given type?
|
boolean |
supports(String identifier)
Can this provider provide identifiers of a given type?
|
setConfigurationService, setParentServicepublic static final String MD_SCHEMA
public static final String DOI_ELEMENT
public static final String DOI_QUALIFIER
public boolean supports(Class<? extends Identifier> identifier)
IdentifierProvidersupports in class IdentifierProvideridentifier - requested type.public boolean supports(String identifier)
IdentifierProvidersupports in class IdentifierProvideridentifier - requested type.public String register(Context context, DSpaceObject dso) throws IdentifierException
IdentifierProviderregister in class IdentifierProviderdso - object to be named.item if it has one, else a new identifier.IdentifierExceptionpublic void register(Context context, DSpaceObject object, String identifier)
IdentifierProviderregister in class IdentifierProviderobject - to be identified.identifier - to be created.public void reserve(Context context, DSpaceObject dso, String identifier) throws IdentifierException
IdentifierProviderreserve in class IdentifierProviderdso - object to be identified.identifier - to be set on the object.IdentifierExceptionpublic String mint(Context context, DSpaceObject dso) throws IdentifierException
IdentifierProvidermint in class IdentifierProviderdso - object to be named.dso if it has one, else a new identifier.IdentifierExceptionpublic DSpaceObject resolve(Context context, String identifier, String... attributes) throws IdentifierNotFoundException, IdentifierNotResolvableException
IdentifierProviderresolve in class IdentifierProvideridentifier - to be resolved.attributes - additional information for resolving identifier.IdentifierNotFoundExceptionIdentifierNotResolvableExceptionpublic String lookup(Context context, DSpaceObject object) throws IdentifierNotFoundException, IdentifierNotResolvableException
IdentifierProviderlookup in class IdentifierProviderobject - The object to be looked up.object.IdentifierNotFoundExceptionIdentifierNotResolvableExceptionpublic void delete(Context context, DSpaceObject dso) throws IdentifierException
IdentifierProviderdelete in class IdentifierProviderdso - object to lose its identity.IdentifierExceptionpublic void delete(Context context, DSpaceObject dso, String identifier) throws IdentifierException
IdentifierProviderdelete in class IdentifierProviderdso - object to be de-identified.identifier - to be removed.IdentifierExceptionpublic static void setRequestFactory(EZIDRequestFactory aRequestFactory)
Copyright © 2013 DuraSpace. All Rights Reserved.