public class VersionManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static AuthorizeService |
authorizeService |
protected static ItemService |
itemService |
protected static VersionHistoryService |
versionHistoryService |
protected static VersioningService |
versioningService |
protected static WorkspaceItemService |
workspaceItemService |
| Constructor and Description |
|---|
VersionManager() |
| Modifier and Type | Method and Description |
|---|---|
static FlowResult |
processCreateNewVersion(Context context,
UUID itemID,
String summary)
Create a new version of the specified item
|
static FlowResult |
processDeleteVersions(Context context,
UUID itemId,
String[] versionIDs)
Delete version(s)
|
static FlowResult |
processRestoreVersion(Context context,
int versionID,
String summary)
Restore a version
|
static FlowResult |
processUpdateVersion(Context context,
UUID itemID,
String summary)
Modify latest version
|
protected static final AuthorizeService authorizeService
protected static final ItemService itemService
protected static final VersionHistoryService versionHistoryService
protected static final VersioningService versioningService
protected static final WorkspaceItemService workspaceItemService
public static FlowResult processCreateNewVersion(Context context, UUID itemID, String summary) throws SQLException, AuthorizeException, IOException
context - The DSpace contextitemID - The id of the to-be-versioned itemSQLExceptionAuthorizeExceptionIOExceptionpublic static FlowResult processUpdateVersion(Context context, UUID 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, UUID itemId, String[] versionIDs) throws SQLException, AuthorizeException, IOException, UIException
context - The DSpace contextversionIDs - list of versionIDs to deleteSQLExceptionAuthorizeExceptionIOExceptionUIExceptionCopyright © 2016 DuraSpace. All Rights Reserved.