Class HistoryConfigurationImpl
java.lang.Object
ch.tocco.nice2.persist.history.impl.v2.config.HistoryConfigurationImpl
- All Implemented Interfaces:
HistoryConfiguration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Field Summary
Fields inherited from interface ch.tocco.nice2.persist.history.impl.v2.config.HistoryConfiguration
SILENCE_HISTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHistoryConfigurationFor(EntityModel entityModel, boolean isRootEntity) returns theEntityHistoryConfigurationfor the passed entity modelbooleanisHistoryEnabledFor(EntityModel entityModel) voidsetEntityHistoryConfigurations(List<EntityHistoryConfiguration> entityHistoryConfigurations) voidsetIgnoreEntityModels(List<HistoryExclusionContribution> contributions)
-
Constructor Details
-
HistoryConfigurationImpl
public HistoryConfigurationImpl()
-
-
Method Details
-
setIgnoreEntityModels
-
setEntityHistoryConfigurations
@Autowired public void setEntityHistoryConfigurations(List<EntityHistoryConfiguration> entityHistoryConfigurations) -
isHistoryEnabledFor
- Specified by:
isHistoryEnabledForin interfaceHistoryConfiguration
-
getHistoryConfigurationFor
public EntityHistoryConfiguration getHistoryConfigurationFor(EntityModel entityModel, boolean isRootEntity) Description copied from interface:HistoryConfigurationreturns theEntityHistoryConfigurationfor the passed entity model- Specified by:
getHistoryConfigurationForin interfaceHistoryConfiguration- Parameters:
isRootEntity- is used to distinguish between a lookup entity itself is changed and the full xml should be generated or a related entity is changed and only some fields should be in the xml.
-