Package org.openwms.wms.inventory.rest
Class ProductController
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.wms.inventory.rest.ProductController
@Validated
@MeasuredRestController
public class ProductController
extends org.openwms.core.http.AbstractWebController
A ProductController.
- Author:
 - Heiko Scherrer
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final org.ameba.mapping.BeanMapperprivate final ProductMapperprivate final ProductServiceprivate final javax.validation.Validator - 
Constructor Summary
ConstructorsConstructorDescriptionProductController(ProductService productService, org.ameba.mapping.BeanMapper mapper, ProductMapper productMapper, javax.validation.Validator validator)  - 
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void>findAll()org.springframework.http.ResponseEntity<ProductVO>org.springframework.http.ResponseEntity<ProductVO>findByPKey(String pKey) org.springframework.http.ResponseEntity<ProductVO>org.springframework.http.ResponseEntity<ProductVO>findBySKUandUOM(String sku, String uom) static org.springframework.hateoas.Linkorg.springframework.http.ResponseEntity<org.openwms.core.http.Index>index()org.springframework.http.ResponseEntity<ProductVO>Methods inherited from class org.openwms.core.http.AbstractWebController
buildNOKResponse, buildNOKResponseWithKey, buildOKResponse, buildResponse, buildResponse, getLocationForCreatedResource, getLocationURIForCreatedResource, handleBehaviorAwareException, handleBusinessRuntimeException, handleConstraintViolationException, handleException, handleHttpBusinessException, handleTechnicalRuntimeException, handleValidationException, IllegalArgumentException, translate 
- 
Field Details
- 
LOGGER
private static final org.slf4j.Logger LOGGER - 
productService
 - 
mapper
private final org.ameba.mapping.BeanMapper mapper - 
productMapper
 - 
validator
private final javax.validation.Validator validator 
 - 
 - 
Constructor Details
- 
ProductController
ProductController(ProductService productService, org.ameba.mapping.BeanMapper mapper, ProductMapper productMapper, javax.validation.Validator validator)  
 - 
 - 
Method Details
- 
getProductSelfLink
 - 
index
@GetMapping("/v1/products/index") public org.springframework.http.ResponseEntity<org.openwms.core.http.Index> index() - 
findAll
 - 
findBySKU
 - 
findByPKey
 - 
findBySKUandUOM
 - 
findByLabelOrSKU
 - 
create
 - 
update
@Transactional @Validated(UpdateProduct.class) @PutMapping("/v1/products") public org.springframework.http.ResponseEntity<ProductVO> update(@Valid @NotNull @RequestBody @Valid @NotNull ProductVO product)  
 -