public class CartResource
extends <any>
| Constructor and Description |
|---|
CartResource()
Generated constructor - for generic creation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPut(Object dto,
CartModel entity,
boolean modelWasCreated) |
Response |
deleteCart()
Generated HTTP method for covering DELETE requests.
|
AbstractYResource |
getAbstractOrderEntryResource(String resourceKey)
Generated getter for sub resource of type
AbstractOrderEntryResource for current root resource |
Response |
getCart()
Generated HTTP method for covering GET requests.
|
CartEntriesResource |
getCartEntriesResource() |
AbstractYResource |
getCartEntryResource(String resourceKey)
Generated getter for sub resource of type
CartEntryResource for current root resource |
CartModel |
getCartModel()
Convenience method which just delegates to
#getResourceValue() |
AbstractYResource |
getInMemoryCartEntryResource(String resourceKey)
Generated getter for sub resource of type
InMemoryCartEntryResource for current root resource |
AbstractYResource |
getLinkResource(String resourceKey)
Generated getter for sub resource of type
LinkResource for current root resource |
AbstractYResource |
getOrderEntryResource(String resourceKey)
Generated getter for sub resource of type
OrderEntryResource for current root resource |
Response |
postCart(CartDTO dto) |
Response |
putCart(CartDTO dto)
Generated HTTP method for covering PUT requests.
|
protected CartModel |
readResource(String resourceId)
Gets the
CartModel resource which is addressed by current resource request. |
void |
setCartModel(CartModel value)
Convenience method which just delegates to
#setResourceValue(CartModel) |
public Response deleteCart()
Responsepublic AbstractYResource getAbstractOrderEntryResource(String resourceKey)
AbstractOrderEntryResource for current root resourcepublic Response getCart()
Responsepublic AbstractYResource getCartEntryResource(String resourceKey)
CartEntryResource for current root resourcepublic CartEntriesResource getCartEntriesResource()
public CartModel getCartModel()
#getResourceValue()public AbstractYResource getInMemoryCartEntryResource(String resourceKey)
InMemoryCartEntryResource for current root resourcepublic AbstractYResource getLinkResource(String resourceKey)
LinkResource for current root resourcepublic AbstractYResource getOrderEntryResource(String resourceKey)
OrderEntryResource for current root resourcepublic Response putCart(CartDTO dto)
Responsepublic Response postCart(CartDTO dto)
protected CartModel readResource(String resourceId) throws Exception
CartModel resource which is addressed by current resource request.Exceptionde.hybris.platform.webservices.AbstractYResource#readResource(String)public void setCartModel(CartModel value)
#setResourceValue(CartModel)Copyright © 2017 SAP SE. All Rights Reserved.