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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ItemcreateNewItemAndAddItInWorkspace(Context c, Item item)voiddeleteVersionedItem(Context c, Version versionToDelete, VersionHistory history)ItemupdateItemState(Context c, Item itemNew, Item previousItem)Copy all data (minus a few exceptions) from the old item to the new item.
-
-
-
Method Detail
-
deleteVersionedItem
void deleteVersionedItem(Context c, Version versionToDelete, VersionHistory history) throws SQLException
- Throws:
SQLException
-
updateItemState
Item updateItemState(Context c, Item itemNew, Item previousItem)
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.
-
-