public class ContextUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static AuthenticationService |
authenticationService |
static String |
DSPACE_CONTEXT
Where the context is stored on an HTTP Request object
|
| Constructor and Description |
|---|
ContextUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
abortContext(javax.servlet.http.HttpServletRequest request) |
static void |
completeContext(javax.servlet.http.HttpServletRequest request)
Check if a context exists for this request, if so complete the context.
|
static boolean |
isContextAvailable(Map objectModel)
Inspection method to check if a DSpace context has been created for this request.
|
static Context |
obtainContext(javax.servlet.http.HttpServletRequest request)
Obtain a new context object.
|
static Context |
obtainContext(Map objectModel)
Obtain a new context object.
|
public static final String DSPACE_CONTEXT
protected static final AuthenticationService authenticationService
public static Context obtainContext(Map objectModel) throws SQLException
objectModel - the cocoon ObjectmodelSQLExceptionpublic static boolean isContextAvailable(Map objectModel)
objectModel - The cocoon ObjectModelpublic static Context obtainContext(javax.servlet.http.HttpServletRequest request) throws SQLException
request - the cocoon or servlet request objectSQLExceptionpublic static void completeContext(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
request - The request objectjavax.servlet.ServletExceptionpublic static void abortContext(javax.servlet.http.HttpServletRequest request)
Copyright © 2016 DuraSpace. All Rights Reserved.