@ConditionalOnBroadleafModule(value=REST_API)
@RestController(value="blInventoryNotificationEndpoint")
@RequestMapping(value="/inventory/notification/",
produces={"application/json","application/xml"})
public class InventoryNotificationEndpoint
extends com.broadleafcommerce.rest.api.endpoint.BaseEndpoint
| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.core.catalog.service.CatalogService |
catalogService |
protected org.broadleafcommerce.profile.core.service.CustomerService |
customerService |
protected FulfillmentLocationService |
locationService |
protected InventoryNotificationService |
notificationService |
| Constructor and Description |
|---|
InventoryNotificationEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addNotification(javax.servlet.http.HttpServletRequest request,
Long skuId,
Long locationId,
String email) |
List<InventoryNotificationWrapper> |
getAllUnProcessedNotifications(javax.servlet.http.HttpServletRequest request,
int limit,
int offset) |
List<InventoryNotificationWrapper> |
getUnProcessedNotificationsForEmail(javax.servlet.http.HttpServletRequest request,
String email) |
boolean |
processNotification(javax.servlet.http.HttpServletRequest request,
Long notificationId) |
protected InventoryNotificationService notificationService
protected org.broadleafcommerce.core.catalog.service.CatalogService catalogService
protected org.broadleafcommerce.profile.core.service.CustomerService customerService
protected FulfillmentLocationService locationService
@RequestMapping(value="",
method=GET)
public List<InventoryNotificationWrapper> getAllUnProcessedNotifications(javax.servlet.http.HttpServletRequest request,
@RequestParam(value="limit",defaultValue="20")
int limit,
@RequestParam(value="offset",defaultValue="0")
int offset)
@RequestMapping(value="",
method=PUT)
public boolean addNotification(javax.servlet.http.HttpServletRequest request,
@RequestParam(value="skuId")
Long skuId,
@RequestParam(value="locationId")
Long locationId,
@RequestParam(value="email")
String email)
@RequestMapping(value="process/{notificationId}",
method=POST)
public boolean processNotification(javax.servlet.http.HttpServletRequest request,
@PathVariable(value="notificationId")
Long notificationId)
@RequestMapping(value="email/{email}",
method=GET)
public List<InventoryNotificationWrapper> getUnProcessedNotificationsForEmail(javax.servlet.http.HttpServletRequest request,
@PathVariable(value="email")
String email)
Copyright © 2020. All rights reserved.