Package org.dspace.app.requestitem
Class RequestItemMetadataStrategy
- java.lang.Object
-
- org.dspace.app.requestitem.RequestItemSubmitterStrategy
-
- org.dspace.app.requestitem.RequestItemMetadataStrategy
-
- All Implemented Interfaces:
RequestItemAuthorExtractor
public class RequestItemMetadataStrategy extends RequestItemSubmitterStrategy
Try to look to an item metadata for the corresponding author name and email. Failover to the RequestItemSubmitterStrategy- Author:
- Andrea Bollini
-
-
Field Summary
Fields Modifier and Type Field Description protected StringemailMetadataprotected StringfullNameMetadataprotected ItemServiceitemService
-
Constructor Summary
Constructors Constructor Description RequestItemMetadataStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestItemAuthorgetRequestItemAuthor(Context context, Item item)Returns the submitter of an Item as RequestItemAuthor or null if the Submitter is deleted.voidsetEmailMetadata(String emailMetadata)voidsetFullNameMetadata(String fullNameMetadata)
-
-
-
Field Detail
-
emailMetadata
protected String emailMetadata
-
fullNameMetadata
protected String fullNameMetadata
-
itemService
@Autowired(required=true) protected ItemService itemService
-
-
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
-
setEmailMetadata
public void setEmailMetadata(String emailMetadata)
-
setFullNameMetadata
public void setFullNameMetadata(String fullNameMetadata)
-
-