Class SegmentMemberPersistenceHandler
java.lang.Object
com.broadleafcommerce.auth.user.listener.SegmentMemberPersistenceHandler
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.PersistenceHandler
public class SegmentMemberPersistenceHandler
extends Object
implements com.broadleafcommerce.common.messaging.PersistenceHandler
Handles creation and deletes of customer segment/customer relationships. Segments are stored on
the
User
in their user attributes.-
Field Summary
-
Constructor Summary
ConstructorDescriptionSegmentMemberPersistenceHandler
(UserService<User> userService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected Instant
getChangeTimestamp
(com.fasterxml.jackson.databind.JsonNode persistenceMessage) getCustomerSegments
(User user) com.fasterxml.jackson.databind.ObjectMapper
String[]
protected UserService<User>
void
boolean
isNodeNull
(com.fasterxml.jackson.databind.JsonNode jsonNode) void
processStateChange
(com.fasterxml.jackson.databind.JsonNode entityJson) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.common.messaging.PersistenceHandler
handle, isValidType, validate
-
Field Details
-
LAST_PROCESS_SEGMENT_DATE
- See Also:
-
-
Constructor Details
-
SegmentMemberPersistenceHandler
public SegmentMemberPersistenceHandler(UserService<User> userService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()- Specified by:
getObjectMapper
in interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
processStateChange
public void processStateChange(com.fasterxml.jackson.databind.JsonNode entityJson) - Specified by:
processStateChange
in interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
hook
- Specified by:
hook
in interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
getCustomerSegments
-
getChangeTimestamp
-
isNodeNull
public boolean isNodeNull(com.fasterxml.jackson.databind.JsonNode jsonNode) -
getSupportedSimpleTypeNames
- Specified by:
getSupportedSimpleTypeNames
in interfacecom.broadleafcommerce.common.messaging.PersistenceHandler
-
getUserService
-