public class IdentifierServiceImpl extends Object implements IdentifierService
| Constructor and Description |
|---|
IdentifierServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Context context,
DSpaceObject dso)
Delete (Unbind) all identifiers registered for a specific DSpace item.
|
void |
delete(Context context,
DSpaceObject dso,
String identifier)
Used to Delete a Specific Identifier (for example a Handle, hdl:1234.5/6) The provider is responsible for
Detecting and Processing the appropriate identifier, all Providers are interrogated, multiple providers
can process the same identifier.
|
String |
lookup(Context context,
DSpaceObject dso,
Class<? extends Identifier> identifier)
Get an identifier for a given object which is assignment-compatible
with a given Identifier type.
|
void |
register(Context context,
DSpaceObject dso) |
void |
register(Context context,
DSpaceObject object,
String identifier)
Used to Register a specific Identifier (for example a Handle, hdl:1234.5/6)
The provider is responsible for detecting and processing the appropriate
identifier.
|
void |
reserve(Context context,
DSpaceObject dso)
Reserves identifiers for the item
|
void |
reserve(Context context,
DSpaceObject dso,
String identifier)
Used to Reserve a Specific Identifier (for example a Handle, hdl:1234.5/6) The provider is responsible for
Detecting and Processing the appropriate identifier, all Providers are interrogated, multiple providers
can process the same identifier.
|
DSpaceObject |
resolve(Context context,
String identifier)
This will resolve a DSpaceObject based on a provided Identifier.
|
void |
setProviders(List<IdentifierProvider> providers) |
@Autowired public void setProviders(List<IdentifierProvider> providers)
public void reserve(Context context, DSpaceObject dso) throws AuthorizeException, SQLException, IdentifierException
reserve in interface IdentifierServicecontext - dspace contextdso - dspace objectAuthorizeExceptionSQLExceptionIdentifierExceptionpublic void reserve(Context context, DSpaceObject dso, String identifier) throws AuthorizeException, SQLException, IdentifierException
IdentifierServicereserve in interface IdentifierServiceAuthorizeExceptionSQLExceptionIdentifierExceptionpublic void register(Context context, DSpaceObject dso) throws AuthorizeException, SQLException, IdentifierException
register in interface IdentifierServiceAuthorizeExceptionSQLExceptionIdentifierExceptionpublic void register(Context context, DSpaceObject object, String identifier) throws AuthorizeException, SQLException, IdentifierException
IdentifierServiceregister in interface IdentifierServiceAuthorizeExceptionSQLExceptionIdentifierExceptionpublic String lookup(Context context, DSpaceObject dso, Class<? extends Identifier> identifier)
IdentifierServicelookup in interface IdentifierServicedso - the object to be identified.identifier - instance of an Identifier of the required type.public DSpaceObject resolve(Context context, String identifier) throws IdentifierNotFoundException, IdentifierNotResolvableException
IdentifierServiceresolve in interface IdentifierServiceIdentifierNotFoundExceptionIdentifierNotResolvableExceptionpublic void delete(Context context, DSpaceObject dso) throws AuthorizeException, SQLException, IdentifierException
IdentifierServicedelete in interface IdentifierServiceAuthorizeExceptionSQLExceptionIdentifierExceptionpublic void delete(Context context, DSpaceObject dso, String identifier) throws AuthorizeException, SQLException, IdentifierException
IdentifierServicedelete in interface IdentifierServiceAuthorizeExceptionSQLExceptionIdentifierExceptionCopyright © 2013 DuraSpace. All Rights Reserved.