Class VersionHistory

java.lang.Object
org.dspace.versioning.VersionHistory
All Implemented Interfaces:
ReloadableEntity<Integer>

@Entity public class VersionHistory extends Object implements ReloadableEntity<Integer>
Author:
Fabio Bolognesi (fabio at atmire dot com), Mark Diggory (markd at atmire dot com), Ben Bosman (ben at atmire dot com), Pascal-Nicolas Becker (dspace at pascal dash becker dot de)
  • Constructor Details

  • Method Details

    • getID

      public Integer getID()
      Description copied from interface: ReloadableEntity
      The unique identifier of this entity instance.
      Specified by:
      getID in interface ReloadableEntity<Integer>
      Returns:
      the value of the primary key for this instance.
    • getVersions

      protected List<Version> getVersions()
      Please use VersioningService.getVersionsByHistory(Context, VersionHistory) instead. To keep version number stables we keep information about deleted Versions. org.dspace.versioning.service.VersioningService#getVersionsByHistory(Context, VersionHistory) VersioningService#getVersionsByHistory filters such versions and returns only active versions.
      Returns:
      list of versions
    • hasDraftVersion

      public boolean hasDraftVersion()
      Verify if there is a version's item in submission.
      Returns:
      true if the last version in submission, otherwise false.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object