Class JpaNotificationStateSupport

java.lang.Object
com.broadleafcommerce.sandbox.provider.jpa.repository.support.JpaNotificationStateSupport

public final class JpaNotificationStateSupport extends Object
Contains common functionality useful for creating/initializing JpaNotificationState in flows specific to SandboxServices' custom repository method implementations.
  • 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 new JpaNotificationState instance with the specified details.
      Parameters:
      constructor - factory method to construct the new instance
      containerId - the value for JpaNotificationState.getContainer()
      name - the value for JpaNotificationState.getName()
      entityType - the value for JpaNotificationState.getEntityType()
      values - a map of fields to values that need to be set. This is typically in the form used by methods such as CustomizedChangeSummaryRepository.updateVals(String, List, List, String, Map, boolean).
      Returns:
      the newly constructed instance