Package org.dspace.app.requestitem
Class RequestItemHelpdeskStrategy
- java.lang.Object
-
- org.dspace.app.requestitem.RequestItemSubmitterStrategy
-
- org.dspace.app.requestitem.RequestItemHelpdeskStrategy
-
- All Implemented Interfaces:
RequestItemAuthorExtractor
- Direct Known Subclasses:
CollectionAdministratorsRequestItemStrategy
public class RequestItemHelpdeskStrategy extends RequestItemSubmitterStrategy
RequestItem strategy to allow DSpace support team's help desk to receive requestItem requests. With this enabled, the Item author/submitter doesn't receive the request, but the help desk instead does.Fails over to the
RequestItemSubmitterStrategy, which means the submitter would get the request if there is no specified help desk email.- Author:
- Sam Ottenhoff, Peter Dietz
-
-
Field Summary
Fields Modifier and Type Field Description protected ConfigurationServiceconfigurationServiceprotected 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 help desk email address.List<RequestItemAuthor>getRequestItemAuthor(Context context, Item item)Returns the submitter of an Item as RequestItemAuthor or an empty List if the Submitter is deleted.
-
-
-
Field Detail
-
ePersonService
@Autowired(required=true) protected EPersonService ePersonService
-
configurationService
@Autowired(required=true) protected ConfigurationService configurationService
-
-
Method Detail
-
getRequestItemAuthor
@NonNull public List<RequestItemAuthor> getRequestItemAuthor(Context context, Item item) throws SQLException
Description copied from class:RequestItemSubmitterStrategyReturns the submitter of an Item as RequestItemAuthor or an empty List 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 empty List 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 help desk email address. It makes an attempt to find if there is a matchingEPersonfor the help desk address, to use its name. Otherwise it falls back to thehelpdesknamekey inMessages.properties.- Parameters:
context- contexthelpDeskEmail- email- Returns:
- RequestItemAuthor
- Throws:
SQLException- if database error
-
-