Package org.dspace.versioning
Interface ItemVersionProvider
- All Known Implementing Classes:
DefaultItemVersionProvider
public interface ItemVersionProvider
- Author:
- Fabio Bolognesi (fabio at atmire dot com), Mark Diggory (markd at atmire dot com), Ben Bosman (ben at atmire dot com)
-
Method Summary
Modifier and TypeMethodDescriptioncreateNewItemAndAddItInWorkspace(Context c, Item item) voiddeleteVersionedItem(Context c, Version versionToDelete, VersionHistory history) updateItemState(Context c, Item itemNew, Item previousItem) Copy all data (minus a few exceptions) from the old item to the new item.
-
Method Details
-
createNewItemAndAddItInWorkspace
-
deleteVersionedItem
void deleteVersionedItem(Context c, Version versionToDelete, VersionHistory history) throws SQLException - Throws:
SQLException
-
updateItemState
Copy all data (minus a few exceptions) from the old item to the new item.- Parameters:
c- the DSpace context.itemNew- the new version of the item.previousItem- the old version of the item.- Returns:
- the new version of the item, with data from the old item.
-