Package org.dspace.app.itemupdate
Class UpdateMetadataAction
java.lang.Object
org.dspace.app.itemupdate.UpdateMetadataAction
- All Implemented Interfaces:
UpdateAction
- Direct Known Subclasses:
AddMetadataAction,DeleteMetadataAction
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
FieldsFields inherited from interface org.dspace.app.itemupdate.UpdateAction
itemService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTargetField(String targetField) Add single field to updatevoidaddTargetFields(String[] targetFields) Add array of target fields to updatevoidaddTargetFields(Set<String> targetFields) Set target fieldsGet target fieldsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dspace.app.itemupdate.UpdateAction
execute
-
Field Details
-
targetFields
-
-
Constructor Details
-
UpdateMetadataAction
public UpdateMetadataAction()
-
-
Method Details
-
getTargetFields
Get target fields- Returns:
- set of fields to update
-
addTargetFields
Set target fields- Parameters:
targetFields- Set of target fields to update
-
addTargetFields
Add array of target fields to update- Parameters:
targetFields- array of target fields to update
-
addTargetField
Add single field to update- Parameters:
targetField- target field to update
-