public class VersioningServiceImpl extends Object implements VersioningService
| Modifier and Type | Field and Description |
|---|---|
protected VersionDAO |
versionDAO |
protected WorkflowItemService |
workflowItemService |
| Modifier | Constructor and Description |
|---|---|
protected |
VersioningServiceImpl() |
@Autowired(required=true) protected VersionDAO versionDAO
@Autowired(required=true) protected WorkflowItemService workflowItemService
public void setProvider(DefaultItemVersionProvider provider)
public Version createNewVersion(Context c, Item item)
createNewVersion in interface VersioningServicepublic Version createNewVersion(Context c, Item item, String summary)
createNewVersion in interface VersioningServicepublic void removeVersion(Context c, Version version) throws SQLException
removeVersion in interface VersioningServiceSQLExceptionpublic void removeVersion(Context c, Item item) throws SQLException
removeVersion in interface VersioningServiceSQLExceptionpublic Version getVersion(Context c, int versionID) throws SQLException
getVersion in interface VersioningServiceSQLExceptionpublic Version restoreVersion(Context c, Version version)
restoreVersion in interface VersioningServicepublic Version restoreVersion(Context c, Version version, String summary)
restoreVersion in interface VersioningServicepublic Version updateVersion(Context c, Item item, String summary) throws SQLException
updateVersion in interface VersioningServiceSQLExceptionpublic Version getVersion(Context c, Item item) throws SQLException
getVersion in interface VersioningServiceSQLExceptionpublic Version createNewVersion(Context context, VersionHistory history, Item item, String summary, Date date, int versionNumber)
createNewVersion in interface VersioningServicepublic List<Version> getVersionsByHistory(Context c, VersionHistory vh) throws SQLException
VersioningServicegetVersionsByHistory in interface VersioningServiceSQLExceptionprotected Version createVersion(Context c, VersionHistory vh, Item item, String summary, Date date) throws SQLException
SQLExceptionprotected int getNextVersionNumer(Context c, VersionHistory vh) throws SQLException
SQLExceptionCopyright © 2017 DuraSpace. All rights reserved.