Class AbstractChangeProcessor
java.lang.Object
org.qubership.atp.dataset.versioning.service.changes.processors.AbstractChangeProcessor
- All Implemented Interfaces:
ChangeProcessor
- Direct Known Subclasses:
CreateDataSetProcessor,CreateOverlapProcessor,CreateParameterProcessor,DeleteAttributeProcessor,DeleteDataSetProcessor,DeleteOverlapProcessor,DeleteParameterProcessor,LockedDataSetProcessor,RenamedAttributeProcessor,RenamedDataSetProcessor,UpdateAttributeProcessor,UpdateListValuesProcessor,UpdateOverlappedProcessor,UpdateParameterProcessor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract HistoryItemDtocreateHistoryItem(org.javers.core.diff.Diff diff, DataSetListComparable oldEntity, DataSetListComparable actualEntity) getValuePretty(String value, AttributeTypeName typeName, ModelsProvider modelsProvider) Mask for encrypted, special text view for change type.protected abstract booleanisApplicable(org.javers.core.diff.Diff diff, DataSetListComparable actualEntity) proceed(org.javers.core.diff.Diff diff, DataSetListComparable oldEntity, DataSetListComparable actualEntity) Fills fields ofHistoryItemDtoin case the incoming data is applicable for it.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.qubership.atp.dataset.versioning.service.changes.processors.ChangeProcessor
setNextProcessor
-
Field Details
-
nextProcessor
-
-
Constructor Details
-
AbstractChangeProcessor
public AbstractChangeProcessor()
-
-
Method Details
-
proceed
public HistoryItemDto proceed(org.javers.core.diff.Diff diff, DataSetListComparable oldEntity, DataSetListComparable actualEntity) Fills fields ofHistoryItemDtoin case the incoming data is applicable for it. ReturnHistoryItemDtoin case data was processed by thisChangeProcessorIn case data cannot be processed by this processor call the next one or returnnullif there is no next processor.- Specified by:
proceedin interfaceChangeProcessor
-
isApplicable
protected abstract boolean isApplicable(org.javers.core.diff.Diff diff, DataSetListComparable actualEntity) -
createHistoryItem
protected abstract HistoryItemDto createHistoryItem(org.javers.core.diff.Diff diff, DataSetListComparable oldEntity, DataSetListComparable actualEntity) -
getValuePretty
public String getValuePretty(String value, AttributeTypeName typeName, ModelsProvider modelsProvider) Mask for encrypted, special text view for change type.
-