org.broadleafcommerce.cms.page.dao
Interface PageDao

All Known Implementing Classes:
PageDaoImpl

public interface PageDao

Created by bpolster.


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)
           
 

Method Detail

readPageById

Page readPageById(Long id)

readPageTemplateById

PageTemplate readPageTemplateById(Long id)

savePageTemplate

PageTemplate savePageTemplate(PageTemplate template)
Saves the given PageTemplate

Parameters:
template - the PageTemplate to save
Returns:
the database-saved PageTemplate

updatePage

Page updatePage(Page page)

delete

void delete(Page page)

addPage

Page addPage(Page clonedPage)

readAllPages

List<Page> readAllPages()
Returns all pages, regardless of any sandbox they are apart of

Returns:
all Pages configured in the system

readAllPageTemplates

List<PageTemplate> readAllPageTemplates()
Returns all page templates, regardless of any sandbox they are apart of

Returns:
all PageTemplates configured in the system

findPageByURI

List<Page> findPageByURI(Locale fullLocale,
                         Locale languageOnlyLocale,
                         String uri)

findPageByURI

List<Page> findPageByURI(Locale locale,
                         String uri)

detachPage

void detachPage(Page page)


Copyright © 2013. All Rights Reserved.