Package org.openwms.wms.location
Class LocationController
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.wms.location.LocationController
@Profile("!INMEM")
@MeasuredRestController
public class LocationController
extends org.openwms.core.http.AbstractWebController
A LocationController.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LocationService
private static final org.slf4j.Logger
private final LocationMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<Void> deleteLocation
(List<String> pKeys) org.springframework.http.ResponseEntity
<Optional<LocationVO>> findByErpCodeOpt
(String erpCode) org.springframework.http.ResponseEntity
<Optional<LocationVO>> findByIdOpt
(String locationId) org.springframework.http.ResponseEntity
<Boolean> requestDeleteLocation
(List<String> pKeys) Methods inherited from class org.openwms.core.http.AbstractWebController
buildNOKResponse, buildNOKResponseWithKey, buildOKResponse, buildResponse, buildResponse, getLocationForCreatedResource, getLocationURIForCreatedResource, handleBehaviorAwareException, handleBusinessRuntimeException, handleConstraintViolationException, handleException, handleHttpBusinessException, handleRemovalNotAllowedException, handleTechnicalRuntimeException, handleValidationException, illegalArgumentException, translate
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
mapper
-
locationService
-
-
Constructor Details
-
LocationController
LocationController(LocationService locationService, LocationMapper mapper)
-
-
Method Details
-
findByIdOpt
@GetMapping(value="/v1/locations", params="locationId") public org.springframework.http.ResponseEntity<Optional<LocationVO>> findByIdOpt(@RequestParam("locationId") String locationId) -
findByErpCodeOpt
@GetMapping(value="/v1/locations", params="erpCode") public org.springframework.http.ResponseEntity<Optional<LocationVO>> findByErpCodeOpt(@RequestParam("erpCode") String erpCode) -
requestDeleteLocation
-
deleteLocation
-