com.ibm.commerce.rest.catalog.handler

Class CategoryHandler

  • All Implemented Interfaces:
    DocumentedResourceHandler, IResourceHandler


    @Path(value="store/{storeId}/category")
    public class CategoryHandler
    extends AbstractResourceHandler
    This class provides RESTful services to get category data for administrative purpose. It delegates to the CatalogGroup noun to perform the operations.
    • Field Detail

      • COPYRIGHT

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

      • CategoryHandler

        public CategoryHandler()
    • 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
      • 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 categories 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.