public class ChangeDetailPruningPersistenceMessageAckedHandler extends Object implements com.broadleafcommerce.common.messaging.PersistenceMessageAckedHandler
Trackable
entities
following successful acknowledgement of the PersistenceMessage
's notification state.
For sandboxable entities, the Tracking.getLevel()
must be
TrackingLevel.PRODUCTION
. All non-sandboxable entities are implicitly considered
production-level.
Constructor and Description |
---|
ChangeDetailPruningPersistenceMessageAckedHandler() |
Modifier and Type | Method and Description |
---|---|
void |
afterSuccessfulAcknowledgement(Object nativeId,
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware notificationStateAware,
com.broadleafcommerce.common.messaging.notification.NotificationStateRepository repository) |
String |
getDataRoutePartition() |
protected boolean |
isProductionLevel(Trackable trackable) |
protected boolean |
isSandboxableEntity(Trackable trackable,
TrackableBehaviorUtil trackableBehaviorUtil) |
protected boolean |
isTrackable(com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware notificationStateAware) |
protected boolean |
isTrackableRepository(com.broadleafcommerce.common.messaging.notification.NotificationStateRepository repository) |
protected void |
pruneChangeDetails(Object nativeEntityId,
TrackableRepository<Trackable> repository) |
public ChangeDetailPruningPersistenceMessageAckedHandler()
public void afterSuccessfulAcknowledgement(@NonNull Object nativeId, @NonNull com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware notificationStateAware, @NonNull com.broadleafcommerce.common.messaging.notification.NotificationStateRepository repository)
afterSuccessfulAcknowledgement
in interface com.broadleafcommerce.common.messaging.PersistenceMessageAckedHandler
protected boolean isTrackable(com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware notificationStateAware)
protected boolean isTrackableRepository(com.broadleafcommerce.common.messaging.notification.NotificationStateRepository repository)
protected boolean isSandboxableEntity(Trackable trackable, TrackableBehaviorUtil trackableBehaviorUtil)
protected boolean isProductionLevel(Trackable trackable)
protected void pruneChangeDetails(Object nativeEntityId, TrackableRepository<Trackable> repository)
public String getDataRoutePartition()
getDataRoutePartition
in interface com.broadleafcommerce.common.extension.data.DataRoutePartitionAware
Copyright © 2021. All rights reserved.