Type Params | Return Type | Name and description |
---|---|---|
|
void |
embedded(java.lang.Object object) Render embedded links for the associations of the given object (if any) |
|
void |
embedded(java.util.Map model) Render embedded links for the given model |
|
void |
embedded(java.lang.Object object, java.util.Map arguments) Render embedded links for the associations of the given object (if any) |
|
void |
embedded(groovy.lang.Closure callable) Outputs a HAL embedded entry for the given closure |
|
void |
embedded(java.lang.String contentType, groovy.lang.Closure callable) Outputs a HAL embedded entry for the content type and closure |
|
void |
inline(java.lang.Object object, java.util.Map arguments, groovy.lang.Closure customizer) Same as GrailsJsonViewHelper.inline but renders HAL links too |
|
void |
inline(java.lang.Object object, java.util.Map arguments) Same as GrailsJsonViewHelper.inline but renders HAL links too |
|
void |
inline(java.lang.Object object, groovy.lang.Closure customizer) Same as GrailsJsonViewHelper.inline but renders HAL links too |
|
void |
inline(java.lang.Object object) Same as GrailsJsonViewHelper.inline but renders HAL links too |
|
void |
links(groovy.lang.Closure callable) Define the hal links |
|
void |
links(java.lang.Object object, java.lang.String contentType) Creates HAL links for the given object |
|
void |
links(java.lang.Object object) Creates HAL links for the given object |
|
void |
links(java.util.Map model) Creates HAL links for the given model |
|
void |
links(java.util.Map model, java.lang.Object paginationObject, java.lang.Number total) Creates HAL links for the given model and pagination object |
|
void |
paginate(java.lang.Object object, java.lang.Integer total) Pagination support which outputs hal links to the resulting pages |
|
void |
paginate(java.lang.Object object, java.lang.Integer total, java.lang.Integer offset) Pagination support which outputs hal links to the resulting pages |
|
void |
paginate(java.lang.Object object, java.lang.Integer total, java.lang.Integer offset, java.lang.Integer max) Pagination support which outputs hal links to the resulting pages |
|
void |
paginate(java.lang.Object object, java.lang.Integer total, java.lang.Integer offset, java.lang.Integer max, java.lang.String sort) Pagination support which outputs hal links to the resulting pages |
|
void |
paginate(java.lang.Object object, java.lang.Integer total, java.lang.Integer offset, java.lang.Integer max, java.lang.String sort, java.lang.String order) Pagination support which outputs hal links to the resulting pages |
|
JsonWritable |
render(java.lang.Object object, java.util.Map arguments, groovy.lang.Closure customizer) Same as GrailsJsonViewHelper.render but renders HAL links too |
|
JsonWritable |
render(java.lang.Object object, java.util.Map arguments) Same as GrailsJsonViewHelper.render but renders HAL links too |
|
JsonWritable |
render(java.lang.Object object, groovy.lang.Closure customizer) Same as GrailsJsonViewHelper.render but renders HAL links too |
|
JsonWritable |
render(java.lang.Object object) Same as GrailsJsonViewHelper.render but renders HAL links too |
|
void |
setDelegate(StreamingJsonDelegate jsonDelegate) |
|
void |
type(java.lang.String name) @param name Sets the HAL response type |
Render embedded links for the associations of the given object (if any)
object
- The domain objectRender embedded links for the given model
model
- The embedded modelRender embedded links for the associations of the given object (if any)
object
- The domain objectarguments
- Arguments to the embedded methodOutputs a HAL embedded entry for the given closure
callable
- The callableOutputs a HAL embedded entry for the content type and closure
contentType
- The content typecallable
- The callableSame as GrailsJsonViewHelper.inline but renders HAL links too
Same as GrailsJsonViewHelper.inline but renders HAL links too
Same as GrailsJsonViewHelper.inline but renders HAL links too
Same as GrailsJsonViewHelper.inline but renders HAL links too
Define the hal links
callable
- The closureCreates HAL links for the given object
object
- The object to create links forCreates HAL links for the given object
object
- The object to create links forCreates HAL links for the given model
object
- The model to create links forCreates HAL links for the given model and pagination object
object
- The model to create links forPagination support which outputs hal links to the resulting pages
object
- The object to create links fortotal
- The total number of objects to be paginatedPagination support which outputs hal links to the resulting pages
object
- The object to create links fortotal
- The total number of objects to be paginatedoffset
- The numerical offset where the page starts (defaults to 0)Pagination support which outputs hal links to the resulting pages
object
- The object to create links fortotal
- The total number of objects to be paginatedoffset
- The numerical offset where the page starts (defaults to 0)max
- The maximum number of objects to be shown (defaults to 10)Pagination support which outputs hal links to the resulting pages
object
- The object to create links fortotal
- The total number of objects to be paginatedoffset
- The numerical offset where the page starts (defaults to 0)max
- The maximum number of objects to be shown (defaults to 10)sort
- The field to sort on (defaults to null)Pagination support which outputs hal links to the resulting pages
object
- The object to create links fortotal
- The total number of objects to be paginatedoffset
- The numerical offset where the page starts (defaults to 0)max
- The maximum number of objects to be shown (defaults to 10)sort
- The field to sort on (defaults to null)order
- The order in which the results are to be sorted eg: DESC or ASCSame as GrailsJsonViewHelper.render but renders HAL links too
Same as GrailsJsonViewHelper.render but renders HAL links too
Same as GrailsJsonViewHelper.render but renders HAL links too
Same as GrailsJsonViewHelper.render but renders HAL links too
name
- Sets the HAL response type