public class RepositoryEntityLinks
extends org.springframework.hateoas.core.AbstractEntityLinks
EntityLinks implementation that is able to create Link for domain classes managed by Spring Data
REST.| Constructor and Description |
|---|
RepositoryEntityLinks(Repositories repositories,
ResourceMappings mappings,
RepositoryRestConfiguration config,
HateoasPageableHandlerMethodArgumentResolver resolver)
Creates a new
RepositoryEntityLinks. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.hateoas.LinkBuilder |
linkFor(Class<?> type) |
org.springframework.hateoas.LinkBuilder |
linkFor(Class<?> type,
Object... parameters) |
org.springframework.hateoas.Link |
linkToCollectionResource(Class<?> type) |
org.springframework.hateoas.Link |
linkToSingleResource(Class<?> type,
Object id) |
boolean |
supports(Class<?> delimiter) |
@Autowired public RepositoryEntityLinks(Repositories repositories, ResourceMappings mappings, RepositoryRestConfiguration config, HateoasPageableHandlerMethodArgumentResolver resolver)
RepositoryEntityLinks.repositories - must not be null.mappings - must not be null.config - must not be null.resolver - must not be null.Copyright © 2011-2013-2014 Pivotal. All Rights Reserved.