org.dspace.versioning
Class VersionHistoryImpl

java.lang.Object
  extended by 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)

Constructor Summary
protected VersionHistoryImpl(Context c, TableRow row)
           
protected VersionHistoryImpl(VersionHistoryDAO vhDAO)
           
 
Method Summary
 void add(Version version)
           
 boolean equals(Object o)
           
 Version getFirstVersion()
           
 Version getLatestVersion()
           
protected  TableRow getMyRow()
           
 Version getNext(Version version)
           
 Version getPrevious(Version version)
           
 Version getVersion(Item item)
           
 int getVersionHistoryId()
           
 List<Version> getVersions()
           
 int hashCode()
           
 boolean hasNext(Item item)
           
 boolean hasNext(Version version)
           
 boolean isEmpty()
           
 boolean isFirstVersion(Version version)
           
 boolean isLastVersion(Version version)
           
 void remove(Version version)
           
 void setVersions(List<Version> versions)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionHistoryImpl

protected VersionHistoryImpl(VersionHistoryDAO vhDAO)

VersionHistoryImpl

protected VersionHistoryImpl(Context c,
                             TableRow row)
Method Detail

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.