Interface ContextModel


  • public interface ContextModel
    The Context represents the current execution environment.

    For FreeMarker templates, use the following subkeys:

    USER
    getUser()
    • 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