DATAREST-107 - Respect @RestResource exported flag on query methods.
ResourceMappings now only adds a RepositoryMethodResourceMapping if it's really exported.
This commit is contained in:
committed by
Oliver Gierke
parent
7c66a217be
commit
e7ce0e3f0b
@@ -137,7 +137,11 @@ public class ResourceMappings implements Iterable<ResourceMetadata> {
|
||||
|
||||
if (resourceMapping.isExported()) {
|
||||
for (Method queryMethod : repositoryInformation.getQueryMethods()) {
|
||||
mappings.add(new RepositoryMethodResourceMapping(queryMethod, resourceMapping));
|
||||
RepositoryMethodResourceMapping methodMapping = new RepositoryMethodResourceMapping(
|
||||
queryMethod, resourceMapping);
|
||||
if (methodMapping.isExported()) {
|
||||
mappings.add(methodMapping);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user