Package org.dspace.versioning
Class VersionHistory
java.lang.Object
org.dspace.versioning.VersionHistory
- All Implemented Interfaces:
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
ConstructorsModifierConstructorDescriptionprotectedProtected constructor, create object using:DSpaceCRUDService.create(Context) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetID()The unique identifier of this entity instance.Please useVersioningService.getVersionsByHistory(Context, VersionHistory)instead.booleanVerify if there is a version's item in submission.inthashCode()
-
Constructor Details
-
VersionHistory
protected VersionHistory()Protected constructor, create object using:DSpaceCRUDService.create(Context)
-
-
Method Details
-
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
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.
-
equals
-
hashCode
public int hashCode()
-