@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 |
|---|---|
Site |
createSite()
Creates an instance of Site.
|
List<Site> |
findAllActiveSites()
Deprecated.
|
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.
|
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 |
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 |
retrieveSiteByDomainName(String domainName)
Deprecated.
|
Site |
retrieveSiteByDomainName(String domainName,
boolean persistentResult) |
Site |
retrieveSiteById(Long id)
Deprecated.
|
protected Site |
retrieveSiteById(Long id,
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 StreamingTransactionCapableUtil transUtil
protected SiteDao siteDao
protected SiteServiceExtensionManager extensionManager
public Site createSite()
SiteServiceSiteDao.create().createSite in interface SiteService@Deprecated public Site retrieveSiteById(Long id)
SiteServiceretrieveSiteById in interface SiteServicepublic Site retrieveNonPersistentSiteById(Long id)
SiteServiceretrieveNonPersistentSiteById in interface SiteServicepublic Site retrievePersistentSiteById(Long id)
SiteServiceretrievePersistentSiteById in interface SiteService@Deprecated public Site retrieveSiteByDomainName(String domainName)
SiteServiceretrieveSiteByDomainName in interface SiteServicepublic Site retrieveNonPersistentSiteByDomainName(String domainName)
SiteServiceretrieveNonPersistentSiteByDomainName in interface SiteServicepublic Site retrievePersistentSiteByDomainName(String domainName)
SiteServiceretrievePersistentSiteByDomainName in interface SiteServicepublic Site retrieveSiteByDomainName(String domainName, boolean persistentResult)
@Deprecated @Transactional(value="blTransactionManager") public Site save(Site site)
SiteServicesave in interface SiteService@Transactional(value="blTransactionManager") public Site saveAndReturnNonPersisted(Site site)
SiteServicesaveAndReturnNonPersisted in interface SiteService@Transactional(value="blTransactionManager") public Site saveAndReturnPersisted(Site site)
SiteServicesaveAndReturnPersisted in interface SiteServicepublic Catalog findCatalogById(Long id)
SiteServicefindCatalogById in interface SiteService@Deprecated public Site retrieveDefaultSite()
SiteServiceretrieveDefaultSite in interface SiteServiceSiteDaoImpl}public Site retrieveNonPersistentDefaultSite()
SiteServiceretrieveNonPersistentDefaultSite in interface SiteServicepublic Site retrievePersistentDefaultSite()
SiteServiceretrievePersistentDefaultSite in interface SiteServiceprotected Site retrieveDefaultSite(boolean persistentResult)
@Deprecated public List<Site> findAllActiveSites()
findAllActiveSites in interface SiteServicepublic List<Site> findAllNonPersistentActiveSites()
SiteServicefindAllNonPersistentActiveSites in interface SiteServicepublic List<Site> findAllPersistentActiveSites()
SiteServicefindAllPersistentActiveSites in interface SiteService@Transactional(value="blTransactionManager") public Catalog save(Catalog catalog)
SiteServicesave in interface SiteServiceCopyright © 2014. All rights reserved.