mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
SPR-7070 - MappingJacksonJsonView.renderedAttributes to be made visible to subclasses
This commit is contained in:
+7
@@ -103,6 +103,13 @@ public class MappingJacksonJsonView extends AbstractView {
|
||||
this.prefixJson = prefixJson;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the attributes in the model that should be rendered by this view.
|
||||
*/
|
||||
public Set<String> getRenderedAttributes() {
|
||||
return renderedAttributes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the attributes in the model that should be rendered by this view. When set, all other model attributes will be
|
||||
* ignored.
|
||||
|
||||
Reference in New Issue
Block a user