@Repository(value="blContentTargeterDao") public class ContentTargeterDaoImpl extends Object implements ContentTargeterDao
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TARGETER_DEFAULT_ACTION_PROPERTY |
static String |
CONTENT_TARGETING_ACTION_CONTENT_ZONE_PROPERTY |
static String |
CONTENT_TARGETING_ACTION_ID |
static String |
CONTENT_TARGETING_ACTION_PAGE_PROPERTY |
static String |
CONTENT_TARGETING_ACTION_THEME_PROPERTY |
static String |
CONTENT_TARGETING_ACTION_TYPE_PROPERTY |
protected org.broadleafcommerce.common.util.DialectHelper |
dialectHelper |
protected javax.persistence.EntityManager |
em |
protected org.broadleafcommerce.common.sandbox.SandBoxHelper |
sandBoxHelper |
Constructor and Description |
---|
ContentTargeterDaoImpl() |
Modifier and Type | Method and Description |
---|---|
protected javax.persistence.criteria.Predicate |
buildQueryPredicate(String propertyName,
Object target,
javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.Path<Object> path) |
protected void |
combineAndSortResults(List<ContentTargeter> targeters,
List<ContentTargeter> xrefTargeters) |
protected void |
combineResults(List<ContentTargeter> targeters,
List<ContentTargeter> xrefTargeters) |
protected void |
filterResultsByActiveDateRange(List<ContentTargeter> targeters) |
protected List<ContentTargeter> |
findContentTargetersForActions(javax.persistence.criteria.CriteriaBuilder builder,
List<Long> contentTargetingActionsIds) |
List<ContentTargeter> |
findContentTargetersForPage(org.broadleafcommerce.cms.page.domain.Page page) |
List<ContentTargeter> |
findContentTargetersForTemplatePath(String filePath) |
List<ContentTargeter> |
findContentTargetersForZone(ContentZone zone) |
List<ContentTargeter> |
findContentTargetersWithThemeChangeAction() |
protected List<Long> |
findContentTargetingActionsIds(String propertyName,
Object target,
javax.persistence.criteria.CriteriaBuilder builder) |
List<ContentTargeter> |
findSandboxContentTargeterForTargetProperty(String propertyName,
Object target)
Returns the SandBoxed (non-production) version of a
ContentTargeter . |
protected List<ContentTargeter> |
findTargeterWithActionMatchingProperty(String propertyName,
Object target) |
protected List<ContentTargeter> |
findXRefWithActionMatchingProperty(String propertyName,
Object target) |
ContentTargetingActionXref |
readContentTargetingActionXrefById(Long id)
Returns the ContentTargetingActionXref associated with the passed in id.
|
protected void |
sortResultsByPriority(List<ContentTargeter> targeters) |
protected javax.persistence.EntityManager em
protected org.broadleafcommerce.common.sandbox.SandBoxHelper sandBoxHelper
protected org.broadleafcommerce.common.util.DialectHelper dialectHelper
public static final String CONTENT_TARGETING_ACTION_CONTENT_ZONE_PROPERTY
public static final String CONTENT_TARGETING_ACTION_PAGE_PROPERTY
public static final String CONTENT_TARGETING_ACTION_THEME_PROPERTY
public static final String CONTENT_TARGETING_ACTION_TYPE_PROPERTY
public static final String CONTENT_TARGETING_ACTION_ID
public static final String CONTENT_TARGETER_DEFAULT_ACTION_PROPERTY
public List<ContentTargeter> findContentTargetersForZone(ContentZone zone)
findContentTargetersForZone
in interface ContentTargeterDao
ContentTargeter
s that are targeting changes for the passed in Zone.public List<ContentTargeter> findContentTargetersForPage(org.broadleafcommerce.cms.page.domain.Page page)
findContentTargetersForPage
in interface ContentTargeterDao
ContentTargeter
s that are targeting changes for the passed in Page.public List<ContentTargeter> findContentTargetersForTemplatePath(String filePath)
findContentTargetersForTemplatePath
in interface ContentTargeterDao
ContentTargeter
s that are targeting changes for the passed in template path.public List<ContentTargeter> findContentTargetersWithThemeChangeAction()
findContentTargetersWithThemeChangeAction
in interface ContentTargeterDao
ContentTargeter
s that are targeting changes for the passed in template path.protected List<ContentTargeter> findTargeterWithActionMatchingProperty(String propertyName, Object target)
public List<ContentTargeter> findSandboxContentTargeterForTargetProperty(String propertyName, Object target)
ContentTargeterDao
ContentTargeter
. This is
helpful when attempting to resolve ContentTargeters for in Sandbox Preview mode.findSandboxContentTargeterForTargetProperty
in interface ContentTargeterDao
protected List<Long> findContentTargetingActionsIds(String propertyName, Object target, javax.persistence.criteria.CriteriaBuilder builder)
protected List<ContentTargeter> findContentTargetersForActions(javax.persistence.criteria.CriteriaBuilder builder, List<Long> contentTargetingActionsIds)
protected List<ContentTargeter> findXRefWithActionMatchingProperty(String propertyName, Object target)
public ContentTargetingActionXref readContentTargetingActionXrefById(Long id)
ContentTargeterDao
readContentTargetingActionXrefById
in interface ContentTargeterDao
id
- - The id of the content targeting action xref.protected javax.persistence.criteria.Predicate buildQueryPredicate(String propertyName, Object target, javax.persistence.criteria.CriteriaBuilder builder, javax.persistence.criteria.Path<Object> path)
protected void combineAndSortResults(List<ContentTargeter> targeters, List<ContentTargeter> xrefTargeters)
protected void combineResults(List<ContentTargeter> targeters, List<ContentTargeter> xrefTargeters)
protected void filterResultsByActiveDateRange(List<ContentTargeter> targeters)
protected void sortResultsByPriority(List<ContentTargeter> targeters)
Copyright © 2016. All rights reserved.