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
FieldsModifier and TypeFieldDescriptionprotected jakarta.persistence.EntityManagerprotected org.broadleafcommerce.common.sandbox.SandBoxHelper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.broadleafcommerce.cms.page.domain.Page>readAllPagesByPageType(com.broadleafcommerce.theme.domain.page.PageType pageType, int maxResults) Returns a list of allPages that match the givenPageType, limited by the number of results specified by the maxResults parameter.org.broadleafcommerce.cms.page.domain.PagereadMostRecentPageByPageType(com.broadleafcommerce.theme.domain.page.PageType pageType) Returns thePagethat is of the givenPageTypethat was most recently updated.
-
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:AdvancedPageDaoReturns thePagethat is of the givenPageTypethat was most recently updated.- Specified by:
readMostRecentPageByPageTypein interfaceAdvancedPageDao- 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:AdvancedPageDaoReturns a list of allPages that match the givenPageType, limited by the number of results specified by the maxResults parameter.- Specified by:
readAllPagesByPageTypein interfaceAdvancedPageDao- Returns:
- the list of
Pages
-