Interface ContextModel
-
public interface ContextModel
The Context represents the current execution environment.For FreeMarker templates, use the following subkeys:
- USER
getUser()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getCommonScripts()
Returns the full HTML required to include the common scripts.Date
getDate()
Returns the current dateDate
getDatetime()
Returns the current date and timeDomainModel
getDomain()
Returns information about the current domainString
getLanguage()
Returns information about the current languageLocale
getLocale()
Returns information about the current localelong
getMillis()
Returns the number of milliseconds since the java epoch, January 1, 1970RequestModel
getRequest()
Returns information about the current requestResourceModel
getResources()
Returns a ResourceModel providing access to the common resourcesDate
getTime()
Returns the current timeUserModel
getUser()
Returns information about the current userboolean
isDevelopmentMode()
Returns information about whether development mode is enabledboolean
isServeExpandedResources()
Returns information about whether to serve expanded resources
-
-
-
Method Detail
-
getUser
UserModel getUser()
Returns information about the current user
-
getDomain
DomainModel getDomain()
Returns information about the current domain
-
getMillis
long getMillis()
Returns the number of milliseconds since the java epoch, January 1, 1970
-
getDate
Date getDate()
Returns the current date
-
getTime
Date getTime()
Returns the current time
-
getDatetime
Date getDatetime()
Returns the current date and time
-
getCommonScripts
String getCommonScripts()
Returns the full HTML required to include the common scripts. Include in the @head@-section of the page
-
getResources
ResourceModel getResources()
Returns a ResourceModel providing access to the common resources
-
getRequest
RequestModel getRequest()
Returns information about the current request
-
getLanguage
String getLanguage()
Returns information about the current language
-
getLocale
Locale getLocale()
Returns information about the current locale
-
isDevelopmentMode
boolean isDevelopmentMode()
Returns information about whether development mode is enabled
-
isServeExpandedResources
boolean isServeExpandedResources()
Returns information about whether to serve expanded resources
-
-