public class RepositoryResourceMappings extends PersistentEntitiesResourceMappings
ResourceMetadata
and ResourceMapping
instances for domain types and
repositories.Constructor and Description |
---|
RepositoryResourceMappings(Repositories repositories,
PersistentEntities entities)
|
RepositoryResourceMappings(Repositories repositories,
PersistentEntities entities,
org.springframework.hateoas.RelProvider relProvider)
Creates a new
RepositoryResourceMappings from the given RepositoryRestConfiguration ,
Repositories and RelProvider . |
Modifier and Type | Method and Description |
---|---|
SearchResourceMappings |
getSearchResourceMappings(Class<?> domainType)
Returns the
ResourceMapping s for the search resources of the given type. |
boolean |
hasMappingFor(Class<?> type)
Returns whether we have a
ResourceMapping for the given type. |
boolean |
isMapped(PersistentProperty<?> property) |
addToCache, exportsMappingFor, exportsTopLevelResourceFor, getMappingFor, getMetadataFor, hasMetadataFor, iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public RepositoryResourceMappings(Repositories repositories, PersistentEntities entities)
repositories
- must not be null.entities
- must not be null.public RepositoryResourceMappings(Repositories repositories, PersistentEntities entities, org.springframework.hateoas.RelProvider relProvider)
RepositoryResourceMappings
from the given RepositoryRestConfiguration
,
Repositories
and RelProvider
.repositories
- must not be null.entities
- must not be null.relProvider
- must not be null.public SearchResourceMappings getSearchResourceMappings(Class<?> domainType)
ResourceMappings
ResourceMapping
s for the search resources of the given type.getSearchResourceMappings
in interface ResourceMappings
getSearchResourceMappings
in class PersistentEntitiesResourceMappings
domainType
- must not be null.public boolean hasMappingFor(Class<?> type)
ResourceMappings
ResourceMapping
for the given type.hasMappingFor
in interface ResourceMappings
hasMappingFor
in class PersistentEntitiesResourceMappings
type
- must not be null.public boolean isMapped(PersistentProperty<?> property)
isMapped
in class PersistentEntitiesResourceMappings
Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.