Interface PageDao

All Known Implementing Classes:
PageDaoImpl

public interface PageDao
Created by bpolster.
  • Method Details

    • readPageById

      Page readPageById(Long id)
    • readPageFieldsByPageId

      List<PageField> readPageFieldsByPageId(Long pageId)
    • 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
    • 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 results
      lastFullUrl - the fullUrl of the last page from the previous fetch, or null for the first fetch
      lastId - 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

      List<Page> findPageByURI(String uri)
    • findPageByURI

      List<Page> findPageByURI(org.broadleafcommerce.common.locale.domain.Locale fullLocale, org.broadleafcommerce.common.locale.domain.Locale languageOnlyLocale, String uri)
    • findPageByURI

      List<Page> findPageByURI(org.broadleafcommerce.common.locale.domain.Locale locale, String uri)
    • findPageByURIAndActiveDate

      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). This will only cache for 1 day.
      Parameters:
      uri -
      activeDate -
      Returns:
    • detachPage

      void detachPage(Page page)
    • getCurrentDateResolution

      Long getCurrentDateResolution()
    • setCurrentDateResolution

      void setCurrentDateResolution(Long currentDateResolution)