Package org.opencms.gwt.shared
Class CmsCoreData
java.lang.Object
org.opencms.gwt.shared.CmsCoreData
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
Runtime data bean for prefetching.
- Since:
- 8.0.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
A enumeration for the ADE context.static enum
The available client modules.static class
Bean class containing info about the current user. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Name of the used js variable.static final String
The key for the GWT build id property.protected long
The time sent from the server when loading the data.protected CmsCoreData.UserInfo
A bean with information about the current user.static final String
The meta element name to the requested module key.static final String
The parameter name for path.static final String
The parameter name for the return code. -
Constructor Summary
ConstructorDescriptionConstructor.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.CmsCoreData
(CmsCoreData clone) Clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the "About" link.Gets the map of ADE configuration parameters.Gets the category folder name.Returns the XML content editor back-link URL.Returns the XML content editor URL.Gets the default link to use for opening the workplace.Returns the embeddedDialogsUrl.Returns the extensionMapping.protected String
Returns the file explorer link prefix.Returns the resource icon mapping.Returns the current request locale.Returns the login URL.Returns the current navigation (sitemap) URI.Gets the project id.long
Returns the time of the server when the data was loaded.Gets the shared folder.Returns the current site root.Gets the structure id of the current resource.Gets the data for the TinyMCE editor.long
Returns the file upload size limit.Gets the upload restriction data.getUri()
Returns the current uri.Gets the information about the current user.Returns the OpenCms VFS prefix.Returns the workplace resources path prefix.Gets the language part of the workplace locale.Returns the current workplace locale.boolean
Returns true if deactivated types should be hidden in the gallery dialog.boolean
Returns true if the session should be kept alive even without user actions.boolean
Returns the show editor help flag.boolean
Returns true if the toolbar should be visible initially.boolean
Checks if uploads are disabled.boolean
Checks if a warning dialog should be shown when a reused element is edited.protected void
setShowEditorHelp
(boolean show) Sets the show editor help flag.void
setTinymce
(CmsTinyMCEData tinyMceData) Sets the data for the TinyMCE editor.void
setWarnWhenEditingReusedElement
(boolean warnWhenEditingReusedElement) Enables/disables warning dialog when editing reused elements.
-
Field Details
-
DICT_NAME
Name of the used js variable.- See Also:
-
KEY_GWT_BUILDID
The key for the GWT build id property.- See Also:
-
META_PARAM_MODULE_KEY
The meta element name to the requested module key.- See Also:
-
PARAM_PATH
The parameter name for path.- See Also:
-
PARAM_RETURNCODE
The parameter name for the return code.- See Also:
-
m_serverTime
The time sent from the server when loading the data. -
m_userInfo
A bean with information about the current user.
-
-
Constructor Details
-
CmsCoreData
public CmsCoreData()Constructor.
-
-
Method Details
-
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
Returns the current request locale.- Returns:
- the current request locale
-
getLoginURL
Returns the login URL.- Returns:
- the login URL
-
getProjectId
Gets the project id.- Returns:
- the project id
-
getServerTime
Returns the time of the server when the data was loaded.- Returns:
- the time of the server when the data was loaded
-
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
Returns the file upload size limit.- Returns:
- the file upload size limit
-
getUploadRestriction
Gets the upload restriction data.- Returns:
- the upload restriction data
-
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
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
Returns the current workplace locale.- Returns:
- the current workplace locale
-
isHideDisabledGalleryTypes
Returns true if deactivated types should be hidden in the gallery dialog.- Returns:
- true if deactivated types should be hidden
-
isKeepAlive
Returns true if the session should be kept alive even without user actions.- Returns:
- true if keep-alive mode is active
-
isShowEditorHelp
Returns the show editor help flag.- Returns:
- the show editor help flag
-
isToolbarVisible
Returns true if the toolbar should be visible initially.- Returns:
- true if the toolbar should be visible initially
-
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
-
setWarnWhenEditingReusedElement
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
Sets the show editor help flag.- Parameters:
show
-true
to show editor help
-