@Service(value="blSiteService") public class SiteServiceImpl extends Object implements SiteService
Modifier and Type | Field and Description |
---|---|
protected SiteServiceExtensionManager |
extensionManager |
protected SiteDao |
siteDao |
protected StreamingTransactionCapableUtil |
transUtil |
Constructor and Description |
---|
SiteServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Catalog |
createCatalog()
Creates an instance of
Catalog . |
Site |
createSite()
Creates an instance of Site.
|
SiteCatalogXref |
createSiteCatalog()
Creates an instance of
SiteCatalogXref . |
List<Site> |
findAllActiveSites()
Deprecated.
|
List<Catalog> |
findAllCatalogs()
Finds all catalogs
|
List<Site> |
findAllNonPersistentActiveSites()
Returns all of the active sites in the system and does not attach them to a Hibernate session
|
List<Site> |
findAllPersistentActiveSites()
Returns all of the active sites in the system that are still attached to a Hibernate session
|
protected List<Site> |
findAllSites(boolean persistentResult) |
Catalog |
findCatalogById(Long id)
Finds a catalog by its id.
|
Catalog |
findCatalogByName(String name) |
protected Site |
getNonPersistentSite(Site persistentSite) |
Site |
retrieveDefaultSite()
Deprecated.
|
protected Site |
retrieveDefaultSite(boolean persistentResult) |
Site |
retrieveNonPersistentDefaultSite()
Retrieves the non-persistent version of the default site
|
Site |
retrieveNonPersistentSiteByDomainName(String domainName)
Finds a site by the given domain name and returns a non-persistent version
|
Site |
retrieveNonPersistentSiteById(Long id)
Retrieves a site by its primary key disconnected from a Hibernate session
|
Site |
retrieveNonPersistentSiteByIdentifer(String identifier)
Finds a site by its
Site.getSiteIdentifierValue() and return an entity that is not attached to the
Hibernate session |
Site |
retrievePersistentDefaultSite()
Retrieves the default site attached to a Hibernate session
|
Site |
retrievePersistentSiteByDomainName(String domainName)
Finds a site by the domain name which is still attached to a Hibernate session
|
Site |
retrievePersistentSiteById(Long id)
Retrieves a site by its primary key whose return value is still attached to a Hibernate session
|
Site |
retrievePersistentSiteByIdentifier(String identifier)
Finds a site by its
Site.getSiteIdentifierValue() |
Site |
retrieveSiteByDomainName(String domainName)
Deprecated.
|
Site |
retrieveSiteByDomainName(String domainName,
boolean persistentResult) |
Site |
retrieveSiteById(Long id)
Deprecated.
|
protected Site |
retrieveSiteById(Long id,
boolean persistentResult) |
protected Site |
retrieveSiteByIdentifier(String identifier,
boolean persistentResult) |
Catalog |
save(Catalog catalog)
Saves the given catalog and returns the merged instance
|
Site |
save(Site site)
Deprecated.
|
Site |
saveAndReturnNonPersisted(Site site)
Save updates to a site and returns a non-persistent instance
|
Site |
saveAndReturnPersisted(Site site)
Save updates to a site and return the persistent instance attached to a Hibernate session
|
protected boolean |
stripSubdomain(String subDomain)
Checks whether the provided subdomain is one to be stripped/removed from the full domain name
|
protected StreamingTransactionCapableUtil transUtil
protected SiteDao siteDao
protected SiteServiceExtensionManager extensionManager
public Site createSite()
SiteService
SiteDao.create()
.createSite
in interface SiteService
@Deprecated public Site retrieveSiteById(Long id)
SiteService
retrieveSiteById
in interface SiteService
public Site retrieveNonPersistentSiteById(Long id)
SiteService
retrieveNonPersistentSiteById
in interface SiteService
public Site retrievePersistentSiteById(Long id)
SiteService
retrievePersistentSiteById
in interface SiteService
public Site retrieveNonPersistentSiteByIdentifer(String identifier)
SiteService
Site.getSiteIdentifierValue()
and return an entity that is not attached to the
Hibernate sessionretrieveNonPersistentSiteByIdentifer
in interface SiteService
identifier
- the Site.getSiteIdentifierValue()
to look forpublic Site retrievePersistentSiteByIdentifier(String identifier)
SiteService
Site.getSiteIdentifierValue()
retrievePersistentSiteByIdentifier
in interface SiteService
identifier
- the Site.getSiteIdentifierValue()
to look forprotected Site retrieveSiteByIdentifier(String identifier, boolean persistentResult)
@Deprecated public Site retrieveSiteByDomainName(String domainName)
SiteService
retrieveSiteByDomainName
in interface SiteService
public Site retrieveNonPersistentSiteByDomainName(String domainName)
SiteService
retrieveNonPersistentSiteByDomainName
in interface SiteService
public Site retrievePersistentSiteByDomainName(String domainName)
SiteService
retrievePersistentSiteByDomainName
in interface SiteService
public Site retrieveSiteByDomainName(String domainName, boolean persistentResult)
protected boolean stripSubdomain(String subDomain)
subDomain
- @Deprecated @Transactional(value="blTransactionManager") public Site save(Site site)
SiteService
save
in interface SiteService
@Transactional(value="blTransactionManager") public Site saveAndReturnNonPersisted(Site site)
SiteService
saveAndReturnNonPersisted
in interface SiteService
@Transactional(value="blTransactionManager") public Site saveAndReturnPersisted(Site site)
SiteService
saveAndReturnPersisted
in interface SiteService
public Catalog findCatalogById(Long id)
SiteService
findCatalogById
in interface SiteService
public Catalog findCatalogByName(String name)
findCatalogByName
in interface SiteService
@Deprecated public Site retrieveDefaultSite()
SiteService
retrieveDefaultSite
in interface SiteService
SiteDaoImpl}
public Site retrieveNonPersistentDefaultSite()
SiteService
retrieveNonPersistentDefaultSite
in interface SiteService
public Site retrievePersistentDefaultSite()
SiteService
retrievePersistentDefaultSite
in interface SiteService
protected Site retrieveDefaultSite(boolean persistentResult)
@Deprecated public List<Site> findAllActiveSites()
findAllActiveSites
in interface SiteService
public List<Site> findAllNonPersistentActiveSites()
SiteService
findAllNonPersistentActiveSites
in interface SiteService
public List<Site> findAllPersistentActiveSites()
SiteService
findAllPersistentActiveSites
in interface SiteService
public Catalog createCatalog()
SiteService
Catalog
. Default implementation delegates to SiteDao.createCatalog()
.createCatalog
in interface SiteService
public SiteCatalogXref createSiteCatalog()
SiteService
SiteCatalogXref
. Default implementation delegates to SiteDao.createSiteCatalog()
createSiteCatalog
in interface SiteService
@Transactional(value="blTransactionManager") public Catalog save(Catalog catalog)
SiteService
save
in interface SiteService
public List<Catalog> findAllCatalogs()
SiteService
findAllCatalogs
in interface SiteService
Copyright © 2022. All rights reserved.