@Encoded public class ESpotDataHandler extends AbstractResourceHandler
Modifier and Type | Field and Description |
---|---|
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 ESpotDataHelper | eSpotDataHelper
Helper to retrieve and deal with BOD.
|
protected static java.lang.String | FIND_BY_NAME_XPATH
The XPath key to find a MarketingSpotData noun by name.
|
static java.lang.String | FORMAT_GROUP_NAME
The constant FORMAT_GROUP_NAME.
|
static java.lang.String | RESOURCE_MAPPING_KEY
The Constant RESOURCE_MAPPING_KEY.
|
static java.lang.String | RESOURCE_NAME
The Constant RESOURCE_NAME.
|
Constructor and Description |
---|
ESpotDataHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response | findAllSearchTerms(java.lang.String astrStoreId, java.lang.String astrResponseFormat, java.lang.String queryName)
This method retrieves a list of all search terms that have search rules.
|
javax.ws.rs.core.Response | findByName(java.lang.String eSpotName, java.lang.String storeId, java.lang.String responseFormat)
This method retrieves a marketing eSpot by name.
|
javax.ws.rs.core.Response | findByNameWithCategory(java.lang.String eSpotName, java.lang.String storeId, java.lang.String categoryId, java.lang.String responseFormat)
Deprecated.
This API can be implemented using the findByName method with the following URL: store/{storeId}/espot/{name}?categoryId=&DM_ReqCmd=CategoryDisplay.
|
javax.ws.rs.core.Response | findByNameWithProduct(java.lang.String eSpotName, java.lang.String storeId, java.lang.String productId, java.lang.String responseFormat)
Deprecated.
This API can be implemented using the findByName method with the following URL: store/{storeId}/espot/{name}?productId=&DM_ReqCmd=ProductDisplay.
|
javax.ws.rs.core.Response | findESpotData(java.lang.String storeId, java.lang.String name, java.lang.String type, java.lang.String responseFormat)
This method retrieves a marketing eSpot data..
|
protected javax.ws.rs.core.Response | generateResponse(ShowMarketingSpotDataDataAreaType dataObject, java.lang.String urlParamGroupName, java.lang.String responseFormat)
Generates REST response from a given data object and its corresponding URL parameter group name from the BOD to URL mapping configuration.
|
java.lang.String | getFormattingGroupName()
Returns the formatting group name for resolving the struts action of the formatting JSP.
|
ESpotDataHelper | getHelper()
Return the BOD helper associated with the eSpot resource.
|
java.lang.String | getResourceName()
This method returns the name of the resource used primarily to determine the representation of the resource.
|
javax.ws.rs.core.UriInfo | getUri()
Get the URI of the atom feed request.
|
public static final java.lang.String COPYRIGHT
protected static final java.lang.String DEFAULT_ACCESS_PROFILE
protected static final java.lang.String FIND_BY_NAME_XPATH
public static final java.lang.String RESOURCE_NAME
public static final java.lang.String RESOURCE_MAPPING_KEY
public static final java.lang.String FORMAT_GROUP_NAME
protected ESpotDataHelper eSpotDataHelper
public javax.ws.rs.core.UriInfo getUri()
public java.lang.String getResourceName()
public ESpotDataHelper getHelper()
public java.lang.String getFormattingGroupName()
public javax.ws.rs.core.Response findAllSearchTerms(java.lang.String astrStoreId, java.lang.String astrResponseFormat, java.lang.String queryName)
public javax.ws.rs.core.Response findESpotData(java.lang.String storeId, java.lang.String name, java.lang.String type, java.lang.String responseFormat)
public javax.ws.rs.core.Response findByName(java.lang.String eSpotName, java.lang.String storeId, java.lang.String responseFormat)
@Deprecated public javax.ws.rs.core.Response findByNameWithCategory(java.lang.String eSpotName, java.lang.String storeId, java.lang.String categoryId, java.lang.String responseFormat)
public javax.ws.rs.core.Response findByNameWithProduct(java.lang.String eSpotName, java.lang.String storeId, java.lang.String productId, java.lang.String responseFormat)
protected javax.ws.rs.core.Response generateResponse(ShowMarketingSpotDataDataAreaType dataObject, java.lang.String urlParamGroupName, java.lang.String responseFormat)
This method calls createMapForProvider to create the response data map. The response status code is resolved based on the input parameters.