Class AdvancedPageDaoImpl

java.lang.Object
com.broadleafcommerce.advancedcms.dao.AdvancedPageDaoImpl
All Implemented Interfaces:
AdvancedPageDao

@Repository("blAdvancedPageDao") public class AdvancedPageDaoImpl extends Object implements AdvancedPageDao
Repository for Page objects that implement the AdvancedPage functionality.
Author:
Andre Azzolini (apazzolini)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected jakarta.persistence.EntityManager
     
    protected org.broadleafcommerce.common.sandbox.SandBoxHelper
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.broadleafcommerce.cms.page.domain.Page>
    readAllPagesByPageType(com.broadleafcommerce.theme.domain.page.PageType pageType, int maxResults)
    Returns a list of all Pages that match the given PageType, limited by the number of results specified by the maxResults parameter.
    org.broadleafcommerce.cms.page.domain.Page
    readMostRecentPageByPageType(com.broadleafcommerce.theme.domain.page.PageType pageType)
    Returns the Page that is of the given PageType that was most recently updated.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • em

      protected jakarta.persistence.EntityManager em
    • sandBoxHelper

      protected org.broadleafcommerce.common.sandbox.SandBoxHelper sandBoxHelper
  • Constructor Details

    • AdvancedPageDaoImpl

      public AdvancedPageDaoImpl()
  • Method Details

    • readMostRecentPageByPageType

      public org.broadleafcommerce.cms.page.domain.Page readMostRecentPageByPageType(com.broadleafcommerce.theme.domain.page.PageType pageType)
      Description copied from interface: AdvancedPageDao
      Returns the Page that is of the given PageType that was most recently updated.
      Specified by:
      readMostRecentPageByPageType in interface AdvancedPageDao
      Returns:
      the Page
    • readAllPagesByPageType

      public List<org.broadleafcommerce.cms.page.domain.Page> readAllPagesByPageType(com.broadleafcommerce.theme.domain.page.PageType pageType, int maxResults)
      Description copied from interface: AdvancedPageDao
      Returns a list of all Pages that match the given PageType, limited by the number of results specified by the maxResults parameter.
      Specified by:
      readAllPagesByPageType in interface AdvancedPageDao
      Returns:
      the list of Pages