| Package | Description |
|---|---|
| org.springframework.data.rest.core.config | |
| org.springframework.data.rest.core.mapping | |
| org.springframework.data.rest.core.support |
| Modifier and Type | Method and Description |
|---|---|
RepositoryRestConfiguration |
RepositoryRestConfiguration.exposeIdsFor(Class<?>... domainTypes)
Set the list of domain types for which we will expose the ID value as a normal property.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setBaseUri(String baseUri)
The base URI against which the exporter should calculate its links.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setBaseUri(URI baseUri)
The base URI against which the exporter should calculate its links.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setDefaultMediaType(MediaType defaultMediaType)
Set the
MediaType to use as a default when none is specified. |
RepositoryRestConfiguration |
RepositoryRestConfiguration.setDefaultPageSize(int defaultPageSize)
Set the default size of
Pageables. |
RepositoryRestConfiguration |
RepositoryRestConfiguration.setLimitParamName(String limitParamName)
Set the name of the URL query string parameter that indicates how many results to return at once.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setMaxPageSize(int maxPageSize)
Set the maximum size of pages.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setPageParamName(String pageParamName)
Set the name of the URL query string parameter that indicates what page to return.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setReturnBodyOnCreate(boolean returnBodyOnCreate)
Set whether to return a response body after creating an entity.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setReturnBodyOnUpdate(boolean returnBodyOnUpdate)
Sets whether to return a response body after updating an entity.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setSortParamName(String sortParamName)
Set the name of the URL query string parameter that indicates what direction to sort results.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.useHalAsDefaultJsonMediaType(boolean useHalAsDefaultJsonMediaType)
Configures whether HAL will be served as primary representation in case on
application/json is requested. |
| Constructor and Description |
|---|
RepositoryResourceMappings(RepositoryRestConfiguration config,
Repositories repositories)
Creates a new
RepositoryResourceMappings using the given RepositoryRestConfiguration and
Repositories . |
RepositoryResourceMappings(RepositoryRestConfiguration config,
Repositories repositories,
org.springframework.hateoas.RelProvider relProvider)
Creates a new
RepositoryResourceMappings from the given RepositoryRestConfiguration,
Repositories and RelProvider. |
| Modifier and Type | Method and Description |
|---|---|
static String |
ResourceMappingUtils.formatRel(RepositoryRestConfiguration config,
RepositoryInformation repoInfo,
PersistentProperty<?> persistentProperty)
Deprecated.
|
static ResourceMapping |
ResourceMappingUtils.getResourceMapping(RepositoryRestConfiguration config,
PersistentEntity<?,?> persistentEntity)
Deprecated.
|
static ResourceMapping |
ResourceMappingUtils.getResourceMapping(RepositoryRestConfiguration config,
RepositoryInformation repoInfo)
Deprecated.
|
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.