|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.identifier.IdentifierProvider
org.dspace.identifier.HandleIdentifierProvider
@Component public class HandleIdentifierProvider
The old DSpace handle identifier service, used to create handles or retrieve objects based on their handle
| Field Summary | |
|---|---|
protected static String |
EXAMPLE_PREFIX
Prefix registered to no one |
protected String[] |
supportedPrefixes
|
| Fields inherited from class org.dspace.identifier.IdentifierProvider |
|---|
configurationService, parentService |
| Constructor Summary | |
|---|---|
HandleIdentifierProvider()
|
|
| Method Summary | |
|---|---|
protected static String |
createId(int id)
Create a new handle id. |
protected String |
createNewIdentifier(Context context,
DSpaceObject dso,
String handleId)
|
void |
delete(Context context,
DSpaceObject dso)
|
void |
delete(Context context,
DSpaceObject dso,
String identifier)
|
protected static TableRow |
findHandleInternal(Context context,
String handle)
Find the database row corresponding to handle. |
protected static String |
getCanonicalForm(String handle)
|
protected static TableRow |
getHandleInternal(Context context,
int type,
int id)
Return the handle for an Object, or null if the Object has no handle. |
static String |
getPrefix()
Get the configured Handle prefix string, or a default |
String |
lookup(Context context,
DSpaceObject dso)
|
String |
mint(Context context,
DSpaceObject dso)
Creates a new handle in the database. |
protected String |
modifyHandleRecord(Context context,
DSpaceObject dso,
TableRow handle,
String handleId)
|
protected void |
populateHandleMetadata(Item item,
String handle)
|
String |
register(Context context,
DSpaceObject dso)
|
void |
register(Context context,
DSpaceObject dso,
String identifier)
|
void |
reserve(Context context,
DSpaceObject dso,
String identifier)
|
DSpaceObject |
resolve(Context context,
String identifier,
String... attributes)
|
static String |
retrieveHandleOutOfUrl(String url)
|
boolean |
supports(Class<? extends Identifier> identifier)
|
boolean |
supports(String identifier)
|
| Methods inherited from class org.dspace.identifier.IdentifierProvider |
|---|
setConfigurationService, setParentService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String EXAMPLE_PREFIX
protected String[] supportedPrefixes
| Constructor Detail |
|---|
public HandleIdentifierProvider()
| Method Detail |
|---|
public boolean supports(Class<? extends Identifier> identifier)
supports in class IdentifierProviderpublic boolean supports(String identifier)
supports in class IdentifierProvider
public String register(Context context,
DSpaceObject dso)
register in class IdentifierProvider
public void register(Context context,
DSpaceObject dso,
String identifier)
register in class IdentifierProvider
public void reserve(Context context,
DSpaceObject dso,
String identifier)
reserve in class IdentifierProvider
public String mint(Context context,
DSpaceObject dso)
mint in class IdentifierProvidercontext - DSpace contextdso - The DSpaceObject to create a handle for
SQLException - If a database error occurs
public DSpaceObject resolve(Context context,
String identifier,
String... attributes)
resolve in class IdentifierProvider
public String lookup(Context context,
DSpaceObject dso)
throws IdentifierNotFoundException,
IdentifierNotResolvableException
lookup in class IdentifierProviderIdentifierNotFoundException
IdentifierNotResolvableException
public void delete(Context context,
DSpaceObject dso,
String identifier)
throws IdentifierException
delete in class IdentifierProviderIdentifierException
public void delete(Context context,
DSpaceObject dso)
throws IdentifierException
delete in class IdentifierProviderIdentifierException
public static String retrieveHandleOutOfUrl(String url)
throws SQLException
SQLExceptionpublic static String getPrefix()
protected static String getCanonicalForm(String handle)
protected String createNewIdentifier(Context context,
DSpaceObject dso,
String handleId)
throws SQLException
SQLException
protected String modifyHandleRecord(Context context,
DSpaceObject dso,
TableRow handle,
String handleId)
throws SQLException
SQLException
protected static TableRow getHandleInternal(Context context,
int type,
int id)
throws SQLException
context - DSpace contexttype - The type of objectid - The id of object
SQLException - If a database error occurs
protected static TableRow findHandleInternal(Context context,
String handle)
throws SQLException
context - DSpace contexthandle - The handle to resolve
SQLException - If a database error occurs
protected static String createId(int id)
throws SQLException
SQLException - If a database error occurs
protected void populateHandleMetadata(Item item,
String handle)
throws SQLException,
IOException,
AuthorizeException
SQLException
IOException
AuthorizeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||