public class RepositoryResourceMappings extends PersistentEntitiesResourceMappings
ResourceMetadata and ResourceMapping instances for domain types and
repositories.| Constructor and Description |
|---|
RepositoryResourceMappings(org.springframework.data.repository.support.Repositories repositories,
org.springframework.data.mapping.context.PersistentEntities entities,
RepositoryDetectionStrategy strategy)
|
RepositoryResourceMappings(org.springframework.data.repository.support.Repositories repositories,
org.springframework.data.mapping.context.PersistentEntities entities,
RepositoryDetectionStrategy strategy,
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
ResourceMappings for the search resources of the given type. |
boolean |
hasMappingFor(Class<?> type)
Returns whether we have a
ResourceMapping for the given type. |
boolean |
isMapped(org.springframework.data.mapping.PersistentProperty<?> property) |
addToCache, exportsMappingFor, exportsTopLevelResourceFor, getMappingFor, getMetadataFor, hasMetadataFor, iteratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic RepositoryResourceMappings(org.springframework.data.repository.support.Repositories repositories,
org.springframework.data.mapping.context.PersistentEntities entities,
RepositoryDetectionStrategy strategy)
repositories - must not be null.entities - must not be null.strategy - must not be null.public RepositoryResourceMappings(org.springframework.data.repository.support.Repositories repositories,
org.springframework.data.mapping.context.PersistentEntities entities,
RepositoryDetectionStrategy strategy,
org.springframework.hateoas.RelProvider relProvider)
RepositoryResourceMappings from the given RepositoryRestConfiguration,
Repositories and RelProvider.repositories - must not be null.entities - must not be null.strategy - must not be null.relProvider - must not be null.public SearchResourceMappings getSearchResourceMappings(Class<?> domainType)
ResourceMappingsResourceMappings for the search resources of the given type.getSearchResourceMappings in interface ResourceMappingsgetSearchResourceMappings in class PersistentEntitiesResourceMappingsdomainType - must not be null.public boolean hasMappingFor(Class<?> type)
ResourceMappingsResourceMapping for the given type.hasMappingFor in interface ResourceMappingshasMappingFor in class PersistentEntitiesResourceMappingstype - must not be null.public boolean isMapped(org.springframework.data.mapping.PersistentProperty<?> property)
isMapped in class PersistentEntitiesResourceMappingsCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.