T
- type of domain@RestController
@Scope(value="prototype")
public class BaseResource<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
BaseService<T> |
service |
Constructor and Description |
---|
BaseResource(BaseService<T> service) |
Modifier and Type | Method and Description |
---|---|
<T> reactor.core.publisher.Flux<T> |
asyncFlux(java.lang.Iterable<T> callable) |
<T> reactor.core.publisher.Mono<T> |
asyncMono(T callable) |
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<ResultList<T>>> |
count() |
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<java.lang.Void>> |
delete(java.lang.String id) |
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<ResultList<T>>> |
findAll() |
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<ResultList<T>>> |
findByExperiment(java.lang.String id) |
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>> |
getOne(java.lang.String id) |
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>> |
save(T model) |
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>> |
update(T model) |
public final BaseService<T> service
public BaseResource(BaseService<T> service)
public <T> reactor.core.publisher.Mono<T> asyncMono(T callable)
public <T> reactor.core.publisher.Flux<T> asyncFlux(java.lang.Iterable<T> callable)
@Transactional @DeleteMapping(value="/{id}", produces="application/json;charset=UTF-8") public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<java.lang.Void>> delete(@PathVariable java.lang.String id)
@Transactional @GetMapping(value="/{id}", produces="application/json;charset=UTF-8") public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>> getOne(@PathVariable java.lang.String id)
@PostMapping(produces="application/json;charset=UTF-8") @ResponseStatus(value=CREATED) public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>> save(@RequestBody @Valid T model)
@PutMapping(produces="application/json;charset=UTF-8") @ResponseStatus(value=CREATED) public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>> update(@RequestBody @Valid T model)
@GetMapping(produces="application/json;charset=UTF-8") @ResponseStatus(value=CREATED) public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<ResultList<T>>> findAll()
@GetMapping(value="/count", produces="application/json;charset=UTF-8") @ResponseStatus(value=CREATED) public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<ResultList<T>>> count()
@Transactional @GetMapping(value="/by-experiment/{id}", produces="application/json;charset=UTF-8") public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<ResultList<T>>> findByExperiment(@PathVariable java.lang.String id)