Class CompoundConfigurationRestoreHistoryService
java.lang.Object
org.qubership.atp.mia.service.history.impl.AbstractRestoreHistoryService<CompoundConfiguration>
org.qubership.atp.mia.service.history.impl.CompoundConfigurationRestoreHistoryService
- All Implemented Interfaces:
HistoryService,RestoreHistoryService
@Service
public class CompoundConfigurationRestoreHistoryService
extends AbstractRestoreHistoryService<CompoundConfiguration>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EntityHistoryService<CompoundConfiguration> protected final org.javers.core.Javersprotected final org.qubership.atp.mia.service.history.impl.AbstractRestoreMapperprotected final ProcessConfigurationRestoreHistoryServiceFields inherited from interface org.qubership.atp.mia.service.history.HistoryService
CHILD_ACTIONS_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionCompoundConfigurationRestoreHistoryService(org.javers.core.Javers javers, AbstractEntityHistoryService<CompoundConfiguration> entityHistoryService, ValidateReferenceExistsService validateReferenceExistsService, CompoundRestoreMapper modelMapper, ProcessConfigurationRestoreHistoryService processConfigurationRestoreHistoryService) History service should use own custom Mapper. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyValues(CompoundConfiguration shadow, CompoundConfiguration actualObject) restoreToRevision(UUID id, long revisionId) Restores the object to a state defined by revision number.Methods inherited from class org.qubership.atp.mia.service.history.impl.AbstractRestoreHistoryService
getObject, restoreToCommit, restoreValues, saveRestoredObject
-
Field Details
-
javers
protected final org.javers.core.Javers javers -
entityHistoryService
-
modelMapper
protected final org.qubership.atp.mia.service.history.impl.AbstractRestoreMapper modelMapper -
processConfigurationRestoreHistoryService
-
-
Constructor Details
-
CompoundConfigurationRestoreHistoryService
public CompoundConfigurationRestoreHistoryService(org.javers.core.Javers javers, AbstractEntityHistoryService<CompoundConfiguration> entityHistoryService, ValidateReferenceExistsService validateReferenceExistsService, CompoundRestoreMapper modelMapper, ProcessConfigurationRestoreHistoryService processConfigurationRestoreHistoryService) History service should use own custom Mapper.
-
-
Method Details
-
getItemType
-
getEntityClass
-
copyValues
- Specified by:
copyValuesin classAbstractRestoreHistoryService<CompoundConfiguration>
-
restoreToRevision
Description copied from class:AbstractRestoreHistoryServiceRestores the object to a state defined by revision number.- Specified by:
restoreToRevisionin interfaceRestoreHistoryService- Overrides:
restoreToRevisionin classAbstractRestoreHistoryService<CompoundConfiguration>- Parameters:
id- of object being restored.revisionId- revision number to restore.
-