| Modifier and Type | Field and Description | 
|---|---|
| protected Date | cachedDate | 
| protected Long | currentDateResolution | 
| protected javax.persistence.EntityManager | em | 
| protected EntityConfiguration | entityConfiguration | 
| Constructor and Description | 
|---|
| PageDaoImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | addActiveDateRestrictions(javax.persistence.criteria.CriteriaBuilder builder,
                         javax.persistence.criteria.Root pageRoot,
                         List<javax.persistence.criteria.Predicate> restrictions,
                         Date afterStartDate,
                         Date beforeEndDate) | 
| protected void | addOfflineRestriction(javax.persistence.criteria.CriteriaBuilder builder,
                     javax.persistence.criteria.Root pageRoot,
                     List<javax.persistence.criteria.Predicate> restrictions) | 
| Page | addPage(Page clonedPage) | 
| void | delete(Page page) | 
| void | detachPage(Page page) | 
| protected List<Page> | filterInactive(List<Page> pages) | 
| List<Page> | findPageByURI(Locale fullLocale,
             Locale languageOnlyLocale,
             String uri) | 
| List<Page> | findPageByURI(Locale locale,
             String uri) | 
| List<Page> | findPageByURI(String uri) | 
| List<Page> | findPageByURIAndActiveDate(String uri,
                          Date activeDate)Returns pages that match the given URI and are within 1 day of the active date (potentially cached). | 
| Long | getCurrentDateResolution() | 
| protected List<Page> | getResultForQueryAndCache(javax.persistence.criteria.CriteriaQuery<Page> criteriaQuery) | 
| protected boolean | isActiveNow(Page page) | 
| 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 | 
| void | setCurrentDateResolution(Long currentDateResolution) | 
| Page | updatePage(Page page) | 
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
protected Long currentDateResolution
protected Date cachedDate
public Page readPageById(Long id)
readPageById in interface PageDaopublic List<PageField> readPageFieldsByPageId(Long pageId)
readPageFieldsByPageId in interface PageDaopublic PageTemplate readPageTemplateById(Long id)
readPageTemplateById in interface PageDaopublic PageTemplate savePageTemplate(PageTemplate template)
PageDaoPageTemplatesavePageTemplate in interface PageDaotemplate - the PageTemplate to savePageTemplatepublic Page updatePage(Page page)
updatePage in interface PageDaopublic List<Page> findPageByURI(String uri)
findPageByURI in interface PageDaoprotected void addActiveDateRestrictions(javax.persistence.criteria.CriteriaBuilder builder,
                                         javax.persistence.criteria.Root pageRoot,
                                         List<javax.persistence.criteria.Predicate> restrictions,
                                         Date afterStartDate,
                                         Date beforeEndDate)
protected void addOfflineRestriction(javax.persistence.criteria.CriteriaBuilder builder,
                                     javax.persistence.criteria.Root pageRoot,
                                     List<javax.persistence.criteria.Predicate> restrictions)
protected List<Page> getResultForQueryAndCache(javax.persistence.criteria.CriteriaQuery<Page> criteriaQuery)
public List<Page> findPageByURIAndActiveDate(String uri, Date activeDate)
PageDaofindPageByURIAndActiveDate in interface PageDaoprotected boolean isActiveNow(Page page)
public List<Page> findPageByURI(Locale fullLocale, Locale languageOnlyLocale, String uri)
findPageByURI in interface PageDaopublic List<Page> readAllPages()
PageDaoreadAllPages in interface PageDaopublic List<Page> readOnlineAndIncludedPages(int limit, int offset, String sortBy)
PageDaoreadOnlineAndIncludedPages in interface PageDaolimit - the maximum number of resultsoffset - the starting point in the record setsortBy - the column to sort bypublic List<PageTemplate> readAllPageTemplates()
PageDaoreadAllPageTemplates in interface PageDaoPageTemplates configured in the systempublic List<Page> findPageByURI(Locale locale, String uri)
findPageByURI in interface PageDaopublic void detachPage(Page page)
detachPage in interface PageDaopublic Long getCurrentDateResolution()
getCurrentDateResolution in interface PageDaopublic void setCurrentDateResolution(Long currentDateResolution)
setCurrentDateResolution in interface PageDaoCopyright © 2020. All rights reserved.