Class AbstractRestoreHistoryService<E extends DateAuditorEntity>
java.lang.Object
org.qubership.atp.mia.service.history.impl.AbstractRestoreHistoryService<E>
- All Implemented Interfaces:
HistoryService,RestoreHistoryService
- Direct Known Subclasses:
CompoundConfigurationRestoreHistoryService,ProcessConfigurationRestoreHistoryService,ProjectConfigurationRestoreHistoryService,SectionConfigurationRestoreHistoryService
public abstract class AbstractRestoreHistoryService<E extends DateAuditorEntity>
extends Object
implements RestoreHistoryService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EntityHistoryService<E> protected final org.javers.core.Javersprotected final org.qubership.atp.mia.service.history.impl.AbstractRestoreMapperFields inherited from interface org.qubership.atp.mia.service.history.HistoryService
CHILD_ACTIONS_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidcopyValues(E shadow, E actualObject) restoreToCommit(UUID id, org.javers.core.commit.CommitId commitId) Restores the object to a state defined by commit id.restoreToRevision(UUID id, long revisionId) Restores the object to a state defined by revision number.protected ObjectrestoreValues(org.javers.shadow.Shadow<E> shadow, E actualObject) saveRestoredObject(E object) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.qubership.atp.mia.service.history.HistoryService
getEntityClass, getItemType
-
Field Details
-
javers
protected final org.javers.core.Javers javers -
entityHistoryService
-
modelMapper
protected final org.qubership.atp.mia.service.history.impl.AbstractRestoreMapper modelMapper
-
-
Constructor Details
-
AbstractRestoreHistoryService
public AbstractRestoreHistoryService()
-
-
Method Details
-
restoreToRevision
Restores the object to a state defined by revision number.- Specified by:
restoreToRevisionin interfaceRestoreHistoryService- Parameters:
id- of object being restored.revisionId- revision number to restore.
-
restoreToCommit
Restores the object to a state defined by commit id.- Parameters:
id- of object being restored.commitId- commit id to restore.
-
restoreValues
-
getObject
-
saveRestoredObject
-
copyValues
-