Class AbstractResource<Service extends AbstractService<?,Entity,ID>,Entity,ID>
java.lang.Object
com.eoscode.springapitools.resource.BaseResource<Service,Entity,ID>
com.eoscode.springapitools.resource.AbstractQueryResource<Service,Entity,ID>
com.eoscode.springapitools.resource.AbstractResource<Service,Entity,ID>
- Direct Known Subclasses:
AbstractRepositoryResource
public abstract class AbstractResource<Service extends AbstractService<?,Entity,ID>,Entity,ID>
extends AbstractQueryResource<Service,Entity,ID>
-
Field Summary
Fields inherited from class com.eoscode.springapitools.resource.AbstractQueryResource
viewToJsonFields inherited from class com.eoscode.springapitools.resource.BaseResource
applicationContext, jackson2HttpMessageConverter, log, methodNotAllowed, queryWithViews, resourceMethodNotAllowed, springApiToolsProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void><T> Tfind(Entity filterBy, org.springframework.data.domain.Pageable pageable, QueryParameter queryParameter) <T> T<T> Torg.springframework.http.ResponseEntity<?>findAllPageAndSort(org.springframework.data.domain.Pageable pageable, Set<String> views) <T> TfindDetail(ID id, Set<String> views) org.springframework.http.ResponseEntity<org.springframework.data.domain.Page<Entity>>findWithPage(Entity filterBy, org.springframework.data.domain.Pageable pageable) org.springframework.http.ResponseEntity<Void>org.springframework.http.ResponseEntity<Entity>org.springframework.http.ResponseEntity<Void>Methods inherited from class com.eoscode.springapitools.resource.AbstractQueryResource
query, query, queryWithPage, queryWitPageMethods inherited from class com.eoscode.springapitools.resource.BaseResource
defineIdentifierValue, getEntityType, getIdentifierType, getIdentifierValue, getListDefaultSize, getService, getServiceType, isDefaultPageable
-
Constructor Details
-
AbstractResource
public AbstractResource()
-
-
Method Details
-
save
-
find
-
findDetail
-
update
-
patch
-
delete
-
find
@GetMapping(value={"","/find"}, produces="application/json") public <T> T find(Entity filterBy, @PageableDefault org.springframework.data.domain.Pageable pageable, QueryParameter queryParameter) -
findWithPage
-
findAll
-
findAllPageAndSort
-