Interface ResourceMetadata
- All Superinterfaces:
CollectionResourceMapping
,ResourceMapping
Interface for metadata of resources exposed through the system.
- Author:
- Oliver Gierke
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
Returns the domain type that is exposed through the resource.getMappingFor
(PersistentProperty<?> property) Returns theResourceMapping
for the givenPersistentProperty
or null if not managed.getProperty
(String mappedPath) Returns thePropertyAwareResourceMapping
for the given mapped path.Returns theSearchResourceMappings
, i.e. the mappings for the search resource exposed for the current resource.Returns the supportedHttpMethod
s.boolean
isExported
(PersistentProperty<?> property) Returns whether the givenPersistentProperty
is a managed resource and in fact exported.Methods inherited from interface org.springframework.data.rest.core.mapping.CollectionResourceMapping
getExcerptProjection, getItemResourceDescription, getItemResourceRel
Methods inherited from interface org.springframework.data.rest.core.mapping.ResourceMapping
getDescription, getPath, getRel, isExported, isPagingResource
-
Method Details
-
getDomainType
Class<?> getDomainType()Returns the domain type that is exposed through the resource.- Returns:
-
isExported
Returns whether the givenPersistentProperty
is a managed resource and in fact exported.- Parameters:
property
- must not be null.- Returns:
-
getProperty
Returns thePropertyAwareResourceMapping
for the given mapped path.- Parameters:
mappedPath
- must not be null or empty.- Returns:
- the
PropertyAwareResourceMapping
for the given path or null if none found.
-
getMappingFor
Returns theResourceMapping
for the givenPersistentProperty
or null if not managed.- Parameters:
property
- must not be null.- Returns:
-
getSearchResourceMappings
SearchResourceMappings getSearchResourceMappings()Returns theSearchResourceMappings
, i.e. the mappings for the search resource exposed for the current resource.- Returns:
-
getSupportedHttpMethods
SupportedHttpMethods getSupportedHttpMethods()Returns the supportedHttpMethod
s.- Returns:
-