To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
A lightweight, serialisable summary of a WebDAV resource (a file or a folder), used to pass basic identifying information about a resource to templates or GraalJS controller code without exposing the underlying Resource object itself.
Properties
| Property | Returns | Description |
|---|---|---|
| contentType | String | The file's content type. Null for folders. |
| hash | String | The file's content hash. Null for folders. |
| href | String | The resource's href, relative to the website it is in. |
| iscollection | boolean | Whether this resource is a folder (collection) rather than a file. |
| name | String | The resource's name, ie the last path segment. |
| title | String | The resource's display title. |
Methods
getName()
Returns: String
The resource's name, ie the last path segment.
getHref()
Returns: String
The resource's href, relative to the website it is in.
getTitle()
Returns: String
The resource's display title.
getIscollection()
Returns: boolean
Whether this resource is a folder (collection) rather than a file.
getContentType()
Returns: String
The file's content type. Null for folders.
getHash()
Returns: String
The file's content hash. Null for folders.