|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.util.Util
org.dspace.xmlworkflow.WorkflowUtils
public class WorkflowUtils
Utilty methods for the xml workflow
| Field Summary | |
|---|---|
static org.apache.log4j.Logger |
log
log4j category |
| Constructor Summary | |
|---|---|
WorkflowUtils()
|
|
| Method Summary | |
|---|---|
static void |
createCollectionWorkflowRole(Context context,
int collectionId,
String roleId,
Group group)
WORKFLOW ROLE MANAGEMENT |
static void |
deleteRoleGroup(Context context,
int collectionID,
String roleID)
|
static HashMap<String,Role> |
getCollectionRoles(Collection thisCollection)
|
static String |
getOriginalURL(javax.servlet.http.HttpServletRequest request)
Get the original request URL. |
static String |
getRequestLogInfo(javax.servlet.http.HttpServletRequest request)
Return a string for logging, containing useful information about the current request - the URL, the method and parameters. |
static Group |
getRoleGroup(Context context,
int collectionId,
Role role)
|
static void |
sendAlert(javax.servlet.http.HttpServletRequest request,
Exception exception)
Send an alert to the designated "alert recipient" - that is, when a database error or internal error occurs, this person is sent an e-mail with details. |
static void |
storeOriginalURL(javax.servlet.http.HttpServletRequest request)
Put the original request URL into the request object as an attribute for later use. |
| Methods inherited from class org.dspace.app.util.Util |
|---|
encodeBitstreamName, encodeBitstreamName, formatFileSize, getBoolParameter, getIntParameter, getIntParameters, getSourceVersion, getSubmitButton, nonBreakSpace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static org.apache.log4j.Logger log
| Constructor Detail |
|---|
public WorkflowUtils()
| Method Detail |
|---|
public static String getRequestLogInfo(javax.servlet.http.HttpServletRequest request)
request - the request object.
public static String getOriginalURL(javax.servlet.http.HttpServletRequest request)
request - the HTTP request
public static void storeOriginalURL(javax.servlet.http.HttpServletRequest request)
request - the HTTP request
public static void sendAlert(javax.servlet.http.HttpServletRequest request,
Exception exception)
The recipient is configured via the "alert.recipient" property in
dspace.cfg. If this property is omitted, no alerts are
sent.
This method "swallows" any exception that might occur - it will just be logged. This is because this method will usually be invoked as part of an error handling routine anyway.
request - the HTTP request leading to the errorexception - the exception causing the error, or null
public static void createCollectionWorkflowRole(Context context,
int collectionId,
String roleId,
Group group)
throws AuthorizeException,
SQLException
AuthorizeException
SQLException
public static void deleteRoleGroup(Context context,
int collectionID,
String roleID)
throws SQLException
SQLException
public static HashMap<String,Role> getCollectionRoles(Collection thisCollection)
throws IOException,
WorkflowConfigurationException
IOException
WorkflowConfigurationException
public static Group getRoleGroup(Context context,
int collectionId,
Role role)
throws SQLException
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||