Class CmsCoreData

java.lang.Object
org.opencms.gwt.shared.CmsCoreData
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class CmsCoreData extends Object implements com.google.gwt.user.client.rpc.IsSerializable
Runtime data bean for prefetching.

Since:
8.0.0
  • Field Details

  • Constructor Details

    • CmsCoreData

      public CmsCoreData()
      Constructor.

    • CmsCoreData

      public CmsCoreData(CmsCoreData clone)
      Clone constructor.

      Parameters:
      clone - the instance to clone
    • CmsCoreData

      public CmsCoreData(String contentEditorUrl, String contentEditorBacklinkUrl, String loginUrl, String vfsPrefix, String fileExplorerLink, String workplaceResourcesPrefix, String embeddedDialogsUrl, String siteRoot, String sharedFolder, CmsUUID projectId, String locale, String wpLocale, String uri, String navigationUri, CmsUUID structureId, Map<String,String> extensionMapping, Map<String,String> iconMapping, long serverTime, boolean isShowEditorHelp, boolean toolbarVisible, String defaultWorkplaceLink, String aboutLink, CmsCoreData.UserInfo userInfo, long uploadFileSizeLimit, boolean isKeepAlive, boolean uploadDisabled, Map<String,String> adeParameters, CmsUploadRestrictionInfo uploadRestriction, String categoryBaseFolder, boolean hideDisabledGalleryTypes, boolean warnWhenEditingReusedElement)
      Constructor.

      Parameters:
      contentEditorUrl - the XML content editor URL
      contentEditorBacklinkUrl - the XML content editor back-link URL
      loginUrl - the login JSP URL
      vfsPrefix - the OpenCms VFS prefix
      fileExplorerLink - the file explorer link
      workplaceResourcesPrefix - the workplace resources path prefix
      embeddedDialogsUrl - the embedded dialogs URL
      siteRoot - the current site root
      sharedFolder - the shared folder
      projectId - the project id
      locale - the current request locale
      wpLocale - the workplace locale
      uri - the current uri
      structureId - the structure id of tbe resource
      navigationUri - the current navigation URI
      extensionMapping - the mappings of file extensions to resource types
      iconMapping - the resource icon mapping
      serverTime - the current time
      isShowEditorHelp - the show editor help flag
      toolbarVisible - a flag to indicate whether the toolbar should be visible initially
      defaultWorkplaceLink - the default link to use for opening the workplace
      aboutLink - the link to the "About" page
      userInfo - information about the current user
      uploadFileSizeLimit - the file upload size limit
      isKeepAlive - the keep-alive mode
      uploadDisabled - true if upload buttons should be disabled
      adeParameters - the map of ADE configuration parameters
      uploadRestriction - the upload restriction data
      categoryBaseFolder - the category base folder
      hideDisabledGalleryTypes - true if deactivated types should be hidden in the gallery dialog
      warnWhenEditingReusedElement - true if a warning dialog should be shown when editing a reused element
  • Method Details

    • getAboutLink

      public String getAboutLink()
      Gets the "About" link.

      Returns:
      the "about" link
    • getAdeParameters

      Gets the map of ADE configuration parameters.

      Returns:
      the ADE configuration parameters
    • getCategoryBaseFolder

      Gets the category folder name.
      Returns:
      the category folder name
    • getContentEditorBacklinkUrl

      Returns the XML content editor back-link URL.

      Returns:
      the XML content editor back-link URL
    • getContentEditorUrl

      Returns the XML content editor URL.

      Returns:
      the XML content editor URL
    • getDefaultWorkplaceLink

      Gets the default link to use for opening the workplace.

      Returns:
      the default workplace link
    • getEmbeddedDialogsUrl

      Returns the embeddedDialogsUrl.

      Returns:
      the embeddedDialogsUrl
    • getExtensionMapping

      Returns the extensionMapping.

      Returns:
      the extensionMapping
    • getIconMapping

      Returns the resource icon mapping.

      Returns:
      the resource icon mapping
    • getLocale

      public String getLocale()
      Returns the current request locale.

      Returns:
      the current request locale
    • getLoginURL

      public String getLoginURL()
      Returns the login URL.

      Returns:
      the login URL
    • getNavigationUri

      Returns the current navigation (sitemap) URI.

      Returns:
      the current navigation URI
    • getProjectId

      Gets the project id.
      Returns:
      the project id
    • getServerTime

      public long getServerTime()
      Returns the time of the server when the data was loaded.

      Returns:
      the time of the server when the data was loaded
    • getSharedFolder

      Gets the shared folder.
      Returns:
      the shared folder
    • getSiteRoot

      public String getSiteRoot()
      Returns the current site root.

      Returns:
      the current site root
    • getStructureId

      Gets the structure id of the current resource.

      Returns:
      the structure id of the current resource
    • getTinymce

      Gets the data for the TinyMCE editor.

      Returns:
      the data for TinyMCE
    • getUploadFileSizeLimit

      public long getUploadFileSizeLimit()
      Returns the file upload size limit.

      Returns:
      the file upload size limit
    • getUploadRestriction

      Gets the upload restriction data.
      Returns:
      the upload restriction data
    • getUri

      public String getUri()
      Returns the current uri.

      Returns:
      the current uri
    • getUserInfo

      Gets the information about the current user.

      Returns:
      the information about the current user
    • getVfsPrefix

      public String getVfsPrefix()
      Returns the OpenCms VFS prefix.

      Returns:
      the OpenCms VFS prefix
    • getWorkplaceResourcesPrefix

      Returns the workplace resources path prefix.

      Returns:
      the workplace resources path prefix
    • getWpLanguage

      Gets the language part of the workplace locale.
      Returns:
      the language part of the workplace locale
    • getWpLocale

      public String getWpLocale()
      Returns the current workplace locale.

      Returns:
      the current workplace locale
    • isHideDisabledGalleryTypes

      public boolean isHideDisabledGalleryTypes()
      Returns true if deactivated types should be hidden in the gallery dialog.
      Returns:
      true if deactivated types should be hidden
    • isKeepAlive

      public boolean isKeepAlive()
      Returns true if the session should be kept alive even without user actions.

      Returns:
      true if keep-alive mode is active
    • isShowEditorHelp

      public boolean isShowEditorHelp()
      Returns the show editor help flag.

      Returns:
      the show editor help flag
    • isToolbarVisible

      public boolean isToolbarVisible()
      Returns true if the toolbar should be visible initially.

      Returns:
      true if the toolbar should be visible initially
    • isUploadDisabled

      public boolean isUploadDisabled()
      Checks if uploads are disabled.
      Returns:
      true if uploads are disabled
    • isWarnWhenEditingReusedElement

      Checks if a warning dialog should be shown when a reused element is edited.
      Returns:
      true if a warning dialog should be shown when editing reused elements
    • setTinymce

      public void setTinymce(CmsTinyMCEData tinyMceData)
      Sets the data for the TinyMCE editor.

      Parameters:
      tinyMceData - the data for TinyMCE
    • setWarnWhenEditingReusedElement

      public void setWarnWhenEditingReusedElement(boolean warnWhenEditingReusedElement)
      Enables/disables warning dialog when editing reused elements.
      Parameters:
      warnWhenEditingReusedElement - true if a warning dialog should be shown when editing reused elements
    • getFileExplorerLink

      Returns the file explorer link prefix. Append resource site path for complete link.

      Returns:
      the file explorer link prefix
    • setShowEditorHelp

      protected void setShowEditorHelp(boolean show)
      Sets the show editor help flag.

      Parameters:
      show - true to show editor help