@groovy.transform.CompileStatic interface HalViewHelper
Type Params | Return Type | Name and description |
---|---|---|
|
abstract void |
embedded(java.lang.Object object) Render embedded links for the associations of the given object (if any) |
|
abstract void |
embedded(java.util.Map model) Render embedded links for the given model |
|
abstract void |
embedded(java.lang.Object object, java.util.Map arguments) Render embedded links for the associations of the given object (if any) |
|
abstract void |
embedded(groovy.lang.Closure callable) Outputs a HAL embedded entry for the given closure |
|
abstract void |
embedded(java.lang.String contentType, groovy.lang.Closure callable) Outputs a HAL embedded entry for the content type and closure |
|
abstract void |
inline(java.lang.Object object, java.util.Map arguments, groovy.lang.Closure customizer) Same as GrailsJsonViewHelper.inline but renders HAL links too |
|
abstract void |
inline(java.lang.Object object, java.util.Map arguments) Same as GrailsJsonViewHelper.inline but renders HAL links too |
|
abstract void |
inline(java.lang.Object object, groovy.lang.Closure customizer) Same as GrailsJsonViewHelper.inline but renders HAL links too |
|
abstract void |
inline(java.lang.Object object) Same as GrailsJsonViewHelper.inline but renders HAL links too |
|
abstract void |
links(groovy.lang.Closure callable) Define the hal links |
|
abstract void |
links(java.lang.Object object, java.lang.String contentType) Creates HAL links for the given object |
|
abstract void |
links(java.lang.Object object) Creates HAL links for the given object |
|
abstract void |
links(java.util.Map model) Creates HAL links for the given model |
|
abstract void |
links(java.util.Map model, java.lang.Object paginationObject, java.lang.Number total) Creates HAL links for the given model and pagination object |
|
abstract void |
paginate(java.lang.Object object, java.lang.Integer total) Pagination support which outputs hal links to the resulting pages |
|
abstract void |
paginate(java.lang.Object object, java.lang.Integer total, java.lang.Integer offset) Pagination support which outputs hal links to the resulting pages |
|
abstract 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 |
|
abstract 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 |
|
abstract 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 |
|
abstract JsonWritable |
render(java.lang.Object object, java.util.Map arguments, groovy.lang.Closure customizer) Same as GrailsJsonViewHelper.render but renders HAL links too |
|
abstract JsonWritable |
render(java.lang.Object object, java.util.Map arguments) Same as GrailsJsonViewHelper.render but renders HAL links too |
|
abstract JsonWritable |
render(java.lang.Object object, groovy.lang.Closure customizer) Same as GrailsJsonViewHelper.render but renders HAL links too |
|
abstract JsonWritable |
render(java.lang.Object object) Same as GrailsJsonViewHelper.render but renders HAL links too |
|
abstract void |
setDelegate(StreamingJsonDelegate jsonDelegate) |
|
abstract void |
type(java.lang.String name)
|
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