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,
org.springframework.plugin.core.PluginRegistry<BackendIdConverter,Class<?>> idConverters)
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, org.springframework.plugin.core.PluginRegistry<BackendIdConverter,Class<?>> idConverters)
RepositoryEntityLinks.repositories - must not be null.mappings - must not be null.config - must not be null.resolver - must not be null.idConverters - must not be null.Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.