public class AuthTenantPersistenceHandler extends Object implements com.broadleafcommerce.common.messaging.PersistenceHandler
AuthPersistenceConsumer
channel that specializes in replicating persisted
Application
domain information
into a subset of that information embodied in the Application
domain.Constructor and Description |
---|
AuthTenantPersistenceHandler(ApplicationService<Application> applicationService,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
com.broadleafcommerce.common.extension.TypeFactory typeFactory)
Deprecated.
|
AuthTenantPersistenceHandler(ApplicationService<Application> applicationService,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
com.broadleafcommerce.common.extension.TypeFactory typeFactory,
AuthServerCreationHandler authServerCreationHandler) |
AuthTenantPersistenceHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
ApplicationService<Application> applicationService,
com.broadleafcommerce.common.extension.TypeFactory typeFactory,
AuthServerCreationHandler authServerCreationHandler) |
Modifier and Type | Method and Description |
---|---|
protected String |
getApplicationName(com.fasterxml.jackson.databind.JsonNode entityJson) |
protected Instant |
getChangeTimestamp(com.fasterxml.jackson.databind.JsonNode persistenceMessage) |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
String[] |
getSupportedSimpleTypeNames() |
void |
handle(String entityJson) |
protected void |
handleCreate(com.fasterxml.jackson.databind.JsonNode entityJson,
String applicationId) |
protected void |
handleDelete(String id) |
protected void |
handleUpdate(com.fasterxml.jackson.databind.JsonNode entityJson,
Application application) |
void |
hook(String entityJson) |
protected boolean |
isDelete(com.fasterxml.jackson.databind.JsonNode tracking) |
boolean |
isNodeNull(com.fasterxml.jackson.databind.JsonNode jsonNode) |
boolean |
isValidType(String reportedType,
String projectionType) |
protected IllegalArgumentException |
missingTimestampError() |
void |
processStateChange(com.fasterxml.jackson.databind.JsonNode entityJson) |
protected void |
updateApplication(com.fasterxml.jackson.databind.JsonNode entityJson,
Application application) |
public AuthTenantPersistenceHandler(ApplicationService<Application> applicationService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, @Nullable AuthServerCreationHandler authServerCreationHandler)
@Deprecated public AuthTenantPersistenceHandler(ApplicationService<Application> applicationService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
AuthTenantPersistenceHandler(ObjectMapper, ApplicationService, TypeFactory, AuthServerCreationHandler)
public AuthTenantPersistenceHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ApplicationService<Application> applicationService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, AuthServerCreationHandler authServerCreationHandler)
public void handle(String entityJson)
handle
in interface com.broadleafcommerce.common.messaging.PersistenceHandler
@StreamListener(value="persistenceInputTenantSyncAuth") public void hook(String entityJson)
hook
in interface com.broadleafcommerce.common.messaging.PersistenceHandler
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
getObjectMapper
in interface com.broadleafcommerce.common.messaging.PersistenceHandler
public void processStateChange(com.fasterxml.jackson.databind.JsonNode entityJson)
processStateChange
in interface com.broadleafcommerce.common.messaging.PersistenceHandler
protected void handleUpdate(com.fasterxml.jackson.databind.JsonNode entityJson, Application application)
protected void handleCreate(com.fasterxml.jackson.databind.JsonNode entityJson, String applicationId)
protected String getApplicationName(com.fasterxml.jackson.databind.JsonNode entityJson)
protected void updateApplication(com.fasterxml.jackson.databind.JsonNode entityJson, Application application)
protected void handleDelete(String id)
protected boolean isDelete(com.fasterxml.jackson.databind.JsonNode tracking)
public boolean isValidType(String reportedType, String projectionType)
isValidType
in interface com.broadleafcommerce.common.messaging.PersistenceHandler
protected Instant getChangeTimestamp(com.fasterxml.jackson.databind.JsonNode persistenceMessage)
protected IllegalArgumentException missingTimestampError()
public boolean isNodeNull(com.fasterxml.jackson.databind.JsonNode jsonNode)
public String[] getSupportedSimpleTypeNames()
getSupportedSimpleTypeNames
in interface com.broadleafcommerce.common.messaging.PersistenceHandler
Copyright © 2021. All rights reserved.