public class AssociationLinks extends Object
Links representing an association.| Constructor and Description |
|---|
AssociationLinks(ResourceMappings mappings)
Creates a new
AssociationLinks using the given ResourceMappings. |
| Modifier and Type | Method and Description |
|---|---|
List<org.springframework.hateoas.Link> |
getLinksFor(Association<? extends PersistentProperty<?>> association,
Path path)
Returns the links to render for the given
Association. |
boolean |
isLinkableAssociation(PersistentProperty<?> property)
Returns whether the given property is an association that is linkable.
|
public AssociationLinks(ResourceMappings mappings)
AssociationLinks using the given ResourceMappings.mappings - must not be null.public List<org.springframework.hateoas.Link> getLinksFor(Association<? extends PersistentProperty<?>> association, Path path)
Association.association - must not be null.path - must not be null.public boolean isLinkableAssociation(PersistentProperty<?> property)
property - can be null.Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.