Class 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)
    • Method Detail

      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object