public interface IdentifierService
| 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.
|
List<String> |
lookup(Context context,
DSpaceObject dso)
Gets the identifiers all registered IdentifierProvider returns if asked
to lookup the provided DSpaceObject.
|
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 dso,
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 any identifiers necessary based on the capabilities of all providers in the service.
|
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.
|
String lookup(Context context, DSpaceObject dso, Class<? extends Identifier> identifier)
context - dso - the object to be identified.identifier - instance of an Identifier of the required type.List<String> lookup(Context context, DSpaceObject dso)
context - dso - the object to be identified.DSpaceObject resolve(Context context, String identifier) throws IdentifierNotFoundException, IdentifierNotResolvableException
context - identifier - IdentifierNotFoundException - if identifier not foundIdentifierNotResolvableException - if identifier not resolvablevoid reserve(Context context, DSpaceObject dso) throws AuthorizeException, SQLException, IdentifierException
context - dso - AuthorizeException - if authorization errorSQLException - if database errorIdentifierException - if identifier errorvoid reserve(Context context, DSpaceObject dso, String identifier) throws AuthorizeException, SQLException, IdentifierException
context - dso - identifier - AuthorizeException - if authorization errorSQLException - if database errorIdentifierException - if identifier errorvoid register(Context context, DSpaceObject dso) throws AuthorizeException, SQLException, IdentifierException
context - dso - AuthorizeException - if authorization errorSQLException - if database errorIdentifierException - if identifier errorvoid register(Context context, DSpaceObject dso, String identifier) throws AuthorizeException, SQLException, IdentifierException
context - dso - identifier - AuthorizeException - if authorization errorSQLException - if database errorIdentifierException - if identifier errorvoid delete(Context context, DSpaceObject dso) throws AuthorizeException, SQLException, IdentifierException
context - dso - AuthorizeException - if authorization errorSQLException - if database errorIdentifierException - if identifier errorvoid delete(Context context, DSpaceObject dso, String identifier) throws AuthorizeException, SQLException, IdentifierException
context - dso - identifier - AuthorizeException - if authorization errorSQLException - if database errorIdentifierException - if identifier errorCopyright © 2022 LYRASIS. All rights reserved.