SPR-7070 - MappingJacksonJsonView.renderedAttributes to be made visible to subclasses

This commit is contained in:
Arjen Poutsma
2010-04-07 08:30:04 +00:00
parent 4ee6735376
commit 28da6e0d98

View File

@@ -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.