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.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.setReturnBodyForPutAndPost(Boolean returnBody)
Convenience method to activate returning response bodies for all
PUT and POST requests, i.e. both
creating and updating entities. |
RepositoryRestConfiguration |
RepositoryRestConfiguration.setReturnBodyOnCreate(Boolean returnBody)
Set whether to return a response body after creating an entity.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setReturnBodyOnUpdate(Boolean returnBodyOnUpdate)
Set 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. |
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.
|
Modifier and Type | Method and Description |
---|---|
static String |
ProfileController.getPath(RepositoryRestConfiguration configuration,
ResourceMapping mapping)
Return the href for the profile link of a given baseUri and domain type mapping.
|
static String |
ProfileController.getRootPath(RepositoryRestConfiguration configuration)
Return the href for the profile root link of a given baseUri.
|
Constructor and Description |
---|
BasePathAwareHandlerMapping(RepositoryRestConfiguration configuration)
Creates a new
BasePathAwareHandlerMapping using the given RepositoryRestConfiguration . |
ProfileController(RepositoryRestConfiguration configuration,
RepositoryResourceMappings mappings,
Repositories repositories)
Wire up the controller with a copy of
RepositoryRestConfiguration . |
ProfileResourceProcessor(RepositoryRestConfiguration configuration)
Creates a new
ProfileResourceProcessor with the given RepositoryRestConfiguration . |
RepositoryRestHandlerMapping(ResourceMappings mappings,
RepositoryRestConfiguration config)
Creates a new
RepositoryRestHandlerMapping for the given ResourceMappings and
RepositoryRestConfiguration . |
Constructor and Description |
---|
AlpsController(RepositoryRestConfiguration configuration)
Creates a new
AlpsController for the given ResourceMappings . |
RootResourceInformationToAlpsDescriptorConverter(ResourceMappings mappings,
Repositories repositories,
PersistentEntities entities,
org.springframework.hateoas.EntityLinks entityLinks,
MessageSourceAccessor messageSource,
RepositoryRestConfiguration configuration,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Creates a new
RootResourceInformationToAlpsDescriptorConverter instance. |
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)
Deprecated.
since 2.4, implement
RepositoryRestConfigurer.configureRepositoryRestConfiguration(RepositoryRestConfiguration)
either directly or extend RepositoryRestConfigurerAdapter and override the method. |
void |
RepositoryRestConfigurerAdapter.configureRepositoryRestConfiguration(RepositoryRestConfiguration config) |
void |
RepositoryRestConfigurer.configureRepositoryRestConfiguration(RepositoryRestConfiguration config)
Override this method to add additional configuration.
|
ProfileResourceProcessor |
RepositoryRestMvcConfiguration.profileResourceProcessor(RepositoryRestConfiguration config) |
Constructor and Description |
---|
HalBrowser(RepositoryRestConfiguration configuration)
Creates a new
HalBrowser for the given RepositoryRestConfiguration . |
Constructor and Description |
---|
PersistentEntityJackson2Module(ResourceMappings mappings,
PersistentEntities entities,
RepositoryRestConfiguration config,
UriToEntityConverter converter,
org.springframework.hateoas.EntityLinks entityLinks)
Creates a new
PersistentEntityJackson2Module using the given ResourceMappings , Repositories
, RepositoryRestConfiguration and UriToEntityConverter . |
PersistentEntityToJsonSchemaConverter(PersistentEntities entities,
ResourceMappings mappings,
MessageSourceAccessor accessor,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
RepositoryRestConfiguration configuration)
Creates a new
PersistentEntityToJsonSchemaConverter for the given PersistentEntities and
ResourceMappings . |
Constructor and Description |
---|
RepositoryEntityLinks(Repositories repositories,
ResourceMappings mappings,
RepositoryRestConfiguration config,
PagingAndSortingTemplateVariables templateVariables,
org.springframework.plugin.core.PluginRegistry<BackendIdConverter,Class<?>> idConverters)
Creates a new
RepositoryEntityLinks . |
Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.