Class DefaultComponentService

java.lang.Object
com.broadleafcommerce.metadata.core.service.DefaultComponentService
All Implemented Interfaces:
ComponentService

public class DefaultComponentService extends Object implements ComponentService
Author:
Nick Crum ncrum, Phillip Verheyden (phillipuniverse)
  • Field Details

  • Constructor Details

    • DefaultComponentService

      public DefaultComponentService(List<AugmentationProvider> augmentationProviders, com.broadleafcommerce.metadata.dsl.registry.ComponentRegistry<?> componentRegistry)
    • DefaultComponentService

      public DefaultComponentService(List<AugmentationProvider> augmentationProviders, com.broadleafcommerce.metadata.dsl.registry.ComponentRegistry<?> componentRegistry, boolean developmentMode)
  • Method Details

    • hasComponent

      public boolean hasComponent(String id)
      Specified by:
      hasComponent in interface ComponentService
    • findComponentById

      @Cacheable(cacheNames="metadataComponentCacheByComponentIdTenantIdApplicationId", keyGenerator="metadataAugmentationCacheKeyGenerator", condition="@cacheStateManager.isEnabled(#root.caches, #root.args)") public Optional<AugmentedContainer> findComponentById(String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Specified by:
      findComponentById in interface ComponentService
    • getComponent

      protected Optional<AugmentedContainer> getComponent(String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    • getAugmentationProviders

      protected List<AugmentationProvider> getAugmentationProviders()
    • getComponentRegistry

      protected com.broadleafcommerce.metadata.dsl.registry.ComponentRegistry<?> getComponentRegistry()
    • getRouteComponentService

      protected RouteComponentService<RouteComponent> getRouteComponentService()
    • setRouteComponentService

      @Autowired public void setRouteComponentService(RouteComponentService<RouteComponent> routeComponentService)
    • getBusinessTypeService

      protected BusinessTypeComponentService getBusinessTypeService()
    • setBusinessTypeService

      @Autowired public void setBusinessTypeService(BusinessTypeComponentService businessTypeService)
    • getViewFilterRegistry

      protected com.broadleafcommerce.metadata.dsl.registry.ViewFilterRegistry<?> getViewFilterRegistry()
    • setViewFilterRegistry

      @Autowired public void setViewFilterRegistry(com.broadleafcommerce.metadata.dsl.registry.ViewFilterRegistry<?> viewFilterRegistry)