public class FlowAutoVersionUtils extends Object
| Constructor and Description |
|---|
FlowAutoVersionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.dspace.app.xmlui.aspect.administrative.FlowResult |
processCreateNewVersion(org.dspace.core.Context context,
int itemID,
String summary)
Create a new version of the specified item
|
static org.dspace.app.xmlui.aspect.administrative.FlowResult |
processDeleteVersions(org.dspace.core.Context context,
int itemId,
String[] versionIDs)
Delete version(s)
|
static org.dspace.app.xmlui.aspect.administrative.FlowResult |
processRestoreVersion(org.dspace.core.Context context,
int versionID,
String summary)
Restore a version
|
static org.dspace.app.xmlui.aspect.administrative.FlowResult |
processUpdateVersion(org.dspace.core.Context context,
int itemID,
int versionId,
String summary)
Modify latest version
|
public static org.dspace.app.xmlui.aspect.administrative.FlowResult processCreateNewVersion(org.dspace.core.Context context,
int itemID,
String summary)
throws SQLException,
org.dspace.authorize.AuthorizeException,
IOException
context - The DSpace contextitemID - The id of the to-be-versioned itemSQLExceptionorg.dspace.authorize.AuthorizeExceptionIOExceptionpublic static org.dspace.app.xmlui.aspect.administrative.FlowResult processUpdateVersion(org.dspace.core.Context context,
int itemID,
int versionId,
String summary)
throws SQLException,
org.dspace.authorize.AuthorizeException,
IOException
context - The DSpace contextitemID - The id of the to-be-versioned itemSQLExceptionorg.dspace.authorize.AuthorizeExceptionIOExceptionpublic static org.dspace.app.xmlui.aspect.administrative.FlowResult processRestoreVersion(org.dspace.core.Context context,
int versionID,
String summary)
throws SQLException,
org.dspace.authorize.AuthorizeException,
IOException
versionID - id of the version to restorecontext - The DSpace contextSQLExceptionorg.dspace.authorize.AuthorizeExceptionIOExceptionpublic static org.dspace.app.xmlui.aspect.administrative.FlowResult processDeleteVersions(org.dspace.core.Context context,
int itemId,
String[] versionIDs)
throws SQLException,
org.dspace.authorize.AuthorizeException,
IOException,
org.dspace.app.xmlui.utils.UIException
context - The DSpace contextversionIDs - list of versionIDs to deleteSQLExceptionorg.dspace.authorize.AuthorizeExceptionIOExceptionorg.dspace.app.xmlui.utils.UIExceptionCopyright © 2016 DuraSpace. All rights reserved.