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(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
Pageable s. |
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.
|
Constructor and Description |
---|
RepositoryRestHandlerMapping(ResourceMappings mappings,
RepositoryRestConfiguration config)
Creates a new
RepositoryRestHandlerMapping for the given ResourceMappings and
RepositoryRestConfiguration . |
Modifier and Type | Method and Description |
---|---|
RepositoryRestConfiguration |
RepositoryRestMvcConfiguration.config()
Main configuration for the REST exporter.
|
Modifier and Type | Method and Description |
---|---|
protected void |
RepositoryRestMvcConfiguration.configureRepositoryRestConfiguration(RepositoryRestConfiguration config)
Override this method to add additional configuration.
|
Constructor and Description |
---|
PersistentEntityJackson2Module(ResourceMappings mappings,
PersistentEntities entities,
RepositoryRestConfiguration config,
UriToEntityConverter converter)
Creates a new
PersistentEntityJackson2Module using the given ResourceMappings , Repositories
, RepositoryRestConfiguration and UriToEntityConverter . |
Constructor and Description |
---|
RepositoryEntityLinks(Repositories repositories,
ResourceMappings mappings,
RepositoryRestConfiguration config,
HateoasPageableHandlerMethodArgumentResolver resolver,
org.springframework.plugin.core.PluginRegistry<BackendIdConverter,Class<?>> idConverters)
Creates a new
RepositoryEntityLinks . |
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.