org.broadleafcommerce.cms.page.dao
Class PageDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.cms.page.dao.PageDaoImpl
All Implemented Interfaces:
PageDao

@Repository(value="blPageDao")
public class PageDaoImpl
extends Object
implements PageDao

Created by bpolster.


Field Summary
protected  javax.persistence.EntityManager em
           
protected  EntityConfiguration entityConfiguration
           
 
Constructor Summary
PageDaoImpl()
           
 
Method Summary
 Page addPage(Page clonedPage)
           
 void delete(Page page)
           
 void detachPage(Page page)
           
 List<Page> findPageByURI(Locale fullLocale, Locale languageOnlyLocale, String uri)
           
 List<Page> findPageByURI(Locale locale, String uri)
           
 List<Page> readAllPages()
          Returns all pages, regardless of any sandbox they are apart of
 List<PageTemplate> readAllPageTemplates()
          Returns all page templates, regardless of any sandbox they are apart of
 Page readPageById(Long id)
           
 PageTemplate readPageTemplateById(Long id)
           
 PageTemplate savePageTemplate(PageTemplate template)
          Saves the given PageTemplate
 Page updatePage(Page page)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

em

protected javax.persistence.EntityManager em

entityConfiguration

protected EntityConfiguration entityConfiguration
Constructor Detail

PageDaoImpl

public PageDaoImpl()
Method Detail

readPageById

public Page readPageById(Long id)
Specified by:
readPageById in interface PageDao

readPageTemplateById

public PageTemplate readPageTemplateById(Long id)
Specified by:
readPageTemplateById in interface PageDao

savePageTemplate

public PageTemplate savePageTemplate(PageTemplate template)
Description copied from interface: PageDao
Saves the given PageTemplate

Specified by:
savePageTemplate in interface PageDao
Parameters:
template - the PageTemplate to save
Returns:
the database-saved PageTemplate

updatePage

public Page updatePage(Page page)
Specified by:
updatePage in interface PageDao

delete

public void delete(Page page)
Specified by:
delete in interface PageDao

addPage

public Page addPage(Page clonedPage)
Specified by:
addPage in interface PageDao

findPageByURI

public List<Page> findPageByURI(Locale fullLocale,
                                Locale languageOnlyLocale,
                                String uri)
Specified by:
findPageByURI in interface PageDao

readAllPages

public List<Page> readAllPages()
Description copied from interface: PageDao
Returns all pages, regardless of any sandbox they are apart of

Specified by:
readAllPages in interface PageDao
Returns:
all Pages configured in the system

readAllPageTemplates

public List<PageTemplate> readAllPageTemplates()
Description copied from interface: PageDao
Returns all page templates, regardless of any sandbox they are apart of

Specified by:
readAllPageTemplates in interface PageDao
Returns:
all PageTemplates configured in the system

findPageByURI

public List<Page> findPageByURI(Locale locale,
                                String uri)
Specified by:
findPageByURI in interface PageDao

detachPage

public void detachPage(Page page)
Specified by:
detachPage in interface PageDao


Copyright © 2013. All Rights Reserved.