public abstract class EntityControllerV2<ENTITY extends umun.iam.model.Meta> extends Object
| Modifier and Type | Field and Description |
|---|---|
umun.iam.service.UserService |
userService |
| Constructor and Description |
|---|
EntityControllerV2() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<?> |
create(org.springframework.security.core.Authentication authentication,
ENTITY entity) |
org.springframework.http.ResponseEntity<?> |
delete(org.springframework.security.core.Authentication authentication,
long entityId) |
protected abstract EntityCRUDService<ENTITY> |
getCRUDService() |
org.springframework.http.ResponseEntity<?> |
update(org.springframework.security.core.Authentication authentication,
long entityId,
ENTITY entity) |
protected abstract EntityCRUDService<ENTITY> getCRUDService()
@PostMapping
public org.springframework.http.ResponseEntity<?> create(org.springframework.security.core.Authentication authentication,
@RequestBody
ENTITY entity)
@PutMapping(value="/{entityId}")
public org.springframework.http.ResponseEntity<?> update(org.springframework.security.core.Authentication authentication,
@PathVariable(value="entityId")
long entityId,
@RequestBody
ENTITY entity)
@DeleteMapping(value="/{entityId}")
public org.springframework.http.ResponseEntity<?> delete(org.springframework.security.core.Authentication authentication,
@PathVariable(value="entityId")
long entityId)
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.