Uses of Interface
com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeDetail
Package
Description
-
Uses of ChangeDetail in com.broadleafcommerce.data.tracking.core.filtering.domain
Modifier and TypeMethodDescriptionTracking.getChangeDetails()
Audit information regarding changes made to realize the current entity stateModifier and TypeMethodDescriptiondefault boolean
ChangeDetail.effectiveEqual
(ChangeDetail other) Modifier and TypeMethodDescriptionvoid
Tracking.setChangeDetails
(List<ChangeDetail> changeDetails) Audit information regarding changes made to realize the current entity state -
Uses of ChangeDetail in com.broadleafcommerce.data.tracking.core.mapping
Modifier and TypeFieldDescriptionprotected static final Comparator<ChangeDetail>
ContextStateBuilder.DETAIL_LEVEL_COMPARATOR
protected static final Comparator<ChangeDetail>
ContextStateBuilder.DETAIL_TIMESTAMP_COMPARATOR
Modifier and TypeMethodDescriptionDefaultTrackableDomainMapperMemberSupport.buildChangeDetailBefore
(ContextInfo contextInfo, Trackable repositoryDomain, String propertyName, PropertyTypeInfo propertyTypeInfo, String businessPropertyName) TrackableDomainMapperMemberSupport.buildChangeDetailBefore
(ContextInfo contextInfo, Trackable repositoryDomain, String propertyName, PropertyTypeInfo propertyTypeInfo, String businessPropertyName) Construct aChangeDetail
instance that represents the value of soon-to-be dirty field before the mutating change is applied.protected ChangeDetail
DefaultTrackableDomainMapperMemberSupport.optimizeDirtyEmbeddedCollection
(ChangeDetail detail) OptimizeChangeDetail
for a dirty embedded collection by removing unchanged elements and fields.Modifier and TypeMethodDescriptionDefaultTrackableDomainMapperMemberSupport.buildChangeDetailAfter
(Object repositoryDomain, List<ChangeDetail> details) TrackableDomainMapperMemberSupport.buildChangeDetailAfter
(Object repositoryDomain, List<ChangeDetail> details) Populate the field values after mutation for a changed repository domain instance.protected <D extends Trackable>
List<ChangeDetail>ModelMapperDomainMapperMember.buildDetailsBefore
(D repositoryDomain, ContextInfo contextInfo, org.modelmapper.TypeMap<?, ?> repositoryTypeMap) DefaultTrackableDomainMapperMemberSupport.compileDirty
(List<ChangeDetail> details, boolean shouldOptimizeDirtyEmbeddedCollections) TrackableDomainMapperMemberSupport.compileDirty
(List<ChangeDetail> originalDetails, boolean optimizeDirtyEmbeddedCollections) Given a list of changes, determine which are actually dirty.Modifier and TypeMethodDescriptionboolean
ChangeTransformer.applyChanges
(ChangeDetail detail, Trackable target, boolean reverse, boolean addDetail, boolean validateDetailVersion, String explicitVersion) Apply aChangeDetail
to a target entityboolean
DefaultChangeTransformer.applyChanges
(ChangeDetail detail, Trackable target, boolean reverse, boolean addDetail, boolean validateDetailVersion, String explicitVersion) Apply aChangeDetail
to a target entity.protected void
DefaultWorkflowMapper.applyChanges
(ChangeDetail detail, Trackable target, boolean reverse, boolean addDetail, boolean validateDetailVersion, String explicitVersion) Apply aChangeDetail
to a promotion target entityprotected com.fasterxml.jackson.databind.JavaType
ContextStateBuilder.determinePersistentCollectionJavaType
(ChangeDetail detail, Class<?> collectionType, Class<?> memberType, Class<?> parentType, String parentId) Determines theJavaType
of collections on persistent domains that correspond toContextStateAware entities
when deserializing the before and after values of aChangeDetail
when settingContextState
on embedded collections ofContextStateAware entities
.protected void
DefaultTrackableDomainMapperMemberSupport.internalOptimizeDirtyEmbeddedCollection
(ChangeDetail detail) OptimizeChangeDetail
for a dirty embedded collection by removing unchanged elements and fields.protected boolean
DefaultTrackableDomainMapperMemberSupport.isDirty
(ChangeDetail detail) Method to allow us to determine if aChangeDetail
is dirty.protected final boolean
ContextStateBuilder.isLatestChangeToFieldAtAnyLevel
(ChangeDetail detail, Collection<? extends ChangeDetail> otherDetails) Checks that the givenChangeDetail
any of: The only change for a field The highestgetLevel()
of any change for a field The newest change for that field (comparinggetTimestamp()
All obsolete changes are automatically excluded (seegetObsolete()
).protected final boolean
ContextStateBuilder.isNotObsoleteChange
(ChangeDetail detail) protected final boolean
ContextStateBuilder.isNotProductionChange
(ChangeDetail detail) protected final boolean
ContextStateBuilder.isRebasedChange
(ChangeDetail detail) protected ChangeDetail
DefaultTrackableDomainMapperMemberSupport.optimizeDirtyEmbeddedCollection
(ChangeDetail detail) OptimizeChangeDetail
for a dirty embedded collection by removing unchanged elements and fields.protected void
DefaultTrackableDomainMapperMemberSupport.optimizeDirtyEmbeddedComplexList
(ChangeDetail detail, com.fasterxml.jackson.databind.JavaType javaType) OptimizeChangeDetail
for a dirty embedded iterable by removing unchanged elements and fields.protected void
DefaultTrackableDomainMapperMemberSupport.optimizeDirtyEmbeddedComplexMap
(ChangeDetail detail) OptimizeChangeDetail
for a dirty embedded map of complex objects by removing unchanged entries and fields.protected void
DefaultTrackableDomainMapperMemberSupport.optimizeDirtyEmbeddedList
(ChangeDetail detail, com.fasterxml.jackson.databind.JavaType javaType) OptimizeChangeDetail
for a dirty embedded iterable by removing unchanged elements and fields.protected void
DefaultTrackableDomainMapperMemberSupport.optimizeDirtyEmbeddedMap
(ChangeDetail detail, com.fasterxml.jackson.databind.JavaType javaType) OptimizeChangeDetail
for a dirty embedded map by removing unchanged entries and fields.protected void
DefaultTrackableDomainMapperMemberSupport.optimizeDirtyEmbeddedOther
(ChangeDetail detail, com.fasterxml.jackson.databind.JavaType javaType) Extension point for optimizing an embedded collection of a type not supported by default.protected void
DefaultTrackableDomainMapperMemberSupport.optimizeDirtyEmbeddedSimpleList
(ChangeDetail detail) OptimizeChangeDetail
for a dirty embedded iterable by removing unchanged elements.protected void
DefaultTrackableDomainMapperMemberSupport.optimizeDirtyEmbeddedSimpleMap
(ChangeDetail detail) OptimizeChangeDetail
for a dirty embedded map of simple objects by removing unchanged entries.Modifier and TypeMethodDescriptionDefaultTrackableDomainMapperMemberSupport.buildChangeDetailAfter
(Object repositoryDomain, List<ChangeDetail> details) TrackableDomainMapperMemberSupport.buildChangeDetailAfter
(Object repositoryDomain, List<ChangeDetail> details) Populate the field values after mutation for a changed repository domain instance.void
DefaultTrackableDomainMapperMemberSupport.buildTracking
(ContextInfo contextInfo, Trackable domainInstance, List<ChangeDetail> details) void
DefaultTrackableDomainMapperMemberSupport.buildTracking
(Trackable domainInstance, List<ChangeDetail> details) void
TrackableDomainMapperMemberSupport.buildTracking
(ContextInfo contextInfo, Trackable domainInstance, List<ChangeDetail> details) Compile theTracking
information for a new changevoid
TrackableDomainMapperMemberSupport.buildTracking
(Trackable domainInstance, List<ChangeDetail> details) Compile theTracking
information for a new change.DefaultTrackableDomainMapperMemberSupport.compileDirty
(List<ChangeDetail> details, boolean shouldOptimizeDirtyEmbeddedCollections) TrackableDomainMapperMemberSupport.compileDirty
(List<ChangeDetail> originalDetails, boolean optimizeDirtyEmbeddedCollections) Given a list of changes, determine which are actually dirty.protected final boolean
ContextStateBuilder.isLatestChangeToFieldAtAnyLevel
(ChangeDetail detail, Collection<? extends ChangeDetail> otherDetails) Checks that the givenChangeDetail
any of: The only change for a field The highestgetLevel()
of any change for a field The newest change for that field (comparinggetTimestamp()
All obsolete changes are automatically excluded (seegetObsolete()
).