Class CmsCntPageData

  • All Implemented Interfaces:
    com.google.gwt.user.client.rpc.IsSerializable

    public final class CmsCntPageData
    extends java.lang.Object
    implements com.google.gwt.user.client.rpc.IsSerializable
    Convenience class to provide server-side information to the client.

    Since:
    8.0.0
    • Constructor Detail

      • CmsCntPageData

        public CmsCntPageData​(java.lang.String onlineLink,
                              java.lang.String noEditReason,
                              java.lang.String requestParams,
                              java.lang.String sitemapUri,
                              boolean sitemapManager,
                              CmsUUID detailId,
                              java.lang.String detailContainerPage,
                              CmsUUID detailContainerPageId,
                              java.util.Set<java.lang.String> detailTypes,
                              long lastModified,
                              java.lang.String lockInfo,
                              CmsListInfoBean pageInfo,
                              java.lang.String locale,
                              boolean useClassicEditor,
                              CmsTemplateContextInfo contextInfo,
                              boolean showSmallElementsInitially,
                              java.util.List<CmsElementViewInfo> elementViews,
                              CmsElementViewInfo elementView,
                              CmsCntPageData.ElementReuseMode reuseMode,
                              CmsCntPageData.ElementDeleteMode deleteMode,
                              boolean isModelPage,
                              boolean isModelGroup,
                              java.lang.String modelGroupEmenetId,
                              java.lang.String mainLocale,
                              java.util.Map<java.lang.String,​CmsLocaleLinkBean> localeLinkBeans,
                              java.lang.String appTitle,
                              long loadTime)
        Constructor.

        Parameters:
        onlineLink - the online link to the current page
        noEditReason - the reason why the current user is not allowed to edit the current container page
        requestParams - the original request parameters
        sitemapUri - the current sitemap URI
        sitemapManager - if the user has the sitemap manager role
        detailId - the detail resource id, if available
        detailContainerPage - the detail view container resource path
        detailContainerPageId - the detail view container page structure id
        detailTypes - the set of names of types for which this page is registered as detail page
        lastModified - the last modification date of the page
        lockInfo - lock information, if the page is locked by another user
        pageInfo - the current page info
        locale - the content locale
        useClassicEditor - true to use the classic XmlContent editor
        contextInfo - the template context information
        showSmallElementsInitially - flag which controls whether small elements should be shown initially
        elementViews - the element views
        elementView - the current element view
        reuseMode - the element reuse mode
        deleteMode - the element delete mode
        isModelPage - true if this is a model page
        isModelGroup - true if the page is used for model groups
        modelGroupEmenetId - the model group base element id
        mainLocale - the main locale to this page in case it is part of a locale group
        localeLinkBeans - beans for links to other pages in the locale group
        appTitle - the title to display in the toolbar
        loadTime - the current time
      • CmsCntPageData

        protected CmsCntPageData()
        Serialization constructor.

    • Method Detail

      • allowSettingsInEditor

        public boolean allowSettingsInEditor()
        Returns whether editing settings in the content editor is allowed.

        Returns:
        true in case editing settings in the content editor is allowed
      • getAppTitle

        public java.lang.String getAppTitle()
        Gets the title to display in the toolbar.

        Returns:
        the title for the toolbar
      • getBacklinkUri

        public java.lang.String getBacklinkUri()
        Returns the xml-content editor back-link URI.

        Returns:
        the back-link URI
      • getDateLastModified

        public long getDateLastModified()
        Gets the date at which the page was last modified.

        Returns:
        the date at which the page was last modified
      • getDetailContainerPage

        public java.lang.String getDetailContainerPage()
        Returns the detail view container resource path.

        Returns:
        the detail view container resource path
      • getDetailContainerPageId

        public CmsUUID getDetailContainerPageId()
        Gets the structure id of the detail container page (or null if we are not on on a detail page, or there is no detail container page).
        Returns:
        the structure id of the detail container page
      • getDetailId

        public CmsUUID getDetailId()
        Returns the detail structure id, if available.

        Returns:
        the detail structure id
      • getDetailTypes

        public java.util.Set<java.lang.String> getDetailTypes()
        Gets the set of names of types for which the container page is registered as a detail page.
        Returns:
        the set of names of detail types
      • getLoadTime

        public long getLoadTime()
        Returns the time off page load.

        Returns:
        the time stamp
      • getLocale

        public java.lang.String getLocale()
        Returns the content locale.

        Returns:
        the locale
      • getLocaleLinkBeans

        public java.util.Map<java.lang.String,​CmsLocaleLinkBeangetLocaleLinkBeans()
        Gets the locale link beans, with localized language names as keys.

        The beans represent links to different locale variants of this page.

        Returns:
        the locale link bean map for this
      • getLockInfo

        public java.lang.String getLockInfo()
        Returns the lock information, if the page is locked by another user.

        Returns:
        the lock infomation
      • getMainLocale

        public java.lang.String getMainLocale()
        Returns the main locale to this page in case it is part of a locale group.

        Returns:
        the main locale to this page in case it is part of a locale group
      • getModelGroupElementId

        public java.lang.String getModelGroupElementId()
        Returns the model group base element id.

        Returns:
        the model group base element id
      • getNoEditReason

        public java.lang.String getNoEditReason()
        Returns the no-edit reason.

        Returns:
        the no-edit reason, if empty editing is allowed
      • getOnlineLink

        public java.lang.String getOnlineLink()
        Returns the online link to the current page.

        Returns:
        the online link to the current page
      • getRequestParams

        public java.lang.String getRequestParams()
        Returns the request parameters.

        Returns:
        the request parameters
      • getSessionStorageData

        public java.util.Map<java.lang.String,​java.lang.String> getSessionStorageData()
        Gets the key-value pairs to store in the session storage of the browser.
        Returns:
        the map of entries to store in the session storage
      • getSitemapUri

        public java.lang.String getSitemapUri()
        Returns the sitemap URI.

        Returns:
        the sitemap URI
      • isEditSmallElementsInitially

        public boolean isEditSmallElementsInitially()
        Returns true if small elements should be editable initially.

        Returns:
        true if small elements should be editable initially
      • isModelGroup

        public boolean isModelGroup()
        Returns if the page is used for model groups.

        Returns:
        true if the page is used for model groups
      • isModelPage

        public boolean isModelPage()
        True if the container page is a model page.

        Returns:
        true if this is a model page
      • isSitemapManager

        public boolean isSitemapManager()
        Returns if the current user has the sitemap manager role.

        Returns:
        if the current user has the sitemap manager role
      • isUseClassicEditor

        public boolean isUseClassicEditor()
        Returns if the classic XmlContent editor should be used.

        Returns:
        true if the classic XmlContent editor should be used
      • setAllowSettingsInEditor

        public void setAllowSettingsInEditor​(boolean allowSettingsInEditor)
        Sets whether editing settings in the content editor is allowed.

        Parameters:
        allowSettingsInEditor - true to set editing settings in the content editor is allowed
      • setSessionStorageData

        public void setSessionStorageData​(java.util.Map<java.lang.String,​java.lang.String> sessionStorageData)
        Sets the entries to store in the browser's session storage.
        Parameters:
        sessionStorageData - the entries to store in the browser's session storage