public class ESpotDataHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
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.
|
static java.lang.String | FIND_BY_NAME_XPATH
The XPath key to find a MarketingSpotData noun by name.
|
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 | UTF8_ENCODING
UTF 8 encoding
|
Constructor and Description |
---|
ESpotDataHelper() |
ESpotDataHelper(com.ibm.commerce.rest.utils.Instrumentor instrumentor, javax.ws.rs.core.UriInfo uriInfo)
Instantiates a new e spot data helper.
|
Modifier and Type | Method and Description |
---|---|
protected SelectionCriteriaHelper | buildExpression(java.lang.String expression, java.lang.String accessProfile, java.util.Map<java.lang.String,java.lang.String> attrs)
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
|
com.ibm.commerce.rest.utils.Instrumentor | getInstrumentor()
Get the instrumentor associated with this request instance.
|
java.util.Map<java.lang.String,java.lang.Object> | getMarketingSpotData(ShowMarketingSpotDataDataAreaType dataArea)
Gets the marketing spot data.
|
ShowMarketingSpotDataDataAreaType | getMarketingSpotDataAreaType(java.lang.String expression, java.lang.String accessProfile, java.util.Map<java.lang.String,java.lang.String> attrs, BusinessContextType businessContext, javax.security.auth.callback.CallbackHandler cbh)
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.
|
javax.ws.rs.core.UriInfo | getUri()
Gets the URI of the atom feed request.
|
void | setUri(javax.ws.rs.core.UriInfo uri)
Sets the URI of the atom feed request.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String DEFAULT_ACCESS_PROFILE
public static final java.lang.String FIND_BY_NAME_XPATH
protected final java.lang.String paramNumberCategoriesToDisplay
protected final java.lang.String paramNumberProductsToDisplay
protected final java.lang.String paramNumberContentToDisplay
protected static final int DEFAULT_NUMBER_ENTRIES_TO_DISPLAY
protected static final java.lang.String UTF8_ENCODING
public ESpotDataHelper()
public ESpotDataHelper(com.ibm.commerce.rest.utils.Instrumentor instrumentor, javax.ws.rs.core.UriInfo uriInfo)
public com.ibm.commerce.rest.utils.Instrumentor getInstrumentor()
public ShowMarketingSpotDataDataAreaType getMarketingSpotDataAreaType(java.lang.String expression, java.lang.String accessProfile, java.util.Map<java.lang.String,java.lang.String> attrs, BusinessContextType businessContext, javax.security.auth.callback.CallbackHandler cbh) throws MarketingSpotDataException
protected SelectionCriteriaHelper buildExpression(java.lang.String expression, java.lang.String accessProfile, java.util.Map<java.lang.String,java.lang.String> attrs)
protected java.lang.String getNumberOfEntriesToDisplay(java.lang.String number)
protected java.lang.String buildMarketingTriggerParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
protected GetType buildGetVerb(ExpressionType expression)
public java.util.Map<java.lang.String,java.lang.Object> getMarketingSpotData(ShowMarketingSpotDataDataAreaType dataArea)
public javax.ws.rs.core.UriInfo getUri()
public void setUri(javax.ws.rs.core.UriInfo uri)