|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.handle.HandleManager
public class HandleManager
Interface to the CNRI Handle System .
Currently, this class simply maps handles to local facilities; handles which are owned by other sites (including other DSpaces) are treated as non-existent.
| Method Summary | |
|---|---|
static String |
createHandle(Context context,
DSpaceObject dso)
Creates a new handle in the database. |
static String |
createHandle(Context context,
DSpaceObject dso,
String suppliedHandle)
Creates a handle entry, but with a handle supplied by the caller (new Handle not generated) |
static String |
findHandle(Context context,
DSpaceObject dso)
Return the handle for an Object, or null if the Object has no handle. |
static String |
getCanonicalForm(String handle)
Transforms handle into the canonical form hdl:handle. |
static DSpaceObject |
resolveToObject(Context context,
String handle)
Return the object which handle maps to, or null. |
static String |
resolveToURL(Context context,
String handle)
Return the local URL for handle, or null if handle cannot be found. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String resolveToURL(Context context,
String handle)
throws SQLException
context - DSpace contexthandle - The handle
SQLException - If a database error occurspublic static String getCanonicalForm(String handle)
handle - The handle
public static String createHandle(Context context,
DSpaceObject dso)
throws SQLException
context - DSpace contextdso - The DSpaceObject to create a handle for
SQLException - If a database error occurs
public static String createHandle(Context context,
DSpaceObject dso,
String suppliedHandle)
throws SQLException
context - DSpace contextdso - DSpaceObjectsuppliedHandle - existing handle value
SQLException
public static DSpaceObject resolveToObject(Context context,
String handle)
throws SQLException
context - DSpace contexthandle - The handle to resolve
SQLException - If a database error occurs
public static String findHandle(Context context,
DSpaceObject dso)
throws SQLException
context - DSpace contextdso - The object to obtain a handle for
SQLException - If a database error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||