org.dspace.versioning
Class VersionHistoryImpl
java.lang.Object
org.dspace.versioning.VersionHistoryImpl
- All Implemented Interfaces:
- VersionHistory
public class VersionHistoryImpl
- extends Object
- implements VersionHistory
- Author:
- Fabio Bolognesi (fabio at atmire dot com), Mark Diggory (markd at atmire dot com), Ben Bosman (ben at atmire dot com)
VersionHistoryImpl
protected VersionHistoryImpl(VersionHistoryDAO vhDAO)
VersionHistoryImpl
protected VersionHistoryImpl(Context c,
TableRow row)
getVersionHistoryId
public int getVersionHistoryId()
- Specified by:
getVersionHistoryId in interface VersionHistory
getPrevious
public Version getPrevious(Version version)
- Specified by:
getPrevious in interface VersionHistory
getNext
public Version getNext(Version version)
- Specified by:
getNext in interface VersionHistory
getVersion
public Version getVersion(Item item)
- Specified by:
getVersion in interface VersionHistory
hasNext
public boolean hasNext(Item item)
- Specified by:
hasNext in interface VersionHistory
hasNext
public boolean hasNext(Version version)
- Specified by:
hasNext in interface VersionHistory
getVersions
public List<Version> getVersions()
- Specified by:
getVersions in interface VersionHistory
setVersions
public void setVersions(List<Version> versions)
add
public void add(Version version)
- Specified by:
add in interface VersionHistory
getLatestVersion
public Version getLatestVersion()
- Specified by:
getLatestVersion in interface VersionHistory
getFirstVersion
public Version getFirstVersion()
- Specified by:
getFirstVersion in interface VersionHistory
isFirstVersion
public boolean isFirstVersion(Version version)
- Specified by:
isFirstVersion in interface VersionHistory
isLastVersion
public boolean isLastVersion(Version version)
- Specified by:
isLastVersion in interface VersionHistory
remove
public void remove(Version version)
- Specified by:
remove in interface VersionHistory
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface VersionHistory
size
public int size()
- Specified by:
size in interface VersionHistory
getMyRow
protected TableRow getMyRow()
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2012 DuraSpace. All Rights Reserved.