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 |
linkToPagedResource(Class<?> type,
Pageable pageable) |
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.public boolean supports(Class<?> delimiter)
public org.springframework.hateoas.LinkBuilder linkFor(Class<?> type)
public org.springframework.hateoas.Link linkToPagedResource(Class<?> type, Pageable pageable)
public org.springframework.hateoas.Link linkToCollectionResource(Class<?> type)
Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.