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 theResourceMappingfor the givenPersistentPropertyor null if not managed.getProperty(String mappedPath) Returns thePropertyAwareResourceMappingfor the given mapped path.Returns theSearchResourceMappings, i.e. the mappings for the search resource exposed for the current resource.Returns the supportedHttpMethods.booleanisExported(PersistentProperty<?> property) Returns whether the givenPersistentPropertyis a managed resource and in fact exported.Methods inherited from interface org.springframework.data.rest.core.mapping.CollectionResourceMapping
getExcerptProjection, getItemResourceDescription, getItemResourceRelMethods 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 givenPersistentPropertyis a managed resource and in fact exported.- Parameters:
property- must not be null.- Returns:
-
getProperty
Returns thePropertyAwareResourceMappingfor the given mapped path.- Parameters:
mappedPath- must not be null or empty.- Returns:
- the
PropertyAwareResourceMappingfor the given path or null if none found.
-
getMappingFor
Returns theResourceMappingfor the givenPersistentPropertyor 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 supportedHttpMethods.- Returns:
-