com.ibm.commerce.rest.price.handler

Class DisplayPriceHandler

  • All Implemented Interfaces:
    DocumentedResourceHandler, IResourceHandler


    @Path(value="store/{storeId}/display_price")
    public class DisplayPriceHandler
    extends AbstractResourceHandler
    This REST handler converts RESTful DisplayPrice requests into WebSphere Commerce DisplayPrice requests to retrieve display price(list price) for catalog entry and returns data in specified format.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DisplayPriceHandler

        public DisplayPriceHandler()
    • Method Detail

      • 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
      • findByQuery

        @GET
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
        public javax.ws.rs.core.Response findByQuery(@PathParam(value="storeId")
                                                                                                                                                                  java.lang.String storeId,
                                                                                                                                                                  @QueryParam(value="q")
                                                                                                                                                                  java.lang.String queryName,
                                                                                                                                                                  @QueryParam(value="responseFormat")
                                                                                                                                                                  java.lang.String responseFormat)
        Finds display prices by a query. See each query for details on input and output.
        Parameters:
        storeId - The store ID.
        queryName - The query name.
        responseFormat - The response format.
        Returns:
        The response.
      • byCatalogEntryIdsAndPriceRuleName

        public javax.ws.rs.core.Response byCatalogEntryIdsAndPriceRuleName(@PathParam(value="storeId")
                                                                           java.lang.String storeId)
        Finds display prices by catalog entry ids and price rule name.
        Parameters:
        storeId - The store ID.
        Returns:
        The response.
      • byPartNumbersAndPriceRuleName

        public javax.ws.rs.core.Response byPartNumbersAndPriceRuleName(@PathParam(value="storeId")
                                                                       java.lang.String storeId)
        Finds display prices by part numbers and price rule name.
        Parameters:
        storeId - The store ID.
        Returns:
        The response.
      • byCatalogEntryIdsAndPriceRuleId

        public javax.ws.rs.core.Response byCatalogEntryIdsAndPriceRuleId(@PathParam(value="storeId")
                                                                         java.lang.String storeId)
        Finds display prices by catalog entry id and price rule id.
        Parameters:
        storeId - The store ID.
        Returns:
        The response.
      • byPartNumbersAndPriceRuleId

        public javax.ws.rs.core.Response byPartNumbersAndPriceRuleId(@PathParam(value="storeId")
                                                                     java.lang.String storeId)
        Finds display prices by part number and price rule id.
        Parameters:
        storeId - The store ID.
        Returns:
        The response.