Class DefaultApplicationCatalogGenerationService<P extends Application>
java.lang.Object
com.broadleafcommerce.tenant.service.DefaultApplicationCatalogGenerationService<P>
- All Implemented Interfaces:
ApplicationCatalogGenerationService<P>
public class DefaultApplicationCatalogGenerationService<P extends Application>
extends Object
implements ApplicationCatalogGenerationService<P>
-
Constructor Summary
ConstructorDescriptionDefaultApplicationCatalogGenerationService
(ApplicationService<P> service, CatalogService<Catalog> catalogService, ApplicationCatalogService applicationCatalogService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<CatalogRef>
convertCatalogToCatalogRef
(@NonNull List<Catalog> catalogs) protected ApplicationCatalogRef
createApplicationCatalogRef
(Catalog masterCatalog, Catalog implicitCatalog) createApplicationSearchGroupCatalog
(P application, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Creates a catalog ofDefaultCatalogType.SEARCH_GROUP
type for this application.protected Catalog
generateSearchGroupCatalog
(Application application, boolean isImplicit, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected ApplicationCatalogService
protected CatalogService<Catalog>
protected ApplicationService<P>
protected com.broadleafcommerce.common.extension.TypeFactory
-
Constructor Details
-
DefaultApplicationCatalogGenerationService
public DefaultApplicationCatalogGenerationService(ApplicationService<P> service, CatalogService<Catalog> catalogService, ApplicationCatalogService applicationCatalogService, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
createApplicationSearchGroupCatalog
public P createApplicationSearchGroupCatalog(P application, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:ApplicationCatalogGenerationService
Creates a catalog ofDefaultCatalogType.SEARCH_GROUP
type for this application.- Specified by:
createApplicationSearchGroupCatalog
in interfaceApplicationCatalogGenerationService<P extends Application>
- Parameters:
application
- the application for which to create a search group catalogcontextInfo
- the contextInfo for the request- Returns:
- the application after the creation of the search group catalog
-
generateSearchGroupCatalog
protected Catalog generateSearchGroupCatalog(Application application, boolean isImplicit, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
convertCatalogToCatalogRef
-
createApplicationCatalogRef
protected ApplicationCatalogRef createApplicationCatalogRef(Catalog masterCatalog, Catalog implicitCatalog) -
getService
-
getCatalogService
-
getApplicationCatalogService
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-