public class SendItemRequestAction
extends org.apache.cocoon.acting.AbstractAction
| Constructor and Description |
|---|
SendItemRequestAction() |
| Modifier and Type | Method and Description |
|---|---|
Map |
act(org.apache.cocoon.environment.Redirector redirector,
org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String source,
org.apache.avalon.framework.parameters.Parameters parameters) |
protected String |
getLinkTokenEmail(Context context,
org.apache.cocoon.environment.Request request,
String bitstreamId,
int itemID,
String reqEmail,
String reqName,
boolean allfiles)
Get the link to the author in RequestLink email.
|
protected String |
getNewToken(Context context,
int bitstreamId,
int itemID,
String reqEmail,
String reqName,
boolean allfiles)
Generate a unique id of the request and put it into the ddbb
|
public Map act(org.apache.cocoon.environment.Redirector redirector, org.apache.cocoon.environment.SourceResolver resolver, Map objectModel, String source, org.apache.avalon.framework.parameters.Parameters parameters) throws Exception
Exceptionprotected String getLinkTokenEmail(Context context, org.apache.cocoon.environment.Request request, String bitstreamId, int itemID, String reqEmail, String reqName, boolean allfiles) throws SQLException
email - The email address to mail toSQLExeptionSQLExceptionprotected String getNewToken(Context context, int bitstreamId, int itemID, String reqEmail, String reqName, boolean allfiles) throws SQLException
context - bitstreamId - itemID - reqEmail - reqName - allfiles - SQLExceptionCopyright © 2014 DuraSpace. All Rights Reserved.