Class SiteServiceImpl
java.lang.Object
org.broadleafcommerce.common.site.service.SiteServiceImpl
- All Implemented Interfaces:
SiteService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SiteServiceExtensionManagerprotected SiteDaoprotected StreamingTransactionCapableUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an instance ofCatalog.Creates an instance of Site.Creates an instance ofSiteCatalogXref.Deprecated.Finds all catalogsReturns all of the active sites in the system and does not attach them to a Hibernate sessionReturns all of the active sites in the system that are still attached to a Hibernate sessionfindAllSites(boolean persistentResult) findCatalogById(Long id) Finds a catalog by its id.findCatalogByName(String name) protected SitegetNonPersistentSite(Site persistentSite) Deprecated.protected SiteretrieveDefaultSite(boolean persistentResult) Retrieves the non-persistent version of the default siteretrieveNonPersistentSiteByDomainName(String domainName) Finds a site by the given domain name and returns a non-persistent versionRetrieves a site by its primary key disconnected from a Hibernate sessionretrieveNonPersistentSiteByIdentifer(String identifier) Finds a site by itsSite.getSiteIdentifierValue()and return an entity that is not attached to the Hibernate sessionRetrieves the default site attached to a Hibernate sessionretrievePersistentSiteByDomainName(String domainName) Finds a site by the domain name which is still attached to a Hibernate sessionRetrieves a site by its primary key whose return value is still attached to a Hibernate sessionretrievePersistentSiteByIdentifier(String identifier) Finds a site by itsSite.getSiteIdentifierValue()retrieveSiteByDomainName(String domainName) Deprecated.retrieveSiteByDomainName(String domainName, boolean persistentResult) retrieveSiteById(Long id) Deprecated.protected SiteretrieveSiteById(Long id, boolean persistentResult) protected SiteretrieveSiteByIdentifier(String identifier, boolean persistentResult) Saves the given catalog and returns the merged instanceDeprecated.Save updates to a site and returns a non-persistent instancesaveAndReturnPersisted(Site site) Save updates to a site and return the persistent instance attached to a Hibernate sessionprotected booleanstripSubdomain(String subDomain) Checks whether the provided subdomain is one to be stripped/removed from the full domain name
-
Field Details
-
transUtil
-
siteDao
-
extensionManager
-
-
Constructor Details
-
SiteServiceImpl
public SiteServiceImpl()
-
-
Method Details
-
createSite
Description copied from interface:SiteServiceCreates an instance of Site. Default implementation delegates toSiteDao.create().- Specified by:
createSitein interfaceSiteService- Returns:
-
retrieveSiteById
Deprecated.Description copied from interface:SiteServiceFind a site by its id and returns a non-persistent version- Specified by:
retrieveSiteByIdin interfaceSiteService- Returns:
-
retrieveNonPersistentSiteById
Description copied from interface:SiteServiceRetrieves a site by its primary key disconnected from a Hibernate session- Specified by:
retrieveNonPersistentSiteByIdin interfaceSiteService
-
retrievePersistentSiteById
Description copied from interface:SiteServiceRetrieves a site by its primary key whose return value is still attached to a Hibernate session- Specified by:
retrievePersistentSiteByIdin interfaceSiteService
-
retrieveSiteById
-
retrieveNonPersistentSiteByIdentifer
Description copied from interface:SiteServiceFinds a site by itsSite.getSiteIdentifierValue()and return an entity that is not attached to the Hibernate session- Specified by:
retrieveNonPersistentSiteByIdentiferin interfaceSiteService- Parameters:
identifier- theSite.getSiteIdentifierValue()to look for
-
retrievePersistentSiteByIdentifier
Description copied from interface:SiteServiceFinds a site by itsSite.getSiteIdentifierValue()- Specified by:
retrievePersistentSiteByIdentifierin interfaceSiteService- Parameters:
identifier- theSite.getSiteIdentifierValue()to look for
-
retrieveSiteByIdentifier
-
retrieveSiteByDomainName
Deprecated.Description copied from interface:SiteServiceFind a site by its domain and returns a non-persistent version- Specified by:
retrieveSiteByDomainNamein interfaceSiteService- Returns:
-
retrieveNonPersistentSiteByDomainName
Description copied from interface:SiteServiceFinds a site by the given domain name and returns a non-persistent version- Specified by:
retrieveNonPersistentSiteByDomainNamein interfaceSiteService
-
retrievePersistentSiteByDomainName
Description copied from interface:SiteServiceFinds a site by the domain name which is still attached to a Hibernate session- Specified by:
retrievePersistentSiteByDomainNamein interfaceSiteService- Returns:
-
retrieveSiteByDomainName
-
stripSubdomain
Checks whether the provided subdomain is one to be stripped/removed from the full domain name- Parameters:
subDomain-- Returns:
- boolean if subdomain is a candiate to be removed - true indicates it is eligible to be removed
-
save
Deprecated.Description copied from interface:SiteServiceSave updates to a site and returns a cloned instance- Specified by:
savein interfaceSiteService- Returns:
-
saveAndReturnNonPersisted
Description copied from interface:SiteServiceSave updates to a site and returns a non-persistent instance- Specified by:
saveAndReturnNonPersistedin interfaceSiteService- Returns:
-
saveAndReturnPersisted
Description copied from interface:SiteServiceSave updates to a site and return the persistent instance attached to a Hibernate session- Specified by:
saveAndReturnPersistedin interfaceSiteService- Returns:
-
findCatalogById
Description copied from interface:SiteServiceFinds a catalog by its id.- Specified by:
findCatalogByIdin interfaceSiteService- Returns:
- the catalog
-
findCatalogByName
- Specified by:
findCatalogByNamein interfaceSiteService
-
retrieveDefaultSite
Deprecated.Description copied from interface:SiteServiceReturns a clone of the default site.- Specified by:
retrieveDefaultSitein interfaceSiteService- Returns:
-
retrieveNonPersistentDefaultSite
Description copied from interface:SiteServiceRetrieves the non-persistent version of the default site- Specified by:
retrieveNonPersistentDefaultSitein interfaceSiteService
-
retrievePersistentDefaultSite
Description copied from interface:SiteServiceRetrieves the default site attached to a Hibernate session- Specified by:
retrievePersistentDefaultSitein interfaceSiteService
-
retrieveDefaultSite
-
findAllActiveSites
Deprecated.- Specified by:
findAllActiveSitesin interfaceSiteService- Returns:
- a List of non-persistent versions of all sites in the system
-
findAllNonPersistentActiveSites
Description copied from interface:SiteServiceReturns all of the active sites in the system and does not attach them to a Hibernate session- Specified by:
findAllNonPersistentActiveSitesin interfaceSiteService
-
findAllPersistentActiveSites
Description copied from interface:SiteServiceReturns all of the active sites in the system that are still attached to a Hibernate session- Specified by:
findAllPersistentActiveSitesin interfaceSiteService
-
findAllSites
-
getNonPersistentSite
-
createCatalog
Description copied from interface:SiteServiceCreates an instance ofCatalog. Default implementation delegates toSiteDao.createCatalog().- Specified by:
createCatalogin interfaceSiteService- Returns:
- the catalog
-
createSiteCatalog
Description copied from interface:SiteServiceCreates an instance ofSiteCatalogXref. Default implementation delegates toSiteDao.createSiteCatalog()- Specified by:
createSiteCatalogin interfaceSiteService- Returns:
- the site catalog
-
save
Description copied from interface:SiteServiceSaves the given catalog and returns the merged instance- Specified by:
savein interfaceSiteService- Returns:
-
findAllCatalogs
Description copied from interface:SiteServiceFinds all catalogs- Specified by:
findAllCatalogsin interfaceSiteService- Returns:
- the list of catalogs
-