org.dspace.autoversioning.ItemAutoVersionProvider Maven / Gradle / Ivy
/**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.autoversioning;
import org.dspace.content.Item;
import org.dspace.core.Context;
/**
*
*
* @author Fabio Bolognesi (fabio at atmire dot com)
* @author Mark Diggory (markd at atmire dot com)
* @author Ben Bosman (ben at atmire dot com)
*/
public interface ItemAutoVersionProvider {
public Item createNewItemAndAddItInWorkspace(Context c, Item item);
public void deleteVersionedItem(Context c, AutoVersion versionToDelete, AutoVersionHistory history);
public Item updateItemState(Context c, Item itemNew, Item previousItem);
}