Package org.dspace.app.itemupdate
Class UpdateMetadataAction
- java.lang.Object
-
- org.dspace.app.itemupdate.UpdateMetadataAction
-
- All Implemented Interfaces:
UpdateAction
- Direct Known Subclasses:
AddMetadataAction,DeleteMetadataAction
public abstract class UpdateMetadataAction extends Object implements UpdateAction
This abstract subclass for metadata actions maintains a collection for the target metadata fields expressed as a string in the compound notation (<schema>.<element>.<qualifier>) on which to apply the action when the method execute is called. Implemented as a Set to avoid problems with duplicates
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>targetFields-
Fields inherited from interface org.dspace.app.itemupdate.UpdateAction
itemService
-
-
Constructor Summary
Constructors Constructor Description UpdateMetadataAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTargetField(String targetField)Add single field to updatevoidaddTargetFields(String[] targetFields)Add array of target fields to updatevoidaddTargetFields(Set<String> targetFields)Set target fieldsSet<String>getTargetFields()Get target fields-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.itemupdate.UpdateAction
execute
-
-
-
-
Method Detail
-
getTargetFields
public Set<String> getTargetFields()
Get target fields- Returns:
- set of fields to update
-
addTargetFields
public void addTargetFields(Set<String> targetFields)
Set target fields- Parameters:
targetFields- Set of target fields to update
-
addTargetFields
public void addTargetFields(String[] targetFields)
Add array of target fields to update- Parameters:
targetFields- array of target fields to update
-
addTargetField
public void addTargetField(String targetField)
Add single field to update- Parameters:
targetField- target field to update
-
-