com.ibm.commerce.rest.search.handler.v2_0

Class SiteContentHandler

    • Field Detail

      • COPYRIGHT

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

      • SiteContentHandler

        public SiteContentHandler()
    • 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
        See Also:
        IResourceHandler.getResourceName()
      • findWebContentsBySearchTerm

        @GET
         @Path(value="webContentsBySearchTerm/{searchTerm}")
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
        public javax.ws.rs.core.Response findWebContentsBySearchTerm(@PathParam(value="storeId")
                                                                                                                                                                                                                                       java.lang.String storeId,
                                                                                                                                                                                                                                       @PathParam(value="searchTerm")
                                                                                                                                                                                                                                       java.lang.String searchTerm)
        Returns the web content resource details by specified a search term.
        Parameters:
        storeId - the store identifier, this is mandatory parameter and cannot be null or empty.
        searchTerm - the search term, this is mandatory parameter and cannot be null or empty.
        Returns:
        The rest service response object containing an array of sitecontent resource details.
      • findSuggestions

        @GET
         @Path(value="suggestions")
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
        public javax.ws.rs.core.Response findSuggestions(@PathParam(value="storeId")
                                                                                                                                                                                                  java.lang.String storeId)
        Returns the suggestions by specified a term.
        Parameters:
        storeId - the store identifier, this is mandatory parameter and cannot be null or empty.
        Returns:
        The rest service response object containing an array of sitecontent resource details.
      • findKeywordSuggestionsByTerm

        @GET
         @Path(value="keywordSuggestionsByTerm/{term}")
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
        public javax.ws.rs.core.Response findKeywordSuggestionsByTerm(@PathParam(value="storeId")
                                                                                                                                                                                                                                   java.lang.String storeId,
                                                                                                                                                                                                                                   @PathParam(value="term")
                                                                                                                                                                                                                                   java.lang.String term)
        Returns the keyword suggestions by specified a term.
        Parameters:
        storeId - the store identifier, this is mandatory parameter and cannot be null or empty.
        term - the search term, this is mandatory parameter and cannot be null or empty.
        Returns:
        The rest service response object containing an array of sitecontent resource details.
      • findCategorySuggestions

        @GET
         @Path(value="categorySuggestions")
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
        public javax.ws.rs.core.Response findCategorySuggestions(@PathParam(value="storeId")
                                                                                                                                                                                                                  java.lang.String storeId)
        Returns the category suggestions by specified a term.
        Parameters:
        storeId - the store identifier, this is mandatory parameter and cannot be null or empty.
        Returns:
        The rest service response object containing an array of sitecontent resource details.
      • findBrandSuggestions

        @GET
         @Path(value="brandSuggestions")
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
        public javax.ws.rs.core.Response findBrandSuggestions(@PathParam(value="storeId")
                                                                                                                                                                                                            java.lang.String storeId)
        Returns the brand suggestions by specified a term.
        Parameters:
        storeId - the store identifier, this is mandatory parameter and cannot be null or empty.
        Returns:
        The rest service response object containing an array of sitecontent resource details.
      • findCustomSuggestions

        @GET
         @Path(value="customSuggestions/{suggestType}")
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
        public javax.ws.rs.core.Response findCustomSuggestions(@PathParam(value="storeId")
                                                                                                                                                                                                                            java.lang.String storeId,
                                                                                                                                                                                                                            @QueryParam(value="term")
                                                                                                                                                                                                                            java.lang.String term,
                                                                                                                                                                                                                            @PathParam(value="suggestType")
                                                                                                                                                                                                                            java.lang.String suggestionType)
        Returns the custom suggestions by specified a term and suggestion type
        Parameters:
        storeId - the store identifier, this is mandatory parameter and cannot be null or empty.
        term - the term identifier, this is mandatory parameter and cannot be null or empty.
        suggestionType - the custom suggestType identifier, this is mandatory parameter and cannot be null or empty.
        Returns:
        The rest service response object containing an array of sitecontent resource details.
      • findWebContentSuggestions

        @GET
         @Path(value="webContentSuggestions")
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
        public javax.ws.rs.core.Response findWebContentSuggestions(@PathParam(value="storeId")
                                                                                                                                                                                                                      java.lang.String storeId)
        Returns the web content suggestions by specified a term.
        Parameters:
        storeId - the store identifier, this is mandatory parameter and cannot be null or empty.
        Returns:
        The rest service response object containing an array of sitecontent resource details.
      • findProductSuggestionsBySearchTerm

        @GET
         @Path(value="productSuggestionsBySearchTerm/{searchTerm}")
         @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"})
        public javax.ws.rs.core.Response findProductSuggestionsBySearchTerm(@PathParam(value="storeId")
                                                                                                                                                                                                                                                     java.lang.String storeId,
                                                                                                                                                                                                                                                     @PathParam(value="searchTerm")
                                                                                                                                                                                                                                                     java.lang.String searchTerm)
        Returns the Product suggestions by specified a term.
        Parameters:
        storeId - the store identifier, this is mandatory parameter and cannot be null or empty.
        searchTerm - the search term, this is mandatory parameter and cannot be null or empty.
        Returns:
        The rest service response object containing an array of sitecontent resource details.