Class SiteDaoImpl
java.lang.Object
org.broadleafcommerce.common.site.dao.SiteDaoImpl
- All Implemented Interfaces:
SiteDao
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.persistence.EntityManagerprotected EntityConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates an instance of Site based on the class matching the bean id of "org.broadleafcommerce.common.site.domain.Site"Creates a catalog usingEntityConfiguration.Creates a new instance ofSiteCatalogXrefusingEntityConfiguration.Finds a site by its id.Retrieves all catalogsretrieveCatalog(Long id) Finds a catalog by its id.retrieveCatalogByName(String name) Returns a default site.retrieveSiteByDomainOrDomainPrefix(String domain, String domainPrefix) Finds a site by its domain or domain prefix.retrieveSiteByIdentifier(String identifier) Finds a site by itsSite.getSiteIdentifierValue().retrieveSitesByPotentialIdentifiers(String... potentialIdentifiers) Persists the site changes.
-
Field Details
-
em
protected jakarta.persistence.EntityManager em -
entityConfiguration
-
-
Constructor Details
-
SiteDaoImpl
public SiteDaoImpl()
-
-
Method Details
-
create
Description copied from interface:SiteDaoCreates an instance of Site based on the class matching the bean id of "org.broadleafcommerce.common.site.domain.Site" -
retrieve
Description copied from interface:SiteDaoFinds a site by its id. -
retrieveCatalog
Description copied from interface:SiteDaoFinds a catalog by its id.- Specified by:
retrieveCatalogin interfaceSiteDao- Returns:
- the catalog
-
retrieveCatalogByName
- Specified by:
retrieveCatalogByNamein interfaceSiteDao
-
createCatalog
Description copied from interface:SiteDaoCreates a catalog usingEntityConfiguration.- Specified by:
createCatalogin interfaceSiteDao- Returns:
- the catalog
-
createSiteCatalog
Description copied from interface:SiteDaoCreates a new instance ofSiteCatalogXrefusingEntityConfiguration.- Specified by:
createSiteCatalogin interfaceSiteDao- Returns:
- the site catalog
-
readAllActiveSites
- Specified by:
readAllActiveSitesin interfaceSiteDao- Returns:
- a List of all sites in the system
-
retrieveSiteByDomainOrDomainPrefix
Description copied from interface:SiteDaoFinds a site by its domain or domain prefix.- Specified by:
retrieveSiteByDomainOrDomainPrefixin interfaceSiteDao- Returns:
-
retrieveSiteByIdentifier
Description copied from interface:SiteDaoFinds a site by itsSite.getSiteIdentifierValue().- Specified by:
retrieveSiteByIdentifierin interfaceSiteDao- Returns:
-
retrieveSitesByPotentialIdentifiers
-
save
Description copied from interface:SiteDaoPersists the site changes. -
retrieveDefaultSite
Description copied from interface:SiteDaoReturns a default site. This method returns null in the out of box implementation of Broadleaf. Extend for implementation specific behavior.- Specified by:
retrieveDefaultSitein interfaceSiteDao- Returns:
-
save
-
retrieveAllCatalogs
Description copied from interface:SiteDaoRetrieves all catalogs- Specified by:
retrieveAllCatalogsin interfaceSiteDao- Returns:
- the list of catalogs
-