Package org.openwms.tms.routing.ui
Class ActionResource
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.tms.routing.ui.ActionResource
@MeasuredRestController
class ActionResource
extends org.openwms.core.http.AbstractWebController
A ActionResource.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ActionRepository
private final ActionMapper
private final RouteRepository
-
Constructor Summary
ConstructorDescriptionActionResource
(ActionRepository actionRepository, RouteRepository routeRepository, ActionMapper mapper) -
Method Summary
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
-
actionRepository
-
routeRepository
-
mapper
-
-
Constructor Details
-
ActionResource
ActionResource(ActionRepository actionRepository, RouteRepository routeRepository, ActionMapper mapper)
-
-
Method Details
-
getAll
-
delete
@DeleteMapping("/v1/api/actions/{persistentKey}") @ResponseStatus(NO_CONTENT) @CacheEvict("actions") @Transactional public void delete(@PathVariable("persistentKey") String persistentKey) -
save
-
create
@PostMapping("/v1/api/actions") @ResponseStatus(CREATED) @CacheEvict("actions") @Transactional public void create(@RequestBody ActionVO actionVO, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) -
getCreatedResourceURI
-