public class SmartTargetRegion
extends com.sdl.webapp.common.api.model.region.RegionModelImpl
SmartTargetRegion class.
| Constructor and Description |
|---|
SmartTargetRegion(com.sdl.webapp.common.api.model.MvcData mvcData)
Constructor for SmartTargetRegion.
|
SmartTargetRegion(com.sdl.webapp.common.api.model.RegionModel other) |
SmartTargetRegion(String name)
Constructor for SmartTargetRegion.
|
SmartTargetRegion(String name,
String qualifiedViewName)
Constructor for SmartTargetRegion.
|
| Modifier and Type | Method and Description |
|---|---|
SmartTargetRegion |
deepCopy() |
String |
getStartQueryXpmMarkup()
Gets the Start Query XPM markup (for staging sites).
|
String |
getXpmMarkup(com.sdl.webapp.common.api.localization.Localization localization) |
addEntity, canEqual, equals, extractFeedItems, filterConditionalEntities, getEntities, getEntity, getName, getRegions, hashCode, setEntities, setName, setRegionsaddExtensionData, addXpmMetadata, collectFeedItems, getExtensionData, getHtmlClasses, getMvcData, getXpmMetadata, setExtensionData, setHtmlClasses, setMvcData, setXpmMetadata, toStringpublic SmartTargetRegion(com.sdl.webapp.common.api.model.RegionModel other)
public SmartTargetRegion(String name) throws com.sdl.webapp.common.exceptions.DxaException
Constructor for SmartTargetRegion.
name - a String object.com.sdl.webapp.common.exceptions.DxaException - if any.public SmartTargetRegion(String name, String qualifiedViewName) throws com.sdl.webapp.common.exceptions.DxaException
Constructor for SmartTargetRegion.
public SmartTargetRegion(com.sdl.webapp.common.api.model.MvcData mvcData)
throws com.sdl.webapp.common.exceptions.DxaException
Constructor for SmartTargetRegion.
mvcData - a MvcData object.com.sdl.webapp.common.exceptions.DxaException - if any.public String getStartQueryXpmMarkup()
A SmartTarget Region has two pieces of XPM markup: a "Start Promotion Region" tag and a "Start Query" tag. The regular XPM markup mechanism (Html.DxaRegionMarkup()) renders the "Start Promotion Region" tag and this method should be called from the Region View code to render the "Start Query" tag in the right location.
public SmartTargetRegion deepCopy()
deepCopy in interface com.sdl.webapp.common.api.model.RegionModeldeepCopy in class com.sdl.webapp.common.api.model.region.RegionModelImplpublic String getXpmMarkup(com.sdl.webapp.common.api.localization.Localization localization)
getXpmMarkup in interface com.sdl.webapp.common.api.model.ViewModelgetXpmMarkup in class com.sdl.webapp.common.api.model.region.RegionModelImplCopyright © 2015–2019 SDL. All rights reserved.