Search in sources :

Example 6 with PageField

use of org.broadleafcommerce.cms.page.domain.PageField in project BroadleafCommerce by BroadleafCommerce.

the class PageServiceImpl method findPageFieldMapByPageId.

/*
     * Returns the page with the passed in id.
     */
@Override
public Map<String, PageField> findPageFieldMapByPageId(Long pageId) {
    Map<String, PageField> returnMap = new HashMap<>();
    List<PageField> pageFields = pageDao.readPageFieldsByPageId(pageId);
    for (PageField pf : pageFields) {
        returnMap.put(pf.getFieldKey(), pf);
    }
    return returnMap;
}
Also used : PageField(org.broadleafcommerce.cms.page.domain.PageField) HashMap(java.util.HashMap)

Aggregations

PageField (org.broadleafcommerce.cms.page.domain.PageField)6 FieldDefinition (org.broadleafcommerce.cms.field.domain.FieldDefinition)3 FieldGroup (org.broadleafcommerce.cms.field.domain.FieldGroup)3 Property (org.broadleafcommerce.openadmin.dto.Property)3 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 Page (org.broadleafcommerce.cms.page.domain.Page)2 PageFieldImpl (org.broadleafcommerce.cms.page.domain.PageFieldImpl)2 AdminMainEntity (org.broadleafcommerce.common.admin.domain.AdminMainEntity)2 Entity (org.broadleafcommerce.openadmin.dto.Entity)2 Map (java.util.Map)1 CriteriaBuilder (javax.persistence.criteria.CriteriaBuilder)1 PageTemplateImpl (org.broadleafcommerce.cms.page.domain.PageTemplateImpl)1 ServiceException (org.broadleafcommerce.common.exception.ServiceException)1 FieldMetadata (org.broadleafcommerce.openadmin.dto.FieldMetadata)1 ValidationException (org.broadleafcommerce.openadmin.server.service.ValidationException)1