public class HandleUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DSPACE_OBJECT |
protected static java.lang.String |
HANDLE_PREFIX
The URL prefix of all handles
|
| Constructor and Description |
|---|
HandleUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
buildHandleTrail(DSpaceObject dso,
PageMeta pageMeta,
java.lang.String contextPath)
Build a list of trail metadata starting with the owning collection and
ending with the root level parent.
|
static void |
buildHandleTrail(DSpaceObject dso,
PageMeta pageMeta,
java.lang.String contextPath,
boolean linkOriginalObject)
Build a list of trail metadata starting with the owning collection and
ending with the root level parent.
|
static boolean |
inheritsFrom(DSpaceObject dso,
java.lang.String parent)
Determine if the given DSO is an ancestor of the the parent handle.
|
static DSpaceObject |
obtainHandle(java.util.Map objectModel)
Obtain the current DSpace handle for the specified request.
|
protected static final java.lang.String HANDLE_PREFIX
protected static final java.lang.String DSPACE_OBJECT
public static DSpaceObject obtainHandle(java.util.Map objectModel) throws java.sql.SQLException
objectModel - The cocoon model.java.sql.SQLExceptionpublic static boolean inheritsFrom(DSpaceObject dso, java.lang.String parent) throws java.sql.SQLException
dso - The child DSO object.parent - The Handle to test against.java.sql.SQLExceptionpublic static void buildHandleTrail(DSpaceObject dso, PageMeta pageMeta, java.lang.String contextPath) throws java.sql.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 - the DSpace who's parents we wil add to the pageMetapageMeta - the object to which we link our trialcontextPath - The context pathjava.sql.SQLExceptionWingExceptionpublic static void buildHandleTrail(DSpaceObject dso, PageMeta pageMeta, java.lang.String contextPath, boolean linkOriginalObject) throws java.sql.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 - the DSpace who's parents we wil add to the pageMetapageMeta - the object to which we link our trialcontextPath - The context pathlinkOriginalObject - whether or not to make a link of the original objectjava.sql.SQLExceptionWingExceptionCopyright © 2018 DuraSpace. All Rights Reserved.