public class VersionHistoryServiceImpl extends Object implements VersionHistoryService
| Modifier and Type | Field and Description |
|---|---|
protected VersionHistoryDAO |
versionHistoryDAO |
| Modifier | Constructor and Description |
|---|---|
protected |
VersionHistoryServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Context context,
VersionHistory versionHistory,
Version version) |
VersionHistory |
create(Context context) |
void |
delete(Context context,
VersionHistory versionHistory) |
VersionHistory |
find(Context context,
int id) |
VersionHistory |
findByItem(Context context,
Item item) |
Version |
getFirstVersion(Context context,
VersionHistory versionHistory) |
Version |
getLatestVersion(Context context,
VersionHistory versionHistory) |
Version |
getNext(Context c,
VersionHistory versionHistory,
Version version) |
Version |
getPrevious(Context context,
VersionHistory versionHistory,
Version version) |
Version |
getVersion(Context context,
VersionHistory versionHistory,
Item item) |
boolean |
hasNext(Context context,
VersionHistory versionHistory,
Item item) |
boolean |
hasNext(Context context,
VersionHistory versionHistory,
Version version) |
boolean |
hasVersionHistory(Context context,
Item item) |
boolean |
isFirstVersion(Context context,
Item item) |
boolean |
isFirstVersion(Context context,
VersionHistory versionHistory,
Version version) |
boolean |
isLastVersion(Context context,
Item item) |
boolean |
isLastVersion(Context context,
VersionHistory versionHistory,
Version version) |
void |
remove(VersionHistory versionHistory,
Version version) |
void |
update(Context context,
List<VersionHistory> versionHistories) |
void |
update(Context context,
VersionHistory versionHistory) |
@Autowired(required=true) protected VersionHistoryDAO versionHistoryDAO
public VersionHistory create(Context context) throws SQLException
create in interface DSpaceCRUDService<VersionHistory>SQLExceptionpublic VersionHistory find(Context context, int id) throws SQLException
find in interface DSpaceCRUDService<VersionHistory>SQLExceptionpublic void update(Context context, VersionHistory versionHistory) throws SQLException, AuthorizeException
update in interface DSpaceCRUDService<VersionHistory>SQLExceptionAuthorizeExceptionpublic void update(Context context, List<VersionHistory> versionHistories) throws SQLException, AuthorizeException
update in interface DSpaceCRUDService<VersionHistory>SQLExceptionAuthorizeExceptionpublic void delete(Context context, VersionHistory versionHistory) throws SQLException, AuthorizeException
delete in interface DSpaceCRUDService<VersionHistory>SQLExceptionAuthorizeExceptionpublic Version getPrevious(Context context, VersionHistory versionHistory, Version version) throws SQLException
getPrevious in interface VersionHistoryServiceSQLExceptionpublic Version getNext(Context c, VersionHistory versionHistory, Version version) throws SQLException
getNext in interface VersionHistoryServiceSQLExceptionpublic Version getVersion(Context context, VersionHistory versionHistory, Item item) throws SQLException
getVersion in interface VersionHistoryServiceSQLExceptionpublic boolean hasNext(Context context, VersionHistory versionHistory, Item item) throws SQLException
hasNext in interface VersionHistoryServiceSQLExceptionpublic boolean hasNext(Context context, VersionHistory versionHistory, Version version) throws SQLException
hasNext in interface VersionHistoryServiceSQLExceptionpublic boolean hasVersionHistory(Context context, Item item) throws SQLException
hasVersionHistory in interface VersionHistoryServiceSQLExceptionpublic void add(Context context, VersionHistory versionHistory, Version version) throws SQLException
add in interface VersionHistoryServiceSQLExceptionpublic Version getLatestVersion(Context context, VersionHistory versionHistory) throws SQLException
getLatestVersion in interface VersionHistoryServiceSQLExceptionpublic Version getFirstVersion(Context context, VersionHistory versionHistory) throws SQLException
getFirstVersion in interface VersionHistoryServiceSQLExceptionpublic boolean isFirstVersion(Context context, Item item) throws SQLException
isFirstVersion in interface VersionHistoryServiceSQLExceptionpublic boolean isFirstVersion(Context context, VersionHistory versionHistory, Version version) throws SQLException
isFirstVersion in interface VersionHistoryServiceSQLExceptionpublic boolean isLastVersion(Context context, Item item) throws SQLException
isLastVersion in interface VersionHistoryServiceSQLExceptionpublic boolean isLastVersion(Context context, VersionHistory versionHistory, Version version) throws SQLException
isLastVersion in interface VersionHistoryServiceSQLExceptionpublic void remove(VersionHistory versionHistory, Version version)
remove in interface VersionHistoryServicepublic VersionHistory findByItem(Context context, Item item) throws SQLException
findByItem in interface VersionHistoryServiceSQLExceptionCopyright © 2016 DuraSpace. All rights reserved.