Modifier and Type | Field and Description |
---|---|
protected javax.persistence.EntityManager |
em |
protected EntityConfiguration |
entityConfiguration |
Constructor and Description |
---|
PageDaoImpl() |
Modifier and Type | Method and Description |
---|---|
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> |
findPageByURI(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
|
List<Page> |
readOnlineAndIncludedPages(int limit,
int offset,
String sortBy)
Retrieve a subset of all online and site map included Pages
|
Page |
readPageById(Long id) |
List<PageField> |
readPageFieldsByPageId(Long pageId) |
PageTemplate |
readPageTemplateById(Long id) |
PageTemplate |
savePageTemplate(PageTemplate template)
Saves the given
PageTemplate |
Page |
updatePage(Page page) |
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
public Page readPageById(Long id)
readPageById
in interface PageDao
public List<PageField> readPageFieldsByPageId(Long pageId)
readPageFieldsByPageId
in interface PageDao
public PageTemplate readPageTemplateById(Long id)
readPageTemplateById
in interface PageDao
public PageTemplate savePageTemplate(PageTemplate template)
PageDao
PageTemplate
savePageTemplate
in interface PageDao
template
- the PageTemplate
to savePageTemplate
public Page updatePage(Page page)
updatePage
in interface PageDao
public List<Page> findPageByURI(String uri)
findPageByURI
in interface PageDao
public List<Page> findPageByURI(Locale fullLocale, Locale languageOnlyLocale, String uri)
findPageByURI
in interface PageDao
public List<Page> readAllPages()
PageDao
readAllPages
in interface PageDao
public List<Page> readOnlineAndIncludedPages(int limit, int offset, String sortBy)
PageDao
readOnlineAndIncludedPages
in interface PageDao
limit
- the maximum number of resultsoffset
- the starting point in the record setsortBy
- the column to sort bypublic List<PageTemplate> readAllPageTemplates()
PageDao
readAllPageTemplates
in interface PageDao
PageTemplate
s configured in the systempublic List<Page> findPageByURI(Locale locale, String uri)
findPageByURI
in interface PageDao
public void detachPage(Page page)
detachPage
in interface PageDao
Copyright © 2017. All rights reserved.