Package org.dspace.app.itemupdate
Class AddMetadataAction
- java.lang.Object
-
- org.dspace.app.itemupdate.UpdateMetadataAction
-
- org.dspace.app.itemupdate.AddMetadataAction
-
- All Implemented Interfaces:
UpdateAction
public class AddMetadataAction extends UpdateMetadataAction
Action to add metadata to item
-
-
Field Summary
Fields Modifier and Type Field Description protected MetadataFieldServicemetadataFieldServiceprotected MetadataSchemaServicemetadataSchemaService-
Fields inherited from class org.dspace.app.itemupdate.UpdateMetadataAction
targetFields
-
Fields inherited from interface org.dspace.app.itemupdate.UpdateAction
itemService
-
-
Constructor Summary
Constructors Constructor Description AddMetadataAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Context context, ItemArchive itarch, boolean isTest, boolean suppressUndo)Adds metadata specified in the source archive-
Methods inherited from class org.dspace.app.itemupdate.UpdateMetadataAction
addTargetField, addTargetFields, addTargetFields, getTargetFields
-
-
-
-
Field Detail
-
metadataSchemaService
protected MetadataSchemaService metadataSchemaService
-
metadataFieldService
protected MetadataFieldService metadataFieldService
-
-
Method Detail
-
execute
public void execute(Context context, ItemArchive itarch, boolean isTest, boolean suppressUndo) throws AuthorizeException, SQLException
Adds metadata specified in the source archive- Parameters:
context- DSpace Contextitarch- item archiveisTest- test flagsuppressUndo- undo flag- Throws:
AuthorizeException- if authorization errorSQLException- if database error
-
-