public class EMarketingSpotDataBean
extends java.lang.Object
implements java.io.Serializable, com.ibm.websphere.cache.Sizeable
BaseMarketingSpotActivityDataType
SDO. For the supported out of the
box data types (CatalogEntry, CatalogGroup, MarketingContent), then the information
is also used to populate the applicable SDO (MarketingSpotActivityCatalogEntryDataType
,
MarketingSpotActivityCatalogGroupDataType
, MarketingSpotActivityMarketingContentDataType
that extends from BaseMarketingSpotActivityDataType
).
If additional data needs to be returned to the e-Marketing Spot,
then the method EMarketingSpotDataBean.setNVP
can be used to set additional data into
the data bean. This data will be available from the getProperties
method
of the SDO returned to the e-Marketing Spot JSP snippet. See the method
MarketingCampaignElementTaskCmdImpl.addEMarketingSpotDataBean
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this class.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
DISPLAY_RETURN_CATALOG_ENTRY_ID
A constant representing that only the IDs of the Catalog Entry objects to display should
be returned to the e-Marketing Spot.
|
static java.lang.String |
DISPLAY_RETURN_CATEGORY_ID
A constant representing that only the IDs of the Category objects to display should
be returned to the e-Marketing Spot.
|
static java.lang.String |
DISPLAY_RETURN_MARKETING_CONTENT_ID
A constant representing that only the IDs of the Marketing Content objects to display should
be returned to the e-Marketing Spot.
|
static java.lang.String |
DISPLAY_TYPE_CATALOG_ENTRY
A constant representing a product to be displayed in an e-Marketing Spot.
|
static java.lang.String |
DISPLAY_TYPE_CATALOG_ENTRY_ID
A constant representing the ID of a product to be displayed in an e-Marketing Spot.
|
static java.lang.String |
DISPLAY_TYPE_CATEGORY
A constant representing a category to be displayed in an e-Marketing Spot.
|
static java.lang.String |
DISPLAY_TYPE_CATEGORY_ID
A constant representing the ID of a category to be displayed in an e-Marketing Spot.
|
static java.lang.String |
DISPLAY_TYPE_MARKETING_CONTENT
A constant representing Marketing Content to be displayed in an e-Marketing Spot.
|
static java.lang.String |
DISPLAY_TYPE_MARKETING_CONTENT_ID
A constant representing the ID of Marketing Content to be displayed in an e-Marketing Spot.
|
static java.lang.String |
NVP_ACTION
Constant representing the action name value pair for the EMarketingSpotDataBean.
|
static java.lang.String |
NVP_PROMOTION_DISPLAY
Constant representing the display action value for the EMarketingSpotDataBean.
|
static java.lang.String |
NVP_PROMOTION_ID
Constant representing the promotion name value pair for the EMarketingSpotDataBean.
|
static java.lang.String |
TRUE
A constant representing the value true.
|
Constructor and Description |
---|
EMarketingSpotDataBean()
This method is the default constructor.
|
EMarketingSpotDataBean(java.lang.String newType,
java.lang.String newData,
Activity activity,
java.lang.Integer newElementId)
Deprecated.
Use the constructor EMarketingSpotDataBean(String, String, Activity, Integer, List)
|
EMarketingSpotDataBean(java.lang.String newType,
java.lang.String newData,
Activity activity,
java.lang.Integer newElementId,
java.util.List newExperimentTestElements)
This method initializes the bean with all the information about
what to display in an e-Marketing Spot.
|
EMarketingSpotDataBean(java.lang.String newType,
java.lang.String newData,
java.lang.Integer newActivityId,
java.lang.Integer newElementId)
This method initializes the bean with all the information about
what to display in an e-Marketing Spot.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getActivityId()
This method gets the ID of the activity which made the recommendation.
|
java.lang.String |
getData()
This method gets the information (usually the unique identifier) of what to display.
|
java.util.List |
getExperimentTestElements()
This method gets the the set of experiments and test elements that have been passed along the activity flow.
|
java.lang.String |
getNVP(java.lang.String name)
This method gets a value from the name-value pair.
|
java.util.Map |
getNVPs()
This method gets the name-value pairs associated with the data to display in the e-Marketing Spot.
|
long |
getObjectSize()
Returns the estimated footprint size in bytes
of this object and the objects it contains.
|
java.math.BigInteger |
getPriority()
This method gets the priority of the campaign element which made the recommendation.
|
java.lang.String |
getType()
This method gets the type of what is to be displayed in the e-Marketing Spot.
|
void |
setActivityId(java.lang.Integer newActivityId)
This method the ID of the activity which made the recommendation.
|
void |
setData(java.lang.String newData)
This method the information (usually the unique identifier) of what to display.
|
void |
setExperimentTestElements(java.util.List newExperimentTestElements)
This method sets the set of experiments and test elements that have been passed along the activity flow.
|
void |
setNVP(java.lang.String name,
java.lang.String value)
This method sets a name-value pair.
|
void |
setNVPs(java.util.Map newNVP)
This method sets the name-value pairs associated with the data to display in the e-Marketing Spot.
|
void |
setPriority(java.math.BigInteger newPriority)
This method the priority of the campaign element which made the recommendation.
|
void |
setType(java.lang.String newType)
This method sets the type of what is to be displayed in the e-Marketing Spot.
|
java.lang.String |
toString()
This method returns a string with the content of the e-Marketing Spot data.
|
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public static final java.lang.String DISPLAY_TYPE_MARKETING_CONTENT
public static final java.lang.String DISPLAY_TYPE_CATEGORY
public static final java.lang.String DISPLAY_TYPE_CATALOG_ENTRY
public static final java.lang.String DISPLAY_TYPE_MARKETING_CONTENT_ID
public static final java.lang.String DISPLAY_TYPE_CATEGORY_ID
public static final java.lang.String DISPLAY_TYPE_CATALOG_ENTRY_ID
public static final java.lang.String DISPLAY_RETURN_MARKETING_CONTENT_ID
public static final java.lang.String DISPLAY_RETURN_CATEGORY_ID
public static final java.lang.String DISPLAY_RETURN_CATALOG_ENTRY_ID
public static final java.lang.String TRUE
public static final java.lang.String NVP_PROMOTION_ID
public static final java.lang.String NVP_ACTION
public static final java.lang.String NVP_PROMOTION_DISPLAY
public EMarketingSpotDataBean()
public EMarketingSpotDataBean(java.lang.String newType, java.lang.String newData, Activity activity, java.lang.Integer newElementId, java.util.List newExperimentTestElements)
newType
- The type of what is to be displayed.newData
- The information (usually the unique identifier) of what to display.activity
- The business object for the activity which made the recommendation.newElementId
- The ID of the campaign element which made the recommendation.newExperimentTestElements
- The set of experiments and test elements that have been passed along the activity flow.public EMarketingSpotDataBean(java.lang.String newType, java.lang.String newData, Activity activity, java.lang.Integer newElementId)
newType
- The type of what is to be displayed.newData
- The information (usually the unique identifier) of what to display.activity
- The business object for the activity which made the recommendation.newElementId
- The ID of the campaign element which made the recommendation.public EMarketingSpotDataBean(java.lang.String newType, java.lang.String newData, java.lang.Integer newActivityId, java.lang.Integer newElementId)
newType
- The type of what is to be displayed.newData
- The information (usually the unique identifier) of what to display.newActivityId
- The ID of the activity which made the recommendation.newElementId
- The ID of the campaign element which made the recommendation.public long getObjectSize()
getObjectSize
in interface com.ibm.websphere.cache.Sizeable
public java.lang.String getType()
public java.lang.String getData()
public java.lang.Integer getActivityId()
public java.math.BigInteger getPriority()
public java.util.List getExperimentTestElements()
public void setExperimentTestElements(java.util.List newExperimentTestElements)
newExperimentTestElements
- The set of experiments and test elements that have been passed along the activity flow.public void setType(java.lang.String newType)
newType
- The type of what is to be displayed in the e-Marketing Spot.public void setData(java.lang.String newData)
newData
- The information (usually the unique identifier) of what to display.public void setActivityId(java.lang.Integer newActivityId)
newActivityId
- The ID of the activity which made the recommendation.public void setPriority(java.math.BigInteger newPriority)
newPriority
- The priority of the campaign element which made the recommendation.public void setNVP(java.lang.String name, java.lang.String value)
name
- The name of the name-value pair.value
- The value that is to be associated with the name.public java.lang.String getNVP(java.lang.String name)
name
- The name from which the value wants to be retrieved.public java.util.Map getNVPs()
public void setNVPs(java.util.Map newNVP)
newNVP
- A map containing the name-value pairs.public java.lang.String toString()
toString
in class java.lang.Object