#include <IRevisionController.h>
|
| virtual RevisionInfoList | GetRevisionInfoList (const IObjectCollection &collection, const ICollectionInfo::Id &objectId) const =0 |
| |
| virtual int | BackupRevision (const IObjectCollection &collection, const ICollectionInfo::Id &objectId, const QString &userComment=QString()) const =0 |
| |
| virtual bool | RestoreRevision (IObjectCollection &collection, const ICollectionInfo::Id &objectId, int revision) const =0 |
| |
| virtual bool | ExportRevision (const IObjectCollection &collection, const ICollectionInfo::Id &objectId, int revision, const QString &filePath) const =0 |
| |
| virtual bool | DeleteRevision (IObjectCollection &collection, const ICollectionInfo::Id &objectId, int revision) const =0 |
| |
Common interface for management revisions of the objects and the whole object collection.
Definition at line 26 of file IRevisionController.h.
◆ BackupRevision()
| virtual int imtbase::IRevisionController::BackupRevision |
( |
const IObjectCollection & |
collection, |
|
|
const ICollectionInfo::Id & |
objectId, |
|
|
const QString & |
userComment = QString() |
|
) |
| const |
|
pure virtual |
Create backup of the given object in the collection.
- Returns
- Revision of the saved object if the operation was successfull, or a negative value otherwise.
◆ DeleteRevision()
| virtual bool imtbase::IRevisionController::DeleteRevision |
( |
IObjectCollection & |
collection, |
|
|
const ICollectionInfo::Id & |
objectId, |
|
|
int |
revision |
|
) |
| const |
|
pure virtual |
Deleting object data of a given revision from a collection
◆ ExportRevision()
| virtual bool imtbase::IRevisionController::ExportRevision |
( |
const IObjectCollection & |
collection, |
|
|
const ICollectionInfo::Id & |
objectId, |
|
|
int |
revision, |
|
|
const QString & |
filePath |
|
) |
| const |
|
pure virtual |
Exporting object data of a given revision from a collection to a file
◆ GetRevisionInfoList()
| virtual RevisionInfoList imtbase::IRevisionController::GetRevisionInfoList |
( |
const IObjectCollection & |
collection, |
|
|
const ICollectionInfo::Id & |
objectId |
|
) |
| const |
|
pure virtual |
Get list of revisions available for restore for a given data object in the collection.
◆ RestoreRevision()
| virtual bool imtbase::IRevisionController::RestoreRevision |
( |
IObjectCollection & |
collection, |
|
|
const ICollectionInfo::Id & |
objectId, |
|
|
int |
revision |
|
) |
| const |
|
pure virtual |
Restore the data of an object in the collection from a given revision.