To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
extends AbstractResource
This is the resource which gets created when a controller mapping is located. It executes the javascript and templates Scripts executed from a ControllerResource have access to these global variables
- controllerMappings
- views - ViewsBuilder
- formatter - Formatter
- log
- applications
- transactionManager - AppTransactionManager
- fileManager - FileManager
Properties
Name | Returns | Notes | Example |
---|---|---|---|
repoAppName | String | ||
hash | String | ||
websiteName | String | ||
currentUser | UserResource | Returns the currently authenticated user for this request | |
parent | CommonCollectionResource | ||
name | String | ||
title | String | ||
modifiedDate | Date | ||
uniqueId | String | ||
pathParams | Map | ||
method | ControllerMethod | ||
appSettings | Map | ||
seoContent | SeoContentBean | ||
href | String | ||
path | Path | ||
controllerMappings | ControllerMappingList | ||
types | Set |
Methods
Name | Returns | Notes | Example |
---|---|---|---|
jsonView ( jsonObject ) | JsonView | Creates a view which serialises the given object to json. If the object is a JsonResult then it is returned | |
throwNotFound ( reason ) | void | ||
throwBadRequest ( reason ) | void | ||
dataBind ( target, params ) | void |