public class RepositoryResourceMappings extends Object implements ResourceMappings
ResourceMetadata and ResourceMapping instances for domain types and
repositories.| Constructor and Description |
|---|
RepositoryResourceMappings(RepositoryRestConfiguration config,
Repositories repositories)
Creates a new
RepositoryResourceMappings using the given RepositoryRestConfiguration and
Repositories . |
RepositoryResourceMappings(RepositoryRestConfiguration config,
Repositories repositories,
org.springframework.hateoas.RelProvider relProvider)
Creates a new
RepositoryResourceMappings from the given RepositoryRestConfiguration,
Repositories and RelProvider. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exportsMappingFor(Class<?> type)
Returns whether we have a
ResourceMapping for the given type and it is exported. |
boolean |
exportsTopLevelResourceFor(String path)
Returns whether we export a top-level resource for the given path.
|
ResourceMetadata |
getMappingFor(Class<?> type)
Returns a
ResourceMetadata for the given type if available. |
ResourceMapping |
getMappingFor(PersistentProperty<?> property) |
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(PersistentProperty<?> property) |
Iterator<ResourceMetadata> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic RepositoryResourceMappings(RepositoryRestConfiguration config, Repositories repositories)
RepositoryResourceMappings using the given RepositoryRestConfiguration and
Repositories .config - repositories - public RepositoryResourceMappings(RepositoryRestConfiguration config, Repositories repositories, org.springframework.hateoas.RelProvider relProvider)
RepositoryResourceMappings from the given RepositoryRestConfiguration,
Repositories and RelProvider.config - must not be null.repositories - must not be null.relProvider - must not be null.public ResourceMetadata getMappingFor(Class<?> type)
ResourceMappingsResourceMetadata for the given type if available.getMappingFor in interface ResourceMappingstype - must not be null.public SearchResourceMappings getSearchResourceMappings(Class<?> domainType)
ResourceMappingsResourceMappings for the search resources of the given type.getSearchResourceMappings in interface ResourceMappingsdomainType - must not be null.public boolean exportsMappingFor(Class<?> type)
ResourceMappingsResourceMapping for the given type and it is exported.exportsMappingFor in interface ResourceMappingspublic boolean exportsTopLevelResourceFor(String path)
ResourceMappingsexportsTopLevelResourceFor in interface ResourceMappingspath - must not be null or empty.public boolean hasMappingFor(Class<?> type)
ResourceMappingsResourceMapping for the given type.hasMappingFor in interface ResourceMappingstype - must not be null.public ResourceMapping getMappingFor(PersistentProperty<?> property)
public boolean isMapped(PersistentProperty<?> property)
public Iterator<ResourceMetadata> iterator()
iterator in interface Iterable<ResourceMetadata>Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.