@RepositoryRestController public class ContentSearchRestController extends Object
| Constructor and Description |
|---|
ContentSearchRestController(org.springframework.data.repository.support.Repositories repositories,
ContentStoreService stores,
org.springframework.data.web.PagedResourcesAssembler<Object> assembler) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.hateoas.Resources<?> |
entitiesToResources(Iterable<Object> entities,
org.springframework.data.rest.webmvc.PersistentEntityResourceAssembler assembler,
Class<?> domainType) |
protected org.springframework.hateoas.Resources<?> |
entitiesToResources(org.springframework.data.domain.Page<Object> page,
org.springframework.data.rest.webmvc.PersistentEntityResourceAssembler assembler,
Class<?> domainType,
org.springframework.hateoas.Link baseLink) |
protected org.springframework.hateoas.Link |
getDefaultSelfLink() |
org.springframework.http.ResponseEntity<?> |
searchContent(org.springframework.data.rest.webmvc.RootResourceInformation repoInfo,
org.springframework.data.rest.webmvc.PersistentEntityResourceAssembler assembler,
String repository,
String searchMethod,
List<String> keywords) |
void |
setReflectionService(ReflectionService reflectionService) |
protected org.springframework.hateoas.Resources<?> |
toResources(Iterable<?> source,
org.springframework.data.rest.webmvc.PersistentEntityResourceAssembler assembler,
Class<?> domainType,
org.springframework.hateoas.Link baseLink) |
@Autowired
public ContentSearchRestController(org.springframework.data.repository.support.Repositories repositories,
ContentStoreService stores,
org.springframework.data.web.PagedResourcesAssembler<Object> assembler)
public void setReflectionService(ReflectionService reflectionService)
@ContentHandlerMapping.StoreType(value="contentstore") @RequestMapping(value="/{repository}/searchContent/{searchMethod}", method=GET) public org.springframework.http.ResponseEntity<?> searchContent(org.springframework.data.rest.webmvc.RootResourceInformation repoInfo, org.springframework.data.rest.webmvc.PersistentEntityResourceAssembler assembler, @PathVariable String repository, @PathVariable String searchMethod, @RequestParam(name="keyword") List<String> keywords) throws org.springframework.web.HttpRequestMethodNotSupportedException
org.springframework.web.HttpRequestMethodNotSupportedExceptionprotected org.springframework.hateoas.Resources<?> toResources(Iterable<?> source, org.springframework.data.rest.webmvc.PersistentEntityResourceAssembler assembler, Class<?> domainType, org.springframework.hateoas.Link baseLink)
protected org.springframework.hateoas.Resources<?> entitiesToResources(org.springframework.data.domain.Page<Object> page, org.springframework.data.rest.webmvc.PersistentEntityResourceAssembler assembler, Class<?> domainType, org.springframework.hateoas.Link baseLink)
protected org.springframework.hateoas.Resources<?> entitiesToResources(Iterable<Object> entities, org.springframework.data.rest.webmvc.PersistentEntityResourceAssembler assembler, Class<?> domainType)
protected org.springframework.hateoas.Link getDefaultSelfLink()
Copyright © 2018 Paul Warren. All rights reserved.