@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()
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 SiteServicepublic Site retrieveNonPersistentSiteByIdentifer(String identifier)
SiteServiceSite.getSiteIdentifierValue() and return an entity that is not attached to the
Hibernate sessionretrieveNonPersistentSiteByIdentifer in interface SiteServiceidentifier - the Site.getSiteIdentifierValue() to look forpublic Site retrievePersistentSiteByIdentifier(String identifier)
SiteServiceSite.getSiteIdentifierValue()retrievePersistentSiteByIdentifier in interface SiteServiceidentifier - the Site.getSiteIdentifierValue() to look forprotected Site retrieveSiteByIdentifier(String identifier, boolean persistentResult)
@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)
protected boolean stripSubdomain(String subDomain)
subDomain - @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 SiteServicepublic Catalog findCatalogByName(String name)
findCatalogByName 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 SiteServicepublic Catalog createCatalog()
SiteServiceCatalog. Default implementation delegates to SiteDao.createCatalog().createCatalog in interface SiteServicepublic SiteCatalogXref createSiteCatalog()
SiteServiceSiteCatalogXref. Default implementation delegates to SiteDao.createSiteCatalog()createSiteCatalog in interface SiteService@Transactional(value="blTransactionManager") public Catalog save(Catalog catalog)
SiteServicesave in interface SiteServicepublic List<Catalog> findAllCatalogs()
SiteServicefindAllCatalogs in interface SiteServiceCopyright © 2019. All rights reserved.