Commit Graph

995 Commits

Author SHA1 Message Date
Mark Paluch
65ad7cd3e1 DATAREST-1198 - Add Converter to convert String to javax.naming.ldap.LdapName.
We now provide and configure a converter for String to LdapName conversion so Spring Data LDAP can be used with Spring Data REST without further configuration.

Original pull request: #290.
2018-06-13 10:14:44 +02:00
Oliver Gierke
843540b746 DATAREST-1250 - Polishing.
Added unit test to verify new behavior and prevent regressions. Fixed author capitalization.
2018-06-05 10:11:37 +02:00
tigger
0cc1f22741 DATAREST-296 - ResourceMetadataHandlerMethodArgumentResolver now properly implements ….supports(…).
ResourceMetadataHandlerMethodArgumentResolver.supports(…) now properly checks for ResourceMetadata. It previously checked for RepositoryInformation which is probably a left-over from a previous state of the codebase and has been unnoticed so far as the class is only used as a direct dependency of other HandlerMethodArgumentResolvers.
2018-06-05 10:04:08 +02:00
Oliver Gierke
17c8c7ee2c DATAREST-1249 - Polishing. 2018-05-30 11:04:37 +02:00
Oliver Gierke
b61cb9ab28 DATAREST-1249 - DomainObjectMerger now properly binds to uninitialized target collections. 2018-05-30 10:40:34 +02:00
Oliver Gierke
a1454058d9 DATAREST-948 - Introduced ExposureConfiguration to allow customizing the exposure of HTTP methods of repositories.
ExposureConfiguration exposes methods to register AggregateResourceHttpMethodsFilter and AssociationResourceHttpMethodsFilter (both applied by type or globally) to customize the supported HTTP methods by collection, item and association resources. It also provides shortcuts for common use cases like disabling PUT for item resources etc.
2018-05-30 10:40:28 +02:00
Jay Bryant
3cc1af4939 DATAREST-1246 - Full edit of the reference docs.
I edited for grammar, punctuation, spelling, usage, and corporate voice. I also added the epub-cover image (and the SVG file from which it can be generated).
2018-05-25 12:06:36 -05:00
Christoph Strobl
8346e84537 DATAREST-1230 - After release cleanups. 2018-05-17 10:09:36 +02:00
Christoph Strobl
769a48d073 DATAREST-1230 - Prepare next development iteration. 2018-05-17 10:09:34 +02:00
Christoph Strobl
108d9106b8 DATAREST-1230 - Release version 3.1 M3 (Lovelace). 2018-05-17 09:51:42 +02:00
Christoph Strobl
cf1d6f47d0 DATAREST-1230 - Prepare 3.1 M3 (Lovelace). 2018-05-17 09:50:48 +02:00
Christoph Strobl
348b23f1ad DATAREST-1230 - Updated changelog. 2018-05-17 09:50:45 +02:00
Mark Paluch
3cc5b46fbd DATAREST-1227 - Updated changelog. 2018-05-08 15:27:22 +02:00
Mark Paluch
e7c36ce948 DATAREST-1226 - Updated changelog. 2018-05-08 12:22:52 +02:00
Mark Paluch
3438d168df DATAREST-1231 - Upgrade to Solr 7.2.1. 2018-04-13 15:53:51 +02:00
Mark Paluch
0daa25e330 DATAREST-1196 - After release cleanups. 2018-04-13 15:08:34 +02:00
Mark Paluch
6a968d0f9c DATAREST-1196 - Prepare next development iteration. 2018-04-13 15:08:32 +02:00
Mark Paluch
c2327c4ff2 DATAREST-1196 - Release version 3.1 M2 (Lovelace). 2018-04-13 14:30:58 +02:00
Mark Paluch
b14cd0d97d DATAREST-1196 - Prepare 3.1 M2 (Lovelace). 2018-04-13 14:30:01 +02:00
Mark Paluch
aae903d49d DATAREST-1196 - Updated changelog. 2018-04-13 14:29:58 +02:00
Mark Paluch
9a26f2a9fd DATAREST-1206 - Updated changelog. 2018-04-04 17:12:54 +02:00
Oliver Gierke
e76e5dd4f2 DATAREST-1225 - Upgrade to Spring Security 5.0.3 for integration tests. 2018-04-04 15:44:20 +02:00
Mark Paluch
081a8ddbdd DATAREST-1185 - Updated changelog. 2018-04-04 15:16:22 +02:00
Oliver Gierke
7eaf50d997 DATAREST-1222 - Switched to SimpleEvaluationContext for SpEL-based PATCH handling. 2018-03-28 09:56:50 +02:00
Oliver Gierke
75109533c9 DATAREST-1219 - Removed explicit declaration of Jackson library versions. 2018-03-27 19:53:57 +02:00
Oliver Gierke
e6bcad0e70 DATAREST-1219 - Removed explicit declaration of Jackson library versions. 2018-03-27 19:45:24 +02:00
Oliver Gierke
848cd184b1 DATAREST-1215 - Polishing. 2018-03-14 10:04:29 +01:00
Oliver Gierke
80e25ce522 DATAREST-1215 - Added project.root configuration to make JavaDoc generation work again.
Related ticket: https://github.com/spring-projects/spring-data-build/issues/527.
2018-03-14 10:04:23 +01:00
Oliver Gierke
e79b73664a DATAREST-1212 - Deprecated RepositoryRestConfigurerAdapter.
We now recommend to implement RepositoryRestConfigurer directly as its declared methods are now default methods. We also introduced a static factory method to easily create a configurer to customize RepositoryRestConfiguration via a Lambda expression.

Moved test case setups that use that deprecated API to the new one.
2018-03-12 13:21:14 +01:00
Mark Paluch
7aeb31bdd8 DATAREST-1200 - Updated changelog. 2018-02-28 11:17:39 +01:00
Mark Paluch
1c28ce66fb DATAREST-1187 - Updated changelog. 2018-02-19 20:30:08 +01:00
Oliver Gierke
622cf07720 DATAREST-1193 - DelegatingHandlerMapping is now a MatchableHandlerMapping.
DelegatingHandlerMapping now implements MatchableHandlerMapping by selecting the a delegate based on the already implemented algorithm and then invoking the ….match(…) method in case the selected one is a MatchableHandlerMapping in turn.

Refactored the internals a bit to be able to reuse the selection algorithm from both ….getHandler(…) and ….match(…).
2018-02-19 18:04:25 +01:00
Christoph Strobl
4dd66ba782 DATAREST-1141 - After release cleanups. 2018-02-06 10:11:17 +01:00
Christoph Strobl
1fcfe12168 DATAREST-1141 - Prepare next development iteration. 2018-02-06 10:11:15 +01:00
Christoph Strobl
cd594d5c46 DATAREST-1141 - Release version 3.1 M1 (Lovelace). 2018-02-06 09:47:10 +01:00
Christoph Strobl
95400c18bb DATAREST-1141 - Prepare 3.1 M1 (Lovelace). 2018-02-06 09:45:50 +01:00
Christoph Strobl
3eac353eb8 DATAREST-1141 - Updated changelog. 2018-02-06 09:45:47 +01:00
Mark Paluch
20151dc4bb DATAREST-1162 - Updated changelog. 2018-01-24 13:41:25 +01:00
Mark Paluch
e351a0c395 DATAREST-1161 - Updated changelog. 2018-01-24 12:22:14 +01:00
Oliver Gierke
9c9d125d78 DATAREST-1177 - DefaultExposureAwareCrudMethods now caches results. 2018-01-24 11:06:25 +01:00
Mark Paluch
5b47d8c95b DATAREST-1184 - Adapt to CORS changes in Spring Framework 5.0.3. 2018-01-24 10:26:34 +01:00
Oliver Gierke
a10aa934b7 DATAREST-1176 - Repository method exposure can now be controlled via RepositoryRestConfiguration.
The default exposure of repository methods is now controlled via RepositoryRestConfiguration.setExposeRepositoryMethodsByDefault(…). That allows us to remove the additional API from RepositoryDetectionStrategy as the mere detection is an orthogonal topic.

Also added RepositoryRestConfiguration.disableDefaultExposure() to set the RepositoryDetectionStategy to ANNOTATED and disables default method exposure in one go. That can be exposed via a Spring Boot configuration property downstream.
2018-01-18 18:41:07 +01:00
Oliver Gierke
6b61d2b026 DATAREST-1176 - Polishing.
Moved the flag to decide whether to expose repository methods by default to the RepositoryDetectionStrategy interface, so that it can be directly accessed and the test on the particular enum value is not needed anymore and thus also not duplicated into different parts of the codebase.

Added more tests to actually verify behavior on CrudMethodsSupportedHttpMethods. DefaultExposureAwareCrudMethods uses @RequiredArgumentConstructor again.
2018-01-18 18:41:07 +01:00
Tobias Weiß
5172f89281 DATAREST-1176 - Add explicitly method annotated detection strategy 2018-01-18 18:41:07 +01:00
Simon Allegraud
d4a3ba1195 DATAREST-1181 - Prevent NullPointerException during JsonLateObjectEvaluator.evaluate(…).
Original pull request: #287.
2018-01-18 13:49:53 +01:00
Oliver Gierke
7edfc75472 DATAREST-1174 - Enable constructor properties to make sure WrappedPropertiesUnitTests continue to work.
Removed Lombok constructor and accessor generation to avoid having to deal with the changed default in Lombok 1.16.20 not generating @ConstructorProperties by default anymore.
2018-01-10 12:51:29 +01:00
Mark Paluch
5d9dbf1823 DATAREST-1170 - Update copyright years to 2018. 2018-01-09 08:44:14 +01:00
Oliver Gierke
1ebdeb9589 DATAREST-1163 - ValidationErrors now properly looks up null values.
The field value lookup in ValidationErrors previously threw a NotReadablePropertyException in case a property value was null as we incorrectly piped the null value into an Optional in turn. We now eagerly reject the property if we can't find a PersistentProperty in the metamodel to avoid this.
2017-11-29 10:28:26 +01:00
Mark Paluch
4ba413d084 DATAREST-1157 - Updated changelog. 2017-11-27 16:43:43 +01:00
Mark Paluch
528f7bcb76 DATAREST-1150 - Updated changelog. 2017-11-27 15:58:47 +01:00