com.ibm.commerce.rest.catalog.handler

Class CatalogEntryHandler

  • All Implemented Interfaces:
    DocumentedResourceHandler, IResourceHandler


    @Path(value="store/{storeId}/catalog_entry")
    public class CatalogEntryHandler
    extends AbstractResourceHandler
    This REST handler converts RESTful administrative catalog requests into WebSphere Commerce CatalogEntry requests to retrieve all catalog entries for the store and returns data in specified format.
    • Field Detail

      • COPYRIGHT

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

        public static final java.lang.String PARAMETER_PART_NUMBER
        The parameter part number
        See Also:
        Constant Field Values
      • PARAMETER_PART_NUMBER_DESCRIPTION

        public static final java.lang.String PARAMETER_PART_NUMBER_DESCRIPTION
        The part number description
        See Also:
        Constant Field Values
      • PARAMETER_PARENT_PART_NUMBER_DESCRIPTION

        public static final java.lang.String PARAMETER_PARENT_PART_NUMBER_DESCRIPTION
        The parent part number description
        See Also:
        Constant Field Values
    • Constructor Detail

      • CatalogEntryHandler

        public CatalogEntryHandler()
    • 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)
        Finds catalog entries by a query. See each query for details on input and output.
        Parameters:
        storeId - The store ID.
        queryName - The query name.
        Returns:
        The response.
      • byPartNumbers

        public javax.ws.rs.core.Response byPartNumbers(@PathParam(value="storeId")
                                                       java.lang.String storeId)
        Finds all catalog entries for a given part number
        Parameters:
        storeId - The store ID.
        Returns:
        The response.
      • byParentPartNumbers

        public javax.ws.rs.core.Response byParentPartNumbers(@PathParam(value="storeId")
                                                             java.lang.String storeId)
        Finds all child catalog entries for the given part number of the parent catalog entry.
        Parameters:
        storeId - The store ID.
        Returns:
        The response.
      • findBySearchTerm

        @GET
         @Path(value="bySearchTerm/{searchTerm}")
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
        public javax.ws.rs.core.Response findBySearchTerm(@PathParam(value="storeId")
                                                                                                                                                                                                                 java.lang.String storeId,
                                                                                                                                                                                                                 @PathParam(value="searchTerm")
                                                                                                                                                                                                                 java.lang.String searchTerm)
        Finds catalog entries under a catalog by search team. If catalogId parameter is not specified, will search under default catalog of the store.
        Parameters:
        storeId - The store ID.
        searchTerm - The search term
        Returns:
        The response.