Package org.dspace.app.requestitem
Class RequestItemHelpdeskStrategy
- java.lang.Object
-
- org.dspace.app.requestitem.RequestItemSubmitterStrategy
-
- org.dspace.app.requestitem.RequestItemHelpdeskStrategy
-
- All Implemented Interfaces:
RequestItemAuthorExtractor
public class RequestItemHelpdeskStrategy extends RequestItemSubmitterStrategy
RequestItem strategy to allow DSpace support team's helpdesk to receive requestItem request With this enabled, then the Item author/submitter doesn't receive the request, but the helpdesk instead does. Failover to the RequestItemSubmitterStrategy, which means the submitter would get the request if there is no specified helpdesk email.- Author:
- Sam Ottenhoff, Peter Dietz
-
-
Field Summary
Fields Modifier and Type Field Description protected EPersonServiceePersonService
-
Constructor Summary
Constructors Constructor Description RequestItemHelpdeskStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestItemAuthorgetHelpDeskPerson(Context context, String helpDeskEmail)Return a RequestItemAuthor object for the specified helpdesk email address.RequestItemAuthorgetRequestItemAuthor(Context context, Item item)Returns the submitter of an Item as RequestItemAuthor or null if the Submitter is deleted.
-
-
-
Field Detail
-
ePersonService
@Autowired(required=true) protected EPersonService ePersonService
-
-
Method Detail
-
getRequestItemAuthor
public RequestItemAuthor getRequestItemAuthor(Context context, Item item) throws SQLException
Description copied from class:RequestItemSubmitterStrategyReturns the submitter of an Item as RequestItemAuthor or null if the Submitter is deleted.- Specified by:
getRequestItemAuthorin interfaceRequestItemAuthorExtractor- Overrides:
getRequestItemAuthorin classRequestItemSubmitterStrategy- Parameters:
context- DSpace context objectitem- item to request- Returns:
- The submitter of the item or null if the submitter is deleted
- Throws:
SQLException- if database error
-
getHelpDeskPerson
public RequestItemAuthor getHelpDeskPerson(Context context, String helpDeskEmail) throws SQLException
Return a RequestItemAuthor object for the specified helpdesk email address. It makes an attempt to find if there is a matching eperson for the helpdesk address, to use the name, Otherwise it falls back to a helpdeskname key in the Messages.props.- Parameters:
context- contexthelpDeskEmail- email- Returns:
- RequestItemAuthor
- Throws:
SQLException- if database error
-
-