org.broadleafcommerce.cms.page.dao
Class PageDaoImpl
java.lang.Object
org.broadleafcommerce.cms.page.dao.PageDaoImpl
- All Implemented Interfaces:
- PageDao
@Repository(value="blPageDao")
public class PageDaoImpl
- extends Object
- implements PageDao
Created by bpolster.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
em
protected javax.persistence.EntityManager em
entityConfiguration
protected EntityConfiguration entityConfiguration
PageDaoImpl
public PageDaoImpl()
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.