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)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
- Specified by:
getRequestItemAuthorin interfaceRequestItemAuthorExtractor- Overrides:
getRequestItemAuthorin classRequestItemSubmitterStrategy- Throws:
SQLException
-
setEmailMetadata
public void setEmailMetadata(String emailMetadata)
-
setFullNameMetadata
public void setFullNameMetadata(String fullNameMetadata)
-
-