Class CmsCntPageData
java.lang.Object
org.opencms.ade.containerpage.shared.CmsCntPageData
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public final class CmsCntPageData
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
Convenience class to provide server-side information to the client.
- Since:
- 8.0.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The element delte modes.static enum
Enum representing the different ways dropping elements on a container page can be handled. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Name of the used dictionary.static final String
Key 'detailElementId' for the detail content id.static final String
Key 'isDetailOnly' used within the JSON representation of a container object.static final String
Key 'isDetailView' used within the JSON representation of a container object.static final String
Key 'elementId' for the element id.static final String
Key 'elements' used within the JSON representation of a container object.static final String
Key 'isDetailViewContainer' used within the JSON representation of a container object.static final String
Key 'maxElements' used within the JSON representation of a container object.static final String
Key 'name' used within the JSON representation of a container object.static final String
JSON key for presets.static final String
Key 'type' used within the JSON representation of a container object.static final String
Key 'width' used within the JSON representation of a container object. -
Constructor Summary
ModifierConstructorDescriptionprotected
Serialization constructor.CmsCntPageData
(String onlineLink, String noEditReason, String requestParams, String sitemapUri, boolean sitemapManager, CmsUUID detailId, String detailContainerPage, CmsUUID detailContainerPageId, Set<String> detailTypes, long lastModified, String lockInfo, CmsListInfoBean pageInfo, String locale, boolean useClassicEditor, CmsTemplateContextInfo contextInfo, boolean showSmallElementsInitially, List<CmsElementViewInfo> elementViews, CmsElementViewInfo elementView, CmsCntPageData.ElementReuseMode reuseMode, CmsCntPageData.ElementDeleteMode deleteMode, boolean isModelPage, boolean isModelGroup, String modelGroupEmenetId, String mainLocale, Map<String, CmsLocaleLinkBean> localeLinkBeans, String appTitle, long loadTime) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether editing settings in the content editor is allowed.Gets the title to display in the toolbar.Returns the xml-content editor back-link URI.long
Gets the date at which the page was last modified.Returns the element delete mode.Returns the detail view container resource path.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 detail structure id, if available.Gets the set of names of types for which the container page is registered as a detail page.Gets the element reuse mode.Returns the current element view.Returns the available element views.long
Returns the time off page load.Returns the content locale.Gets the locale link beans, with localized language names as keys.Returns the lock information, if the page is locked by another user.Returns the main locale to this page in case it is part of a locale group.Returns the model group base element id.Returns the no-edit reason.Returns the online link to the current page.Returns the current page info.Returns the request parameters.Gets the RPC context.Gets the key-value pairs to store in the session storage of the browser.Returns the sitemap URI.Gets the template context information.boolean
Returns true if small elements should be editable initially.boolean
Returns if the page is used for model groups.boolean
True if the container page is a model page.boolean
Returns true if placement mode is enabled.boolean
Returns if the current user has the sitemap manager role.boolean
Returns if the classic XmlContent editor should be used.void
setAllowSettingsInEditor
(boolean allowSettingsInEditor) Sets whether editing settings in the content editor is allowed.void
setPlacementModeEnabled
(boolean placementModeEnabled) Sets the 'placement mode enabled' flag.void
setRpcContext
(CmsContainerPageRpcContext context) Sets the RPC context.void
setSessionStorageData
(Map<String, String> sessionStorageData) Sets the entries to store in the browser's session storage.
-
Field Details
-
DICT_NAME
Name of the used dictionary.- See Also:
-
JSONKEY_DETAIL_ELEMENT_ID
Key 'detailElementId' for the detail content id.- See Also:
-
JSONKEY_DETAILONLY
Key 'isDetailOnly' used within the JSON representation of a container object.- See Also:
-
JSONKEY_DETAILVIEW
Key 'isDetailView' used within the JSON representation of a container object.- See Also:
-
JSONKEY_ELEMENT_ID
Key 'elementId' for the element id.- See Also:
-
JSONKEY_ELEMENTS
Key 'elements' used within the JSON representation of a container object.- See Also:
-
JSONKEY_ISDETAILVIEWCONTAINER
Key 'isDetailViewContainer' used within the JSON representation of a container object.- See Also:
-
JSONKEY_MAXELEMENTS
Key 'maxElements' used within the JSON representation of a container object.- See Also:
-
JSONKEY_NAME
Key 'name' used within the JSON representation of a container object.- See Also:
-
JSONKEY_PRESETS
JSON key for presets.- See Also:
-
JSONKEY_TYPE
Key 'type' used within the JSON representation of a container object.- See Also:
-
JSONKEY_WIDTH
Key 'width' used within the JSON representation of a container object.- See Also:
-
-
Constructor Details
-
CmsCntPageData
protected CmsCntPageData()Serialization constructor.
-
Method Details
-
allowSettingsInEditor
Returns whether editing settings in the content editor is allowed.- Returns:
true
in case editing settings in the content editor is allowed
-
getAppTitle
Gets the title to display in the toolbar.- Returns:
- the title for the toolbar
-
getBacklinkUri
Returns the xml-content editor back-link URI.- Returns:
- the back-link URI
-
getDateLastModified
Gets the date at which the page was last modified.- Returns:
- the date at which the page was last modified
-
getDeleteMode
Returns the element delete mode.- Returns:
- the element delete mode
-
getDetailContainerPage
Returns the detail view container resource path.- Returns:
- the detail view container resource path
-
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
Returns the detail structure id, if available.- Returns:
- the detail structure id
-
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
-
getElementReuseMode
Gets the element reuse mode.- Returns:
- the element reuse mode
-
getElementView
Returns the current element view.- Returns:
- the current element view
-
getElementViews
Returns the available element views.- Returns:
- the element views
-
getLoadTime
Returns the time off page load.- Returns:
- the time stamp
-
getLocale
Returns the content locale.- Returns:
- the locale
-
getLocaleLinkBeans
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
Returns the lock information, if the page is locked by another user.- Returns:
- the lock infomation
-
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
Returns the model group base element id.- Returns:
- the model group base element id
-
getNoEditReason
Returns the no-edit reason.- Returns:
- the no-edit reason, if empty editing is allowed
-
getOnlineLink
Returns the online link to the current page.- Returns:
- the online link to the current page
-
getPageInfo
Returns the current page info.- Returns:
- the current page info
-
getRequestParams
Returns the request parameters.- Returns:
- the request parameters
-
getRpcContext
Gets the RPC context.- Returns:
- the RPC context
-
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
Returns the sitemap URI.- Returns:
- the sitemap URI
-
getTemplateContextInfo
Gets the template context information.- Returns:
- the template context information
-
isEditSmallElementsInitially
Returns true if small elements should be editable initially.- Returns:
- true if small elements should be editable initially
-
isModelGroup
Returns if the page is used for model groups.- Returns:
- true if the page is used for model groups
-
isModelPage
True if the container page is a model page.- Returns:
- true if this is a model page
-
isPlacementModeEnabled
Returns true if placement mode is enabled.- Returns:
- true if placement mode is enabled
-
isSitemapManager
Returns if the current user has the sitemap manager role.- Returns:
- if the current user has the sitemap manager role
-
isUseClassicEditor
Returns if the classic XmlContent editor should be used.- Returns:
true
if the classic XmlContent editor should be used
-
setAllowSettingsInEditor
Sets whether editing settings in the content editor is allowed.- Parameters:
allowSettingsInEditor
-true
to set editing settings in the content editor is allowed
-
setPlacementModeEnabled
Sets the 'placement mode enabled' flag.- Parameters:
placementModeEnabled
- the new value for the 'placement mode enabled' flag
-
setSessionStorageData
Sets the entries to store in the browser's session storage.- Parameters:
sessionStorageData
- the entries to store in the browser's session storage
-