Extend the navigation suggestion web service to include the new suggestion grouping
In this lesson,
you are creating a class that returns all of the possible values for
your navigation suggestion grouping for warranty type. This class
is responsible for finding all of the possible values for your new
suggestion group (WARRANTY, COMPREHENSIVE). This class populates the
information that the storefront needs into the business objects the
storefront JSPs understand.
About this task
Procedure
- Create a class:
- Expand .
- Right-click the src folder; click .
- In the Package field, type
com.mycompany.commerce.search
. - In the Name field, type
WarrantySuggestion
. - Click Finish.
- Copy all of the code from the Warranty suggestion Java class file into the new WarrantySuggestion.java file you just created, overwriting the existing content.
- Save and close the WarrantySuggestion.java file.