Commit Graph

504 Commits

Author SHA1 Message Date
Oliver Gierke
64137658ba DATAREST-468 - Added patch media types to documentation section of item resources. 2015-01-27 08:31:36 +01:00
Oliver Gierke
cecdde96ca DATAREST-461 - Ignore unmapped properties when applying PUT requests.
We now make sure that unmapped properties (e.g. by using @JsonIgnore) are ignored when applying PUT request payloads. To do so we now basically use the merging algorithm used for PATCH requests but make sure we fill up the request payload with explicit null values for all mapped but not contained properties.
2015-01-21 14:51:16 +01:00
Oliver Gierke
93202f3696 DATAREST-460 - Polished RepositoryRestMvcConfiguration to fix CGLib proxying.
Made private methods that call @Bean methods protected so that they can become subject to CGLib proxying. Inlined getDefaultedRelProvider().
2015-01-20 10:39:41 +01:00
Oliver Gierke
0f2533885f DATAREST-418 - Updated changelog. 2015-01-20 08:08:14 +01:00
Neeme Praks
72f50e9f79 DATAREST-457 - Fixed typo in JavaDoc of BaseUri.
Original pull request: #159.
2015-01-20 08:00:37 +01:00
Oliver Gierke
527ac2903f DATAREST-446 - Removed RepositoriesUtils in favor of RepositoryMetadata.
To be sure to pick up domain type lookup customizations we now consistently use RepositoryMetadata instead of trying to be clever and re-detecting it via RepositoriesUtils.
2015-01-16 13:15:49 +01:00
Oliver Gierke
8f4c49bc16 DATAREST-445 - Fixed domain type lookup in RepositoryCollectionResourceMapping.
We now use the domain type provided by RepositoryMetadata instead of manually looking up to be sure to pick up customizations correctly.
2015-01-16 12:25:42 +01:00
Oliver Gierke
2ec11a9966 DATAREST-436 - Removed obsolete examples and TCK module. 2015-01-09 16:40:42 +01:00
Oliver Gierke
d248f60701 DATAREST-434 - Forward root exception in PersistentEntityResourceHandlerMethodArgumentResolver. 2015-01-08 10:54:54 +01:00
Oliver Gierke
a9199da896 DATAREST-427 - Refactorings in UriToEntityConverter.
Instead of using a DomainClassConverter directly we now use a raw ConversionService in UriToEntityConverter. This allos us to get rid off the bean definitions for UriToEntityConverter and DomainClassConverter. The population of the ConversionService is now taken care of by calling SpringDataWebConfiguration's addFormatter(…) in defaultConversionService().

Added unit tests for UriToEntityConverter.
2015-01-05 15:48:10 +01:00
John K. Tims
0476ae6712 DATAREST-430 - Fixed typos in reference documentation.
Original pull request: #157.
2015-01-03 16:51:12 +01:00
Oliver Gierke
4ba65a52a3 DATAREST-424 - Registered HttpMessageConverters now implement Ordered.
To be able to control the order of the HttpMessageConverter beans registered by RepositoryRestMvcConfiguration we now use a dedicated subtype of TypeConstrainedMappingJackson2HttpMessageConverter which additionally implements Ordered.
2014-12-10 19:47:02 +01:00
Oliver Gierke
11668b3439 DATAREST-423 - Fixed HandlerAdapterSetup to consider ConversionService.
The special RepositoryRestHandlerAdapter we set up for repository invocations didn't consider the ConversionService Spring Data REST sets up. This causes binding issues in case someone wants to override resource handling by declaring an @RepositoryRestController and using a domain type as handler method argument.

We now explicitly configure the RepositoryRestHandlerAdapter to use the ConversionService we set up and equip with Spring Data Commons' DomainClassConverter.
2014-12-09 13:15:21 +01:00
Hendy Irawan
51cce29e8c DATAREST-422 - Fixed broken link to reference documentation in README.
Original pull request: #153.
2014-12-05 15:30:15 +01:00
Oliver Gierke
58e748f141 DATAREST-388 - Improved annotation based event handling.
We're now using ReflectionUtils.invokeMethod(…) to avoid the exceptions being thrown from reflectively-invoked event handler methods to be wrapped in IllegalStateExceptions.

Related pull request: #151.
2014-12-04 19:11:24 +01:00
Oliver Gierke
c9795664b8 DATAREST-394, DATAREST-408 - Projections now consider collections and maps.
The ProjectingMethodInterceptor now inspects collections and maps to apply projections to collection elements and map values. Test cases inspired by a contribution of Saulo Medeiros de Araujo.

Related pull request: #152.
2014-12-01 19:04:29 +01:00
Oliver Gierke
47622630a3 DATAREST-227 - Renamed WebTestUtils to TestMvcClient.
Renmaed WebTestUtils to TestMvcClient, added assertions to constructor and fixed formatting of JavaDoc.

Original pull request: #149.
2014-11-10 16:56:48 +01:00
Greg Turnquist
3cba04d9b0 DATAREST-227 - Broke up AbstractWebIntegrationTest and its subclasses.
Decouple the test machinery of this class from the barrage of common test cases used against the various data stores. This way, other test suites that use the same integration approach don't have to be a part of this class hierarchy. Also move utilities and assertion methods into separate utility classes to slim down the class hierarchy.

Original pull request: #149.
2014-11-10 16:56:41 +01:00
Oliver Gierke
0b8a186271 DATAREST-401 - After release cleanups. 2014-10-31 21:34:47 +01:00
Spring Buildmaster
942bb63c19 DATAREST-401 - Prepare next development iteration. 2014-10-31 13:27:03 -07:00
Spring Buildmaster
050b3140ba DATAREST-401 - Release version 2.2.1.RELEASE. 2014-10-31 13:26:59 -07:00
Oliver Gierke
bd71fb930e DATAREST-401 - Prepare 2.2.1.RELEASE (Evans SR1). 2014-10-31 21:04:15 +01:00
Oliver Gierke
e2644a0bcf DATAREST-401 - Updated changelog. 2014-10-30 11:57:45 +01:00
Oliver Gierke
f51c0154ee DATAREST-381 - Improved HandlerMapping infrastructure to make sure controllers consider base URI.
Removed class-level @RequestMapping annotations as the controllers get picked up by standard Spring MVC and are exposed via the root even if a base URI is configured. Created custom @BaseUriAwareController and use that in AlpsController to make sure it doesn't get picked up by Spring MVC.
2014-10-21 22:12:09 +02:00
Oliver Gierke
7812587931 DATAREST-384 - Fixed affordances and execution of sortable search resources.
Search resources are now considered sortable if they contain a Sort parameter. This is now reflected in MethodResourceMapping.isSortableResource().

Building on top of that, the RepositorySearchController now appends the sort template variable to links generated when listing search resources. It also now accepts resolved Sort instances to forward them to the query method execution. The controller now also uses DefaultedPageable so that request missing pagination information use the defaults configured for the PageableHandlerMethodArgumentResolver.
2014-10-15 13:32:32 +02:00
Oliver Gierke
12abae17e9 DATAREST-380 - Remove obsolete repository declaration. 2014-10-15 12:23:48 +02:00
Oliver Gierke
32bda65bcf DATAREST-385 - Projection definition configurations are now detected for super types.
Projections defined for a parent type are now also available for sub-types.
2014-10-15 12:21:55 +02:00
Oliver Gierke
73526e9158 DATAREST-380 - After release cleanups. 2014-09-05 14:25:31 +02:00
Spring Buildmaster
0190789486 DATAREST-380 - Prepare next development iteration. 2014-09-05 14:22:10 +02:00
Spring Buildmaster
31b689a566 DATAREST-380 - Release version 2.2.0.RELEASE (Evans GA). 2014-09-05 03:56:15 -07:00
Oliver Gierke
e4942c74ff DATAREST-380 - Prepare 2.2.0.RELEASE (Evans GA). 2014-09-05 12:49:12 +02:00
Oliver Gierke
5169b6a0d1 DATAREST-380 - Updated changelog. 2014-09-05 09:23:52 +02:00
Oliver Gierke
1b2f46f608 DATAREST-378 - Updated changelog. 2014-09-05 08:19:33 +02:00
Oliver Gierke
c84ab6ad44 DATAREST-374 - After release cleanups. 2014-08-13 16:33:21 +02:00
Spring Buildmaster
78ec4a8771 DATAREST-374 - Prepare next development iteration. 2014-08-13 07:27:55 -07:00
Spring Buildmaster
37a5300e87 DATAREST-374 - Release version 2.2.0.RC1 (Evans RC1). 2014-08-13 07:27:52 -07:00
Oliver Gierke
6250eabcd0 DATAREST-374 - Prepare 2.2.0.RC1 (Evans RC1). 2014-08-13 16:13:19 +02:00
Oliver Gierke
95b69967bb DATAREST-374 - Updated changelog. 2014-08-13 15:05:19 +02:00
Oliver Gierke
c9dcba68eb DATAREST-374 - Added Gemfire repository to be able to resolve 8.0 artifacts. 2014-08-13 15:00:33 +02:00
Oliver Gierke
0f74c213fe DATAREST-361 - Updated changelog. 2014-08-13 11:06:25 +02:00
Greg Turnquist
50d9c6914f DATAREST-364 - Reference documentation is now written in Asciidoctor.
Original pull request: #146.
2014-08-10 16:23:25 +02:00
Oliver Gierke
2d64fb4d84 DATAREST-326 - Improved configuration setup for better Boot compatibility.
We now don't expose the PersistentEntityJackson2Module as bean anymore to prevent global registration in case of a Boot setup. The HttpMessageConverters registered are now TypeConstrainedMappingJackson2HttpMessageConverters so that they only get used of the object to marshal is of type ResourceSupport.
2014-07-25 16:33:07 +02:00
Oliver Gierke
aa28aebca5 DATAREST-353 - Fixed potential NullPointerException when trying to delete a non-existing resource.
We now correctly return a 404 Not Found in case we receive a DELETE request for a resource not existing.
2014-07-16 17:44:02 +02:00
Oliver Gierke
07a8dd2ca6 DATAREST-319 - Adapt to changes in Spring Data Commons.
Fixed ReflectionRepositoryInvokerIntegrationTests after some CRUD method detection changes that invalidated the test cases.

Related ticket: DATACMNS-539.
2014-07-15 11:03:18 +02:00
Oliver Gierke
3a583ba511 DATAREST-350 - After release cleanups. 2014-07-10 20:45:44 +02:00
Spring Buildmaster
9e1c607abb DATAREST-350 - Prepare next development iteration. 2014-07-10 20:35:04 +02:00
Spring Buildmaster
527d2391ce DATAREST-350 - Release version 2.2.0.M1. 2014-07-10 20:35:04 +02:00
Oliver Gierke
c722743ad1 DATAREST-350 - Prepare 2.2.0.M1 (Evans M1). 2014-07-10 20:35:00 +02:00
Oliver Gierke
507bed6698 DATAREST-350 - Updated changelog. 2014-07-10 20:34:48 +02:00
Oliver Gierke
48700f239d DATAREST-337 - Updated changelog. 2014-07-10 17:07:56 +02:00