com.ibm.commerce.rest.marketing.handler

Class ESpotDataHandler

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
      • RESOURCE_NAME

        public static final java.lang.String RESOURCE_NAME
        The Constant RESOURCE_NAME.
        See Also:
        Constant Field Values
      • RESOURCE_MAPPING_KEY

        public static final java.lang.String RESOURCE_MAPPING_KEY
        The Constant RESOURCE_MAPPING_KEY.
        See Also:
        Constant Field Values
      • FORMAT_GROUP_NAME

        public static final java.lang.String FORMAT_GROUP_NAME
        The constant FORMAT_GROUP_NAME.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ESpotDataHandler

        public ESpotDataHandler()
    • Method Detail

      • getUri

        public javax.ws.rs.core.UriInfo getUri()
        Get the URI of the atom feed request.
        Returns:
        the uri
      • getResourceName

        public java.lang.String getResourceName()
        Description copied from interface: IResourceHandler
        This method returns the name of the resource used primarily to determine the representation of the resource. This class can be overridden to change the name of the resource and therefore the representation, while keeping all the methods in this class.
        Returns:
        the resource name
      • getHelper

        public ESpotDataHelper getHelper()
        Return the BOD helper associated with the eSpot resource.
        Returns:
        ESpotDataHelper
      • findAllSearchTerms

        @GET
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
        public javax.ws.rs.core.Response findAllSearchTerms(@PathParam(value="storeId")
                                                                                                                                                                         java.lang.String astrStoreId,
                                                                                                                                                                         @QueryParam(value="responseFormat")
                                                                                                                                                                         java.lang.String astrResponseFormat,
                                                                                                                                                                         @QueryParam(value="q")
                                                                                                                                                                         java.lang.String queryName)
        This method retrieves a list of all search terms that have search rules.
        Parameters:
        astrStoreId - the store Id.
        astrResponseFormat - the response format shortcut(e.g, xml, json, or atom).
        queryName - the query name. This parameter is mandatory.
        Returns:
        a list of all search terms that have search rules.
      • findESpotData

        @GET
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
         @Path(value="{name}/type/{type}")
        public javax.ws.rs.core.Response findESpotData(@PathParam(value="storeId")
                                                                                                                                                                                                       java.lang.String storeId,
                                                                                                                                                                                                       @PathParam(value="name")
                                                                                                                                                                                                       java.lang.String name,
                                                                                                                                                                                                       @PathParam(value="type")
                                                                                                                                                                                                       java.lang.String type,
                                                                                                                                                                                                       @QueryParam(value="responseFormat")
                                                                                                                                                                                                       java.lang.String responseFormat)
        This method retrieves a marketing eSpot data..
        Parameters:
        storeId - the store Id.
        name - the e spot name
        type - the e spot type
        responseFormat - the response format shortcut(e.g, xml, json, or atom).
        Returns:
        The MarketingSpotData noun in the specified format.
      • findByName

        @GET
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
         @Path(value="{name}")
        public javax.ws.rs.core.Response findByName(@PathParam(value="name")
                                                                                                                                                                                        java.lang.String eSpotName,
                                                                                                                                                                                        @PathParam(value="storeId")
                                                                                                                                                                                        java.lang.String storeId,
                                                                                                                                                                                        @QueryParam(value="responseFormat")
                                                                                                                                                                                        java.lang.String responseFormat)
        This method retrieves a marketing eSpot by name.
        Parameters:
        eSpotName - the e spot name
        storeId - the store Id.
        responseFormat - the response format shortcut(e.g, xml, json, or atom).
        Returns:
        The MarketingSpotData noun in the specified format.
      • findByNameWithCategory

        @GET
         @Deprecated
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
         @Path(value="{name}/category/{categoryId}")
        public javax.ws.rs.core.Response findByNameWithCategory(@PathParam(value="name")
                                                                                                                                                                                                                                       java.lang.String eSpotName,
                                                                                                                                                                                                                                       @PathParam(value="storeId")
                                                                                                                                                                                                                                       java.lang.String storeId,
                                                                                                                                                                                                                                       @PathParam(value="categoryId")
                                                                                                                                                                                                                                       java.lang.String categoryId,
                                                                                                                                                                                                                                       @QueryParam(value="responseFormat")
                                                                                                                                                                                                                                       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.
        This method return marketing e-spot by name and category id.
        Parameters:
        eSpotName - the e spot name
        storeId - the store Id.
        categoryId - id of category or sub-category( like furniture, office chairs, tableware, plates, etc) to get the marketing promotion.
        responseFormat - the response format shortcut(e.g, xml, json, or atom).
        Returns:
        The MarketingSpotData noun in the specified format.
      • findByNameWithProduct

        @GET
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
         @Path(value="{name}/product/{productId}")
        public javax.ws.rs.core.Response findByNameWithProduct(@PathParam(value="name")
                                                                                                                                                                                                                       java.lang.String eSpotName,
                                                                                                                                                                                                                       @PathParam(value="storeId")
                                                                                                                                                                                                                       java.lang.String storeId,
                                                                                                                                                                                                                       @PathParam(value="productId")
                                                                                                                                                                                                                       java.lang.String productId,
                                                                                                                                                                                                                       @QueryParam(value="responseFormat")
                                                                                                                                                                                                                       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.
        This method gets marketing e-spot by name and product id.
        Parameters:
        eSpotName - the e spot name
        storeId - the store Id.
        productId - id of category entry( like "Mahogany Desk Chair", "Student Desks", etc...)to get the marketing promotion
        responseFormat - the response format shortcut(e.g, xml, json, or atom).
        Returns:
        The MarketingSpotData noun in the specified format.