public class VersionManager extends Object
| Constructor and Description |
|---|
VersionManager() |
| Modifier and Type | Method and Description |
|---|---|
static FlowResult |
processCreateNewVersion(Context context,
int itemID,
String summary)
Create a new version of the specified item
|
static FlowResult |
processDeleteVersions(Context context,
int itemId,
String[] versionIDs)
Delete version(s)
|
static FlowResult |
processRestoreVersion(Context context,
int versionID,
String summary)
Restore a version
|
static FlowResult |
processUpdateVersion(Context context,
int itemID,
String summary)
Modify latest version
|
public static FlowResult processCreateNewVersion(Context context, int itemID, String summary) throws SQLException, AuthorizeException, IOException
context - The DSpace contextitemID - The id of the to-be-versioned itemSQLExceptionAuthorizeExceptionIOExceptionpublic static FlowResult processUpdateVersion(Context context, int itemID, String summary) throws SQLException, AuthorizeException, IOException
context - The DSpace contextitemID - The id of the to-be-versioned itemSQLExceptionAuthorizeExceptionIOExceptionpublic static FlowResult processRestoreVersion(Context context, int versionID, String summary) throws SQLException, AuthorizeException, IOException
versionID - id of the version to restorecontext - The DSpace contextSQLExceptionAuthorizeExceptionIOExceptionpublic static FlowResult processDeleteVersions(Context context, int itemId, String[] versionIDs) throws SQLException, AuthorizeException, IOException, UIException
context - The DSpace contextversionIDs - list of versionIDs to deleteSQLExceptionAuthorizeExceptionIOExceptionUIExceptionCopyright © 2014 DuraSpace. All Rights Reserved.