To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
Provides methods for creating views, for templating, returning JSON, and redirects
Properties
Name | Returns | Notes | Example |
---|---|---|---|
instance | ViewsBuilder |
Methods
Name | Returns | Notes | Example |
---|---|---|---|
templateView ( template ) | TemplateView | ||
jsonView ( attribute ) | JsonView | ||
jsonView ( status, message ) | JsonView | ||
jsonObjectView ( o ) | JsonView | ||
redirectView ( uri ) | RedirectView | ||
redirectView ( uri, permanent ) | RedirectView | ||
textTemplateView ( template, contentType ) | TextTemplateView | ||
fileView ( hash, contentType ) | FileHashView | ||
fileView ( hash, contentType, isPerTenant ) | FileHashView | If isPerTenant is true the content will be retrieved from the per tenant blobstore | |
contentFileView ( contentName, contentType ) | ContentFileView | ||
contentFileView ( dir, contentName, contentType ) | ContentFileView | ||
binaryView ( fileContent, contentTpe ) | BinaryView | Render a binary file from byte array (byte[]) with given content type | |
binaryView ( fileContent, contentTpe ) | BinaryView | Render a binary file from an InputStream with given content type | |
textView ( text ) | TextView | ||
textView ( text, contentType ) | TextView | ||
jsonResult ( result ) | JsonResult | ||
jsonResult ( result, message ) | JsonResult | ||
jsonResult ( result, messages ) | JsonResult | ||
jsonResult ( result, messages ) | JsonResult | ||
jsonResult ( result, message, nextHref ) | JsonResult | ||
searchResponseView ( r ) | SearchResponseView | ||
csvView ( rows ) | CsvView | ||
rowsResultCsvView ( rowsResult ) | RowsResultCsvView | ||
rowsResultCsvView ( headers, rowsResult ) | RowsResultCsvView | ||
throwNotAuthorizedException ( message, page ) | void | ||
throwBadRequestException ( message, page ) | void | ||
throwNotFoundException ( message ) | void | ||
throwServerException ( message ) | void |