@Encoded
public class MarketingSpotData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected BusinessContextType | businessContext
The business context of the request.
|
protected javax.servlet.ServletContext | context
The servlet context.
|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
protected static java.lang.String | DEFAULT_ACCESS_PROFILE
The default access profile, used when an access profile is not specified using the accessProfile query parameter.
|
protected static int | DEFAULT_NUMBER_ENTRIES_TO_DISPLAY
Default number of Category, Product or Content entries to display.
|
protected static java.lang.String | FIND_BY_NAME_XPATH
The XPath key to find a MarketingSpotData noun by name.
|
protected javax.ws.rs.core.HttpHeaders | headers
The Http headers of the request.
|
protected static java.lang.String | PARAM_GROUP_NAME
Param group name to use is "_dataobject_" to keep existing behavior; i.e.
|
protected java.lang.String | paramNumberCategoriesToDisplay
Parameter name for number of categories to display.
|
protected java.lang.String | paramNumberContentToDisplay
Parameter name for number of content items to display.
|
protected java.lang.String | paramNumberProductsToDisplay
Parameter name for number of products to display.
|
protected static java.lang.String | RESOURCE_NAME
The Constant RESOURCE_NAME - reuse the one from ESpotDataHandler
|
protected javax.ws.rs.core.UriInfo | uri
The URI of the atom feed request.
|
Constructor and Description |
---|
MarketingSpotData() |
Modifier and Type | Method and Description |
---|---|
protected SelectionCriteriaHelper | buildExpression(java.lang.String expression, java.lang.String accessProfile)
This method creates a SelectionCriteriaHelper object with the provided XPath expression and access profile.
|
protected GetType | buildGetVerb(ExpressionType expression)
This method creates the Marketing Get Verb.
|
protected java.lang.String | buildMarketingTriggerParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Given a map of name/value pairs, this method creates a string in the format: name1=value1&name2=value2&...&_mkt.endTriggerParameters
|
javax.ws.rs.core.Response | findByName(java.lang.String name, java.lang.String storeId, java.lang.String accessProfile, java.lang.String responseFormat)
This method performs a GetMarketingSpotData by name request.
|
protected javax.ws.rs.core.Response | getMarketingSpotData(java.lang.String expression, java.lang.String accessProfile, java.lang.String responseFormat)
This method performs a GetMarketingSpotData service request.
|
protected java.lang.String | getNumberOfEntriesToDisplay(java.lang.String number)
This method returns the number of entries to display.
|
public static final java.lang.String COPYRIGHT
protected static final java.lang.String DEFAULT_ACCESS_PROFILE
protected static final int DEFAULT_NUMBER_ENTRIES_TO_DISPLAY
protected static final java.lang.String FIND_BY_NAME_XPATH
protected static final java.lang.String RESOURCE_NAME
protected static final java.lang.String PARAM_GROUP_NAME
@Context protected BusinessContextType businessContext
@Context protected javax.ws.rs.core.UriInfo uri
@Context protected javax.servlet.ServletContext context
@Context protected javax.ws.rs.core.HttpHeaders headers
protected final java.lang.String paramNumberCategoriesToDisplay
protected final java.lang.String paramNumberProductsToDisplay
protected final java.lang.String paramNumberContentToDisplay
public javax.ws.rs.core.Response findByName(java.lang.String name, java.lang.String storeId, java.lang.String accessProfile, java.lang.String responseFormat) throws javax.ws.rs.WebApplicationException, java.io.IOException, MarketingSpotDataException
protected javax.ws.rs.core.Response getMarketingSpotData(java.lang.String expression, java.lang.String accessProfile, java.lang.String responseFormat) throws MarketingSpotDataException, javax.ws.rs.WebApplicationException, java.io.IOException
protected GetType buildGetVerb(ExpressionType expression)
protected java.lang.String buildMarketingTriggerParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
protected SelectionCriteriaHelper buildExpression(java.lang.String expression, java.lang.String accessProfile)
protected java.lang.String getNumberOfEntriesToDisplay(java.lang.String number)