Interface PageDao
- All Known Implementing Classes:
PageDaoImpl
public interface PageDao
Created by bpolster.
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddetachPage(Page page) findPageByURI(String uri) findPageByURI(org.broadleafcommerce.common.locale.domain.Locale locale, String uri) findPageByURI(org.broadleafcommerce.common.locale.domain.Locale fullLocale, org.broadleafcommerce.common.locale.domain.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 ofreadOnlineAndIncludedPageSiteMapEntries(int limit, String lastFullUrl, Long lastId) Retrieve a keyset-paginated list of lightweight DTOs for sitemap generation.readPageById(Long id) readPageFieldsByPageId(Long pageId) savePageTemplate(PageTemplate template) Saves the givenPageTemplatevoidsetCurrentDateResolution(Long currentDateResolution) updatePage(Page page)
-
Method Details
-
readPageById
-
readPageFieldsByPageId
-
readPageTemplateById
-
savePageTemplate
Saves the givenPageTemplate- Parameters:
template- thePageTemplateto 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
-
readOnlineAndIncludedPageSiteMapEntries
@Nonnull List<SiteMapPageDTO> readOnlineAndIncludedPageSiteMapEntries(@Nonnull int limit, @Nullable String lastFullUrl, @Nullable Long lastId) Retrieve a keyset-paginated list of lightweight DTOs for sitemap generation.- Parameters:
limit- the maximum number of resultslastFullUrl- the fullUrl of the last page from the previous fetch, or null for the first fetchlastId- the id of the last page from the previous fetch, or null for the first fetch- Returns:
- a list of SiteMapPageDTO representing the online and included pages
-
readAllPageTemplates
List<PageTemplate> readAllPageTemplates()Returns all page templates, regardless of any sandbox they are apart of- Returns:
- all
PageTemplates 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
-