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