public interface ResourceMetadata extends CollectionResourceMapping
Modifier and Type | Method and Description |
---|---|
Class<?> |
getDomainType()
Returns the domain type that is exposed through the resource.
|
ResourceMapping |
getMappingFor(PersistentProperty<?> property)
Returns the
ResourceMapping for the given PersistentProperty or null if not managed. |
PropertyAwareResourceMapping |
getProperty(String mappedPath)
Returns the
PropertyAwareResourceMapping for the given mapped path. |
SearchResourceMappings |
getSearchResourceMappings()
Returns the
SearchResourceMappings , i.e. the mappings for the search resource exposed for the current
resource. |
SupportedHttpMethods |
getSupportedHttpMethods()
Returns the supported
HttpMethod s for the given ResourceType . |
boolean |
isExported(PersistentProperty<?> property)
Returns whether the given
PersistentProperty is a managed resource and in fact exported. |
getExcerptProjection, getItemResourceDescription, getItemResourceRel
getDescription, getPath, getRel, isExported, isPagingResource
Class<?> getDomainType()
boolean isExported(PersistentProperty<?> property)
PersistentProperty
is a managed resource and in fact exported.property
- must not be null.PropertyAwareResourceMapping getProperty(String mappedPath)
PropertyAwareResourceMapping
for the given mapped path.mappedPath
- must not be null or empty.PropertyAwareResourceMapping
for the given path or null if none found.ResourceMapping getMappingFor(PersistentProperty<?> property)
ResourceMapping
for the given PersistentProperty
or null if not managed.property
- must not be null.SearchResourceMappings getSearchResourceMappings()
SearchResourceMappings
, i.e. the mappings for the search resource exposed for the current
resource.SupportedHttpMethods getSupportedHttpMethods()
HttpMethod
s for the given ResourceType
.resourcType
- must not be null.Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.