Class JpaCustomizedApplicationRepository<D extends JpaTenantApplication>

java.lang.Object
com.broadleafcommerce.tenant.provider.jpa.repository.JpaCustomizedApplicationRepository<D>

public class JpaCustomizedApplicationRepository<D extends JpaTenantApplication> extends Object
Fragment repository for handling specialized persistence behavior for applications
Author:
Jeff Fischer
  • Constructor Summary

    Constructors
    Constructor
    Description
    JpaCustomizedApplicationRepository(JpaCatalogRepository<? super JpaTenantCatalog> catalogRepository, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.common.messaging.notification.NotificationStateService notificationStateService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    buildApplicableIsolatedImplicitCatalogs(com.broadleafcommerce.data.tracking.core.Trackable application, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Establish implicit catalogs for any unset application catalog refs
    protected void
    Send a message covering the changed catalog state via the PersistenceProducer channel.
    com.broadleafcommerce.data.tracking.core.Trackable
    save(com.broadleafcommerce.data.tracking.core.Trackable application, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    void
    setNotificationManager(com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JpaCustomizedApplicationRepository

      public JpaCustomizedApplicationRepository(JpaCatalogRepository<? super JpaTenantCatalog> catalogRepository, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.common.messaging.notification.NotificationStateService notificationStateService)
  • Method Details

    • setNotificationManager

      @Autowired public void setNotificationManager(@Nullable com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager)
    • save

      public com.broadleafcommerce.data.tracking.core.Trackable save(com.broadleafcommerce.data.tracking.core.Trackable application, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • buildApplicableIsolatedImplicitCatalogs

      protected void buildApplicableIsolatedImplicitCatalogs(com.broadleafcommerce.data.tracking.core.Trackable application, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Establish implicit catalogs for any unset application catalog refs

      When ApplicationConfigurationProperties.isAllowVendorCatalogInApplicationIsolatedCatalogs() is true, the isolated implicit catalog mau be from a vendor catalog.

      Parameters:
      application - The application instance to check
      contextInfo - The request context
      See Also:
    • notify

      protected void notify(JpaTenantCatalog catalog)
      Send a message covering the changed catalog state via the PersistenceProducer channel.
      Parameters:
      catalog - The changed catalog instance