Interface ResourceMappings
- All Superinterfaces:
Iterable<ResourceMetadata>
,org.springframework.data.util.Streamable<ResourceMetadata>
,Supplier<Stream<ResourceMetadata>>
- All Known Implementing Classes:
PersistentEntitiesResourceMappings
,RepositoryResourceMappings
public interface ResourceMappings
extends org.springframework.data.util.Streamable<ResourceMetadata>
- Author:
- Oliver Gierke
-
Method Summary
Modifier and TypeMethodDescriptionboolean
exportsMappingFor
(Class<?> type) Returns whether we have aResourceMapping
for the given type and it is exported.boolean
Returns whether we export a top-level resource for the given path.getMetadataFor
(Class<?> type) Returns aResourceMetadata
for the given type if available.getSearchResourceMappings
(Class<?> type) Returns theResourceMapping
s for the search resources of the given type.boolean
hasMappingFor
(Class<?> type) Returns whether we have aResourceMapping
for the given type.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface org.springframework.data.util.Streamable
and, and, and, and, filter, flatMap, get, isEmpty, map, stream, toList, toSet
-
Method Details
-
getMetadataFor
Returns aResourceMetadata
for the given type if available.- Parameters:
type
- must not be null.- Returns:
- the
ResourceMetadata
if available or null otherwise.
-
getSearchResourceMappings
Returns theResourceMapping
s for the search resources of the given type.- Parameters:
type
- must not be null.- Returns:
- will never be null.
-
exportsMappingFor
Returns whether we have aResourceMapping
for the given type and it is exported.- Parameters:
type
-- Returns:
-
exportsTopLevelResourceFor
Returns whether we export a top-level resource for the given path.- Parameters:
path
- must not be null or empty.- Returns:
-
hasMappingFor
Returns whether we have aResourceMapping
for the given type.- Parameters:
type
- must not be null.- Returns:
-