Annotation Interface ResourceViewBinding
An annotation used on a controller class or a controller method to bind the view definition to the resource operation
output.
This annotation can only be used on the implementation class of
AbstractController
.-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionString[]
Queryable object types for the resource; when the query types are specified, a DQL query resource will use the data viewsLinkableView
which are bound to this resource controller withvalue()
to generate the 'edit' link for the query result item of the specified query types.
-
Element Details
-
value
Class[] valueThe resource view classes bound to the resource controller. A resource controller can have multiple view definitions. When a view definition is bound to the resource controller, the controller method will look up an appropriate view to render the returning model instance before the model instance is returned. When multiple views are defined, each view definition must be corresponding to a different model class. There could be at most oneFeedableView
definition in the annotation sinceFeedableView
is corresponding to the data modelAtomFeed
.- Returns:
- view classes bound to the resource controller.
- See Also:
-
-
-
queryTypes
String[] queryTypesQueryable object types for the resource; when the query types are specified, a DQL query resource will use the data viewsLinkableView
which are bound to this resource controller withvalue()
to generate the 'edit' link for the query result item of the specified query types. This attribute is only applicable on the class level annotation of the controller. Query types setting on the method annotation are ignored. To use query types, thevalue()
must exactly contain oneLinkableView
on the same annotation.- Returns:
- query types bound to the controller.
- Default:
- {}
-