|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.xmlui.utils.HandleUtil
public class HandleUtil
Simple utility class for extracting handles.
| Field Summary | |
|---|---|
protected static String |
DSPACE_OBJECT
|
protected static String |
HANDLE_PREFIX
The URL prefix of all handles |
| Constructor Summary | |
|---|---|
HandleUtil()
|
|
| Method Summary | |
|---|---|
static void |
buildHandleTrail(DSpaceObject dso,
PageMeta pageMeta,
String contextPath)
Build a list of trail metadata starting with the owning collection and ending with the root level parent. |
static boolean |
inheritsFrom(DSpaceObject dso,
String parent)
Determine if the given DSO is an ancestor of the the parent handle. |
static DSpaceObject |
obtainHandle(Map objectModel)
Obtain the current DSpace handle for the specified request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String HANDLE_PREFIX
protected static final String DSPACE_OBJECT
| Constructor Detail |
|---|
public HandleUtil()
| Method Detail |
|---|
public static DSpaceObject obtainHandle(Map objectModel)
throws SQLException
objectModel - The cocoon model.
SQLException
public static boolean inheritsFrom(DSpaceObject dso,
String parent)
throws SQLException
dso - The child DSO object.parent - The Handle to test against.
SQLException
public static void buildHandleTrail(DSpaceObject dso,
PageMeta pageMeta,
String contextPath)
throws SQLException,
WingException
If the terminal object in the trail is the passed object, do not link to it, because that is (presumably) the page at which the user has arrived.
dso - pageMeta -
SQLException
WingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||