@Controller public class InventoryNotificationController extends BroadleafInventoryNotificationController
catalogService, formView, inventoryNotificationService| Constructor and Description |
|---|
InventoryNotificationController() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
addNotification(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Long skuId,
String email)
Creates a new
InventoryNotification |
String |
getNotificationForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
Long skuId)
Returns the form view to create a new notification
|
getFormView, setFormView@RequestMapping(value="/inventory/notification/{skuId}",
method=GET)
public String getNotificationForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@PathVariable(value="skuId")
Long skuId)
BroadleafInventoryNotificationControllergetNotificationForm in class BroadleafInventoryNotificationController@RequestMapping(value="/inventory/notification",
method=POST)
@ResponseBody
public Map<String,Object> addNotification(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
@RequestParam(value="skuId")
Long skuId,
@RequestParam(value="email")
String email)
InventoryNotificationaddNotification in class BroadleafInventoryNotificationControllerCopyright © 2020. All rights reserved.