public class DefaultLinkCollector extends Object implements LinkCollector
Constructor and Description |
---|
DefaultLinkCollector(PersistentEntities entities,
SelfLinkProvider linkProvider,
Associations associationLinks)
Creates a new
DefaultLinkCollector for the given PersistentEntities , SelfLinkProvider and
Associations . |
Modifier and Type | Method and Description |
---|---|
org.springframework.hateoas.Links |
getLinksFor(Object object)
Returns all
Links for the given object. |
org.springframework.hateoas.Links |
getLinksFor(Object object,
org.springframework.hateoas.Links existingLinks)
Returns all
Links for the given object and already existing Link . |
org.springframework.hateoas.Links |
getLinksForNested(Object object,
org.springframework.hateoas.Links existing) |
public DefaultLinkCollector(PersistentEntities entities, SelfLinkProvider linkProvider, Associations associationLinks)
DefaultLinkCollector
for the given PersistentEntities
, SelfLinkProvider
and
Associations
.entities
- must not be null.linkProvider
- must not be null.associationLinks
- must not be null.public org.springframework.hateoas.Links getLinksFor(Object object)
Links
for the given object.getLinksFor
in interface LinkCollector
object
- must not be null.public org.springframework.hateoas.Links getLinksFor(Object object, org.springframework.hateoas.Links existingLinks)
Links
for the given object and already existing Link
.getLinksFor
in interface LinkCollector
object
- must not be null.existingLinks
- must not be null.public org.springframework.hateoas.Links getLinksForNested(Object object, org.springframework.hateoas.Links existing)
getLinksForNested
in interface LinkCollector
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.