Interface PageDao
- All Known Implementing Classes:
PageDaoImpl
public interface PageDao
Created by bpolster.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
detachPage
(Page page) findPageByURI
(String uri) findPageByURI
(Locale locale, String uri) findPageByURI
(Locale fullLocale, Locale languageOnlyLocale, String uri) findPageByURIAndActiveDate
(String uri, Date activeDate) Returns pages that match the given URI and are within 1 day of the active date (potentially cached).Returns all pages, regardless of any sandbox they are apart ofReturns all page templates, regardless of any sandbox they are apart ofreadOnlineAndIncludedPages
(int limit, int offset, String sortBy) Retrieve a subset of all online and site map included PagesreadPageById
(Long id) readPageFieldsByPageId
(Long pageId) savePageTemplate
(PageTemplate template) Saves the givenPageTemplate
void
setCurrentDateResolution
(Long currentDateResolution) updatePage
(Page page)
-
Method Details
-
readPageById
-
readPageFieldsByPageId
-
readPageTemplateById
-
savePageTemplate
Saves the givenPageTemplate
- Parameters:
template
- thePageTemplate
to save- Returns:
- the database-saved
PageTemplate
-
updatePage
-
delete
-
addPage
-
readAllPages
Returns all pages, regardless of any sandbox they are apart of- Returns:
- all Pages configured in the system
-
readOnlineAndIncludedPages
@Nonnull List<Page> readOnlineAndIncludedPages(@Nonnull int limit, @Nonnull int offset, @Nonnull String sortBy) Retrieve a subset of all online and site map included Pages- Parameters:
limit
- the maximum number of resultsoffset
- the starting point in the record setsortBy
- the column to sort by- Returns:
-
readAllPageTemplates
List<PageTemplate> readAllPageTemplates()Returns all page templates, regardless of any sandbox they are apart of- Returns:
- all
PageTemplate
s configured in the system
-
findPageByURI
-
findPageByURI
-
findPageByURI
-
findPageByURIAndActiveDate
Returns pages that match the given URI and are within 1 day of the active date (potentially cached). This will only cache for 1 day.- Parameters:
uri
-activeDate
-- Returns:
-
detachPage
-
getCurrentDateResolution
Long getCurrentDateResolution() -
setCurrentDateResolution
-