Package org.dspace.versioning.service
Interface VersioningService
-
- All Known Implementing Classes:
VersioningServiceImpl
public interface VersioningService- Author:
- Fabio Bolognesi (fabio at atmire dot com), Mark Diggory (markd at atmire dot com), Ben Bosman (ben at atmire dot com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VersioncreateNewVersion(Context c, Item itemId)VersioncreateNewVersion(Context c, Item itemId, String summary)VersioncreateNewVersion(Context context, VersionHistory history, Item item, String summary, Date date, int versionNumber)VersiongetVersion(Context c, int versionID)VersiongetVersion(Context c, Item item)List<Version>getVersionsByHistory(Context c, VersionHistory vh)Returns all versions of a version history.voidremoveVersion(Context c, Item item)voidremoveVersion(Context c, Version version)VersionrestoreVersion(Context c, Version version)VersionrestoreVersion(Context c, Version version, String summary)VersionupdateVersion(Context c, Item itemId, String summary)
-
-
-
Method Detail
-
getVersionsByHistory
List<Version> getVersionsByHistory(Context c, VersionHistory vh) throws SQLException
Returns all versions of a version history. To keep version numbers stable we do not delete versions, we do only set the item, date, summary and eperson null. This methods returns only those versions that have an item assigned.- Parameters:
c- The relevant DSpace Context.vh- version history- Returns:
- All versions of a version history that have an item assigned.
- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-
removeVersion
void removeVersion(Context c, Version version) throws SQLException
- Throws:
SQLException
-
removeVersion
void removeVersion(Context c, Item item) throws SQLException
- Throws:
SQLException
-
getVersion
Version getVersion(Context c, int versionID) throws SQLException
- Throws:
SQLException
-
updateVersion
Version updateVersion(Context c, Item itemId, String summary) throws SQLException
- Throws:
SQLException
-
getVersion
Version getVersion(Context c, Item item) throws SQLException
- Throws:
SQLException
-
-