public class IdentifierServiceImpl extends java.lang.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,
java.lang.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.
|
java.lang.String |
lookup(Context context,
DSpaceObject dso,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.String identifier)
This will resolve a DSpaceObject based on a provided Identifier.
|
void |
setProviders(java.util.List<IdentifierProvider> providers) |
@Autowired public void setProviders(java.util.List<IdentifierProvider> providers)
public void reserve(Context context, DSpaceObject dso) throws AuthorizeException, java.sql.SQLException, IdentifierException
reserve in interface IdentifierServicecontext - dspace contextdso - dspace objectAuthorizeExceptionjava.sql.SQLExceptionIdentifierExceptionpublic void reserve(Context context, DSpaceObject dso, java.lang.String identifier) throws AuthorizeException, java.sql.SQLException, IdentifierException
IdentifierServicereserve in interface IdentifierServiceAuthorizeExceptionjava.sql.SQLExceptionIdentifierExceptionpublic void register(Context context, DSpaceObject dso) throws AuthorizeException, java.sql.SQLException, IdentifierException
register in interface IdentifierServiceAuthorizeExceptionjava.sql.SQLExceptionIdentifierExceptionpublic void register(Context context, DSpaceObject object, java.lang.String identifier) throws AuthorizeException, java.sql.SQLException, IdentifierException
IdentifierServiceregister in interface IdentifierServiceAuthorizeExceptionjava.sql.SQLExceptionIdentifierExceptionpublic java.lang.String lookup(Context context, DSpaceObject dso, java.lang.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, java.lang.String identifier) throws IdentifierNotFoundException, IdentifierNotResolvableException
IdentifierServiceresolve in interface IdentifierServiceIdentifierNotFoundExceptionIdentifierNotResolvableExceptionpublic void delete(Context context, DSpaceObject dso) throws AuthorizeException, java.sql.SQLException, IdentifierException
IdentifierServicedelete in interface IdentifierServiceAuthorizeExceptionjava.sql.SQLExceptionIdentifierExceptionpublic void delete(Context context, DSpaceObject dso, java.lang.String identifier) throws AuthorizeException, java.sql.SQLException, IdentifierException
IdentifierServicedelete in interface IdentifierServiceAuthorizeExceptionjava.sql.SQLExceptionIdentifierExceptionCopyright © 2018 DuraSpace. All Rights Reserved.