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
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHelpDeskPerson(Context context, String helpDeskEmail) Return a RequestItemAuthor object for the specified help desk email address.getRequestItemAuthor(Context context, Item item) Returns the submitter of an Item as RequestItemAuthor or an empty List if the Submitter is deleted.
-
Field Details
-
ePersonService
-
configurationService
-
-
Constructor Details
-
RequestItemHelpdeskStrategy
public RequestItemHelpdeskStrategy()
-
-
Method Details
-
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
-