All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dspace.autoversioning.AutoVersionHistory Maven / Gradle / Ivy

There is a newer version: 5.4.2
Show newest version
/**
 * 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 java.util.List;

/**
 *
 *
 * @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 AutoVersionHistory {

    public AutoVersion getLatestVersion();
    public AutoVersion getFirstVersion();
    public List getVersions();
    public int getVersionHistoryId();
    public AutoVersion getPrevious(AutoVersion version);
    public AutoVersion getNext(AutoVersion version);
    public boolean hasNext(AutoVersion version);
    public void add(AutoVersion version);
    public AutoVersion getVersion(Item item);
    public boolean hasNext(Item item);
    public boolean isFirstVersion(AutoVersion version);
    public boolean isLastVersion(AutoVersion version);
    public void remove(AutoVersion version);
    public boolean isEmpty();
    public int size();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy