Type | Name and description |
---|---|
grails.plugin.json.view.api.jsonapi.JsonApiIdRenderStrategy |
jsonApiIdRenderStrategy |
org.grails.datastore.mapping.model.MappingContext |
mappingContext |
org.springframework.context.MessageSource |
messageSource |
grails.plugin.json.view.JsonViewTemplateEngine |
templateEngine |
grails.plugin.json.view.JsonViewConfiguration |
viewConfiguration |
Type Params | Return Type | Name and description |
---|---|---|
|
static java.lang.String |
getDomainTemplateUri(java.lang.Object domain) |
|
static java.util.Map |
getRenderModel(java.lang.Object domain) |
|
void |
initialise() |
|
java.lang.String |
render(java.lang.String templateSource, java.util.Map model) Render a template for the given source |
|
java.lang.String |
render(java.util.Map arguments) Render one of the GSON views in the grails-app/views directory for the given arguments |
|
java.lang.String |
renderDomain(java.lang.Object domain, java.lang.String templateSource = null) Render a domain object using the appropriate template. |
|
java.lang.String |
renderDomain(java.lang.Object domain, java.util.Map arguments) Render one of the GSON views in the grails-app/views directory for the given arguments using the given domain. |
|
static java.lang.String |
renderEmpty() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#getClass(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#hashCode(), java.lang.Object#equals(java.lang.Object), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#notify() |
Render a template for the given source
templateSource
- The raw source of the templatemodel
- The modelRender one of the GSON views in the grails-app/views directory for the given arguments
arguments
- The named arguments: 'template', 'view' and 'model'Render a domain object using the appropriate template. If templateSource is supplied then this will be used rather than attempting to find the correct template or view
domain
- The domain object to rendertemplateSource
- The raw source of the templateRender one of the GSON views in the grails-app/views directory for the given arguments using the given domain.
domain
- The domain object to renderarguments
- The named arguments: 'template' or 'view'