Class JsonViewHint

java.lang.Object
ch.ralscha.extdirectspring.bean.JsonViewHint
Direct Known Subclasses:
EdFormLoadResult, EdJsonStoreResult, EdStoreResult, ExtDirectFormLoadResult, ExtDirectStoreResult, ModelAndJsonView

public class JsonViewHint extends Object
Specifies a Json View (filter) that Jackson uses to serialize the response. A model class can subclass this class and set jsonView.

If the property jsonView is set it overrides a jsonView specified on ExtDirectMethod.jsonView().

To disable a JsonView specified on ExtDirectMethod.jsonView() set the property jsonView to ExtDirectMethod.NoJsonView.

  • Constructor Details

    • JsonViewHint

      public JsonViewHint()
    • JsonViewHint

      public JsonViewHint(Class<?> jsonView)
  • Method Details

    • getJsonView

      public Class<?> getJsonView()
    • setJsonView

      public void setJsonView(Class<?> jsonView)