public class PersistentEntitiesResourceMappings extends Object implements ResourceMappings
ResourceMappings for PersistentEntities.| Constructor and Description |
|---|
PersistentEntitiesResourceMappings(org.springframework.data.mapping.context.PersistentEntities entities)
Creates a new
PersistentEntitiesResourceMappings from the given PersistentEntities. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToCache(Class<?> type,
ResourceMetadata metadata)
Adds the given
ResourceMetadata to the cache. |
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.
|
ResourceMapping |
getMappingFor(org.springframework.data.mapping.PersistentProperty<?> property) |
ResourceMetadata |
getMetadataFor(Class<?> type)
Returns a
ResourceMetadata for the given type if available. |
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. |
protected boolean |
hasMetadataFor(Class<?> type)
Returns whether we currently already have
ResourceMetadata for the given type. |
boolean |
isMapped(org.springframework.data.mapping.PersistentProperty<?> property) |
Iterator<ResourceMetadata> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic PersistentEntitiesResourceMappings(org.springframework.data.mapping.context.PersistentEntities entities)
PersistentEntitiesResourceMappings from the given PersistentEntities.entities - must not be null.public ResourceMetadata getMetadataFor(Class<?> type)
ResourceMappingsResourceMetadata for the given type if available.getMetadataFor in interface ResourceMappingstype - must not be null.ResourceMetadata if available or null otherwise.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(org.springframework.data.mapping.PersistentProperty<?> property)
public boolean isMapped(org.springframework.data.mapping.PersistentProperty<?> property)
public Iterator<ResourceMetadata> iterator()
iterator in interface Iterable<ResourceMetadata>protected final void addToCache(Class<?> type, ResourceMetadata metadata)
ResourceMetadata to the cache.type - must not be null.metadata - can be null.protected final boolean hasMetadataFor(Class<?> type)
ResourceMetadata for the given type.type - must not be null.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.