Uses of Class
org.springframework.data.rest.core.config.RepositoryRestConfiguration
Packages that use RepositoryRestConfiguration
Package
Description
-
Uses of RepositoryRestConfiguration in org.springframework.data.rest.core.config
Methods in org.springframework.data.rest.core.config that return RepositoryRestConfigurationModifier and TypeMethodDescriptionRepositoryRestConfiguration.exposeIdsFor
(Class<?>... domainTypes) Set the list of domain types for which we will expose the ID value as a normal property.RepositoryRestConfiguration.setBasePath
(String basePath) Configures the base path to be used by Spring Data REST to expose repository resources.RepositoryRestConfiguration.setDefaultMediaType
(org.springframework.http.MediaType defaultMediaType) Set theMediaType
to use as a default when none is specified.RepositoryRestConfiguration.setDefaultPageSize
(int defaultPageSize) Set the default size ofPageable
s.RepositoryRestConfiguration.setEnableEnumTranslation
(boolean enableEnumTranslation) Configures whether to enable enum value translation via the Spring Data REST default resource bundle.RepositoryRestConfiguration.setLimitParamName
(String limitParamName) Set the name of the URL query string parameter that indicates how many results to return at once.RepositoryRestConfiguration.setLinkRelationProvider
(org.springframework.hateoas.server.LinkRelationProvider provider) Configures theLinkRelationProvider
to be used to calculate theLinkRelation
defaults for repositories.RepositoryRestConfiguration.setMaxPageSize
(int maxPageSize) Set the maximum size of pages.RepositoryRestConfiguration.setPageParamName
(String pageParamName) Set the name of the URL query string parameter that indicates what page to return.RepositoryRestConfiguration.setRepositoryDetectionStrategy
(RepositoryDetectionStrategy repositoryDetectionStrategy) Configures theRepositoryDetectionStrategy
to be used to determine which repositories get exposed.RepositoryRestConfiguration.setReturnBodyForPutAndPost
(Boolean returnBody) Convenience method to activate returning response bodies for allPUT
andPOST
requests, i.e. both creating and updating entities.RepositoryRestConfiguration.setReturnBodyOnCreate
(Boolean returnBody) Set whether to return a response body after creating an entity.RepositoryRestConfiguration.setReturnBodyOnUpdate
(Boolean returnBodyOnUpdate) Set whether to return a response body after updating an entity.RepositoryRestConfiguration.setSortParamName
(String sortParamName) Set the name of the URL query string parameter that indicates what direction to sort results.RepositoryRestConfiguration.useHalAsDefaultJsonMediaType
(boolean useHalAsDefaultJsonMediaType) Configures whether HAL will be served as primary representation in case onapplication/json
is requested. -
Uses of RepositoryRestConfiguration in org.springframework.data.rest.core.mapping
Constructors in org.springframework.data.rest.core.mapping with parameters of type RepositoryRestConfigurationModifierConstructorDescriptionRepositoryResourceMappings
(org.springframework.data.repository.support.Repositories repositories, org.springframework.data.mapping.context.PersistentEntities entities, RepositoryRestConfiguration configuration) Creates a newRepositoryResourceMappings
from the givenRepositoryRestConfiguration
,PersistentEntities
, andRepositories
. -
Uses of RepositoryRestConfiguration in org.springframework.data.rest.core.support
Methods in org.springframework.data.rest.core.support with parameters of type RepositoryRestConfigurationModifier and TypeMethodDescriptionstatic String
ResourceMappingUtils.formatRel
(RepositoryRestConfiguration config, org.springframework.data.repository.core.RepositoryInformation repoInfo, org.springframework.data.mapping.PersistentProperty<?> persistentProperty) Deprecated.static ResourceMapping
ResourceMappingUtils.getResourceMapping
(RepositoryRestConfiguration config, org.springframework.data.mapping.PersistentEntity<?, ?> persistentEntity) Deprecated.static ResourceMapping
ResourceMappingUtils.getResourceMapping
(RepositoryRestConfiguration config, org.springframework.data.repository.core.RepositoryInformation repoInfo) Deprecated. -
Uses of RepositoryRestConfiguration in org.springframework.data.rest.webmvc
Methods in org.springframework.data.rest.webmvc with parameters of type RepositoryRestConfigurationModifier and TypeMethodDescriptionstatic 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.Constructors in org.springframework.data.rest.webmvc with parameters of type RepositoryRestConfigurationModifierConstructorDescriptionBasePathAwareHandlerMapping
(RepositoryRestConfiguration configuration) Creates a newBasePathAwareHandlerMapping
using the givenRepositoryRestConfiguration
.ProfileController
(RepositoryRestConfiguration configuration, RepositoryResourceMappings mappings, org.springframework.data.repository.support.Repositories repositories) Wire up the controller with a copy ofRepositoryRestConfiguration
.ProfileResourceProcessor
(RepositoryRestConfiguration configuration) Creates a newProfileResourceProcessor
with the givenRepositoryRestConfiguration
.RepositoryRestHandlerMapping
(ResourceMappings mappings, RepositoryRestConfiguration config) Creates a newRepositoryRestHandlerMapping
for the givenResourceMappings
andRepositoryRestConfiguration
.RepositoryRestHandlerMapping
(ResourceMappings mappings, RepositoryRestConfiguration config, org.springframework.data.repository.support.Repositories repositories) Creates a newRepositoryRestHandlerMapping
for the givenResourceMappings
RepositoryRestConfiguration
andRepositories
. -
Uses of RepositoryRestConfiguration in org.springframework.data.rest.webmvc.alps
Constructors in org.springframework.data.rest.webmvc.alps with parameters of type RepositoryRestConfigurationModifierConstructorDescriptionAlpsController
(RepositoryRestConfiguration configuration) Creates a newAlpsController
for the givenResourceMappings
.RootResourceInformationToAlpsDescriptorConverter
(Associations associations, org.springframework.data.repository.support.Repositories repositories, org.springframework.data.mapping.context.PersistentEntities persistentEntities, org.springframework.hateoas.server.EntityLinks entityLinks, org.springframework.hateoas.mediatype.MessageResolver resolver, RepositoryRestConfiguration configuration, com.fasterxml.jackson.databind.ObjectMapper mapper, EnumTranslator translator) -
Uses of RepositoryRestConfiguration in org.springframework.data.rest.webmvc.config
Methods in org.springframework.data.rest.webmvc.config with type parameters of type RepositoryRestConfigurationModifier and TypeMethodDescription<T extends RepositoryRestConfiguration & CorsConfigurationAware>
TRepositoryRestMvcConfiguration.repositoryRestConfiguration()
Main configuration for the REST exporter.Methods in org.springframework.data.rest.webmvc.config with parameters of type RepositoryRestConfigurationModifier and TypeMethodDescriptionRepositoryRestMvcConfiguration.alpsConverter
(org.springframework.data.repository.support.Repositories repositories, org.springframework.data.mapping.context.PersistentEntities persistentEntities, RepositoryEntityLinks entityLinks, EnumTranslator enumTranslator, Associations associationLinks, RepositoryRestConfiguration repositoryRestConfiguration) RepositoryRestMvcConfiguration.associationLinks
(RepositoryResourceMappings resourceMappings, RepositoryRestConfiguration repositoryRestConfiguration) RepositoryRestMvcConfiguration.baseUri
(RepositoryRestConfiguration repositoryRestConfiguration) default void
RepositoryRestConfigurer.configureRepositoryRestConfiguration
(RepositoryRestConfiguration config, org.springframework.web.servlet.config.annotation.CorsRegistry cors) Override this method to add additional configuration.void
StaticResourceProvider.customizeResources
(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry, RepositoryRestConfiguration configuration) Customize the givenResourceHandlerRegistry
.List<org.springframework.http.converter.HttpMessageConverter<?>>
RepositoryRestMvcConfiguration.defaultMessageConverters
(org.springframework.hateoas.server.mvc.TypeConstrainedMappingJackson2HttpMessageConverter jacksonHttpMessageConverter, org.springframework.hateoas.server.mvc.TypeConstrainedMappingJackson2HttpMessageConverter halJacksonHttpMessageConverter, org.springframework.hateoas.server.mvc.TypeConstrainedMappingJackson2HttpMessageConverter halFormsJacksonHttpMessageConverter, AlpsJsonHttpMessageConverter alpsJsonHttpMessageConverter, UriListHttpMessageConverter uriListHttpMessageConverter, RepositoryRestConfiguration repositoryRestConfiguration) RepositoryRestMvcConfiguration.entityLinks
(org.springframework.beans.factory.ObjectFactory<org.springframework.data.web.HateoasPageableHandlerMethodArgumentResolver> pageableResolver, org.springframework.data.repository.support.Repositories repositories, RepositoryResourceMappings resourceMappings, org.springframework.plugin.core.PluginRegistry<BackendIdConverter, Class<?>> backendIdConverterRegistry, RepositoryRestConfiguration repositoryRestConfiguration, org.springframework.beans.factory.ObjectFactory<org.springframework.data.web.HateoasSortHandlerMethodArgumentResolver> sortResolver) A specialEntityLinks
implementation that takes repository and current configuration into account when generating links.org.springframework.hateoas.server.mvc.TypeConstrainedMappingJackson2HttpMessageConverter
RepositoryRestMvcConfiguration.halJacksonHttpMessageConverter
(LinkCollector linkCollector, RepositoryRestConfiguration repositoryRestConfiguration) org.springframework.hateoas.server.mvc.TypeConstrainedMappingJackson2HttpMessageConverter
RepositoryRestMvcConfiguration.jacksonHttpMessageConverter
(RepositoryRestConfiguration repositoryRestConfiguration) TheHttpMessageConverter
used by Spring MVC to read and write JSON data.RepositoryRestMvcConfiguration.jsonSchemaConverter
(org.springframework.data.mapping.context.PersistentEntities persistentEntities, Associations associationLinks, org.springframework.data.repository.support.RepositoryInvokerFactory repositoryInvokerFactory, RepositoryRestConfiguration repositoryRestConfiguration) Turns a domain class into aJsonSchema
.RepositoryRestMvcConfiguration.profileResourceProcessor
(RepositoryRestConfiguration repositoryRestConfiguration) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
RepositoryRestMvcConfiguration.repositoryExporterHandlerAdapter
(org.springframework.beans.factory.ObjectProvider<org.springframework.validation.Validator> validator, List<org.springframework.http.converter.HttpMessageConverter<?>> defaultMessageConverters, AlpsJsonHttpMessageConverter alpsJsonHttpMessageConverter, SelfLinkProvider selfLinkProvider, PersistentEntityResourceHandlerMethodArgumentResolver persistentEntityArgumentResolver, RootResourceInformationHandlerMethodArgumentResolver repoRequestArgumentResolver, RepositoryRestConfiguration repositoryRestConfiguration) SpecialHandlerAdapter
that only recognizes handler methods defined in the provided controller classes.RepositoryRestMvcConfiguration.resourceMappings
(org.springframework.data.repository.support.Repositories repositories, org.springframework.data.mapping.context.PersistentEntities persistentEntities, RepositoryRestConfiguration repositoryRestConfiguration) org.springframework.data.rest.webmvc.config.DelegatingHandlerMapping
RepositoryRestMvcConfiguration.restHandlerMapping
(org.springframework.data.repository.support.Repositories repositories, RepositoryResourceMappings resourceMappings, Optional<JpaHelper> jpaHelper, RepositoryRestConfiguration repositoryRestConfiguration, CorsConfigurationAware corsRestConfiguration) TheHandlerMapping
to delegate requests to Spring Data REST controllers.Method parameters in org.springframework.data.rest.webmvc.config with type arguments of type RepositoryRestConfigurationModifier and TypeMethodDescriptionstatic ProjectionDefinitionRegistar
RepositoryRestMvcConfiguration.projectionDefinitionRegistrar
(org.springframework.beans.factory.ObjectFactory<RepositoryRestConfiguration> config) static RepositoryRestConfigurer
RepositoryRestConfigurer.withConfig
(BiConsumer<RepositoryRestConfiguration, org.springframework.web.servlet.config.annotation.CorsRegistry> consumer) Convenience method to easily create simpleRepositoryRestConfigurer
instances that solely want to tweak theRepositoryRestConfiguration
.static RepositoryRestConfigurer
RepositoryRestConfigurer.withConfig
(Consumer<RepositoryRestConfiguration> consumer) Convenience method to easily create simpleRepositoryRestConfigurer
instances that solely want to tweak theRepositoryRestConfiguration
.Constructor parameters in org.springframework.data.rest.webmvc.config with type arguments of type RepositoryRestConfigurationModifierConstructorDescriptionProjectionDefinitionRegistar
(org.springframework.beans.factory.ObjectFactory<RepositoryRestConfiguration> config) Creates a newProjectionDefinitionRegistar
for the givenRepositoryRestConfiguration
. -
Uses of RepositoryRestConfiguration in org.springframework.data.rest.webmvc.json
Constructors in org.springframework.data.rest.webmvc.json with parameters of type RepositoryRestConfigurationModifierConstructorDescriptionPersistentEntityToJsonSchemaConverter
(org.springframework.data.mapping.context.PersistentEntities entities, Associations associations, org.springframework.hateoas.mediatype.MessageResolver resolver, com.fasterxml.jackson.databind.ObjectMapper objectMapper, RepositoryRestConfiguration configuration, PersistentEntityToJsonSchemaConverter.ValueTypeSchemaPropertyCustomizerFactory customizerFactory) Creates a newPersistentEntityToJsonSchemaConverter
for the givenPersistentEntities
andResourceMappings
. -
Uses of RepositoryRestConfiguration in org.springframework.data.rest.webmvc.mapping
Constructors in org.springframework.data.rest.webmvc.mapping with parameters of type RepositoryRestConfigurationModifierConstructorDescriptionAssociations
(ResourceMappings mappings, RepositoryRestConfiguration config) -
Uses of RepositoryRestConfiguration in org.springframework.data.rest.webmvc.support
Constructors in org.springframework.data.rest.webmvc.support with parameters of type RepositoryRestConfigurationModifierConstructorDescriptionRepositoryEntityLinks
(org.springframework.data.repository.support.Repositories repositories, ResourceMappings mappings, RepositoryRestConfiguration config, PagingAndSortingTemplateVariables templateVariables, org.springframework.plugin.core.PluginRegistry<BackendIdConverter, Class<?>> idConverters) RepositoryEntityLinks
(org.springframework.data.repository.support.Repositories repositories, ResourceMappings mappings, RepositoryRestConfiguration config, org.springframework.data.util.Lazy<PagingAndSortingTemplateVariables> templateVariables, org.springframework.plugin.core.PluginRegistry<BackendIdConverter, Class<?>> idConverters)