Package org.dspace.versioning
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 Summary
Constructors Modifier Constructor Description protectedVersionHistory()Protected constructor, create object using:DSpaceCRUDService.create(Context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)IntegergetID()The unique identifier of this entity instance.protected List<Version>getVersions()Please useVersioningService.getVersionsByHistory(Context, VersionHistory)instead.booleanhasDraftVersion()Verify if there is a version's item in submission.inthashCode()
-
-
-
Constructor Detail
-
VersionHistory
protected VersionHistory()
Protected constructor, create object using:DSpaceCRUDService.create(Context)
-
-
Method Detail
-
getID
public Integer getID()
Description copied from interface:ReloadableEntityThe unique identifier of this entity instance.- Specified by:
getIDin interfaceReloadableEntity<Integer>- Returns:
- the value of the primary key for this instance.
-
getVersions
protected List<Version> getVersions()
Please useVersioningService.getVersionsByHistory(Context, VersionHistory)instead. To keep version number stables we keep information about deleted Versions.org.dspace.versioning.service.VersioningService#getVersionsByHistory(Context, VersionHistory) VersioningService#getVersionsByHistoryfilters 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.
-
-