public interface VersioningService
| Modifier and Type | Method and Description |
|---|---|
Version |
createNewVersion(Context c,
Item itemId) |
Version |
createNewVersion(Context c,
Item itemId,
String summary) |
Version |
createNewVersion(Context context,
VersionHistory history,
Item item,
String summary,
Date date,
int versionNumber) |
Version |
getVersion(Context c,
int versionID) |
Version |
getVersion(Context c,
Item item) |
List<Version> |
getVersionsByHistory(Context c,
VersionHistory vh)
Returns all versions of a version history.
|
void |
removeVersion(Context c,
Item item) |
void |
removeVersion(Context c,
Version version) |
Version |
restoreVersion(Context c,
Version version) |
Version |
restoreVersion(Context c,
Version version,
String summary) |
Version |
updateVersion(Context c,
Item itemId,
String summary) |
List<Version> getVersionsByHistory(Context c, VersionHistory vh) throws SQLException
c - The relevant DSpace Context.vh - version historySQLException - An exception that provides information on a database access error or other errors.void removeVersion(Context c, Version version) throws SQLException
SQLExceptionvoid removeVersion(Context c, Item item) throws SQLException
SQLExceptionVersion getVersion(Context c, int versionID) throws SQLException
SQLExceptionVersion updateVersion(Context c, Item itemId, String summary) throws SQLException
SQLExceptionVersion getVersion(Context c, Item item) throws SQLException
SQLExceptionCopyright © 2019 DuraSpace. All rights reserved.