Class JpaNotificationStateSupport
java.lang.Object
com.broadleafcommerce.sandbox.provider.jpa.repository.support.JpaNotificationStateSupport
Contains common functionality useful for creating/initializing
JpaNotificationState in
flows specific to SandboxServices' custom repository method implementations.-
Method Summary
Modifier and TypeMethodDescriptionstatic com.broadleafcommerce.data.tracking.jpa.filtering.domain.JpaNotificationStatebuildNotificationStateMatchingValues(Supplier<com.broadleafcommerce.data.tracking.jpa.filtering.domain.JpaNotificationState> constructor, @NonNull String containerId, @NonNull String name, @NonNull Class<?> entityType, @NonNull Map<String, Object> values) Builds a newJpaNotificationStateinstance with the specified details.
-
Method Details
-
buildNotificationStateMatchingValues
public static com.broadleafcommerce.data.tracking.jpa.filtering.domain.JpaNotificationState buildNotificationStateMatchingValues(Supplier<com.broadleafcommerce.data.tracking.jpa.filtering.domain.JpaNotificationState> constructor, @NonNull @NonNull String containerId, @NonNull @NonNull String name, @NonNull @NonNull Class<?> entityType, @NonNull @NonNull Map<String, Object> values) Builds a newJpaNotificationStateinstance with the specified details.- Parameters:
constructor- factory method to construct the new instancecontainerId- the value forJpaNotificationState.getContainer()name- the value forJpaNotificationState.getName()entityType- the value forJpaNotificationState.getEntityType()values- a map of fields to values that need to be set. This is typically in the form used by methods such asCustomizedChangeSummaryRepository.updateVals(String, List, List, String, Map, boolean).- Returns:
- the newly constructed instance
-