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,
RepositoryRestConfiguration configuration)
Creates a new
RepositoryResourceMappings from the given RepositoryRestConfiguration ,
PersistentEntities , and Repositories . |
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(org.springframework.data.mapping.PersistentProperty<?> property) |
addToCache, exportsMappingFor, exportsTopLevelResourceFor, getMappingFor, getMetadataFor, hasMetadataFor, iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, and, and, and, empty, filter, flatMap, get, isEmpty, map, of, of, of, stream, toList, toSet, toStreamable, toStreamable
forEach, spliterator
public RepositoryResourceMappings(org.springframework.data.repository.support.Repositories repositories, org.springframework.data.mapping.context.PersistentEntities entities, RepositoryRestConfiguration configuration)
RepositoryResourceMappings
from the given RepositoryRestConfiguration
,
PersistentEntities
, and Repositories
.repositories
- must not be null.entities
- must not be null.configuration
- 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(org.springframework.data.mapping.PersistentProperty<?> property)
isMapped
in class PersistentEntitiesResourceMappings
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.