Package org.dspace.app.itemmarking
Class ItemMarkingMetadataStrategy
- java.lang.Object
-
- org.dspace.app.itemmarking.ItemMarkingMetadataStrategy
-
- All Implemented Interfaces:
ItemMarkingExtractor
public class ItemMarkingMetadataStrategy extends Object implements ItemMarkingExtractor
This is an item marking Strategy class that tries to mark an item based on the existence of a specific value within the values of a specific metadata field- Author:
- Kostas Stamatis
-
-
Field Summary
Fields Modifier and Type Field Description protected ItemServiceitemService
-
Constructor Summary
Constructors Constructor Description ItemMarkingMetadataStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemMarkingInfogetItemMarkingInfo(Context context, Item item)voidsetMapping(Map<String,ItemMarkingInfo> mapping)voidsetMetadataField(String metadataField)
-
-
-
Field Detail
-
itemService
@Autowired(required=true) protected ItemService itemService
-
-
Method Detail
-
getItemMarkingInfo
public ItemMarkingInfo getItemMarkingInfo(Context context, Item item) throws SQLException
- Specified by:
getItemMarkingInfoin interfaceItemMarkingExtractor- Throws:
SQLException
-
setMetadataField
public void setMetadataField(String metadataField)
-
setMapping
public void setMapping(Map<String,ItemMarkingInfo> mapping)
-
-