public final class CmsCntPageData extends java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
| Modifier and Type | Class and Description |
|---|---|
static class |
CmsCntPageData.ElementDeleteMode
The element delte modes.
|
static class |
CmsCntPageData.ElementReuseMode
Enum representing the different ways dropping elements on a container page can be handled.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DICT_NAME
Name of the used dictionary.
|
static java.lang.String |
JSONKEY_DETAIL_ELEMENT_ID
Key 'detailElementId' for the detail content id.
|
static java.lang.String |
JSONKEY_DETAILONLY
Key 'isDetailOnly' used within the JSON representation of a container object.
|
static java.lang.String |
JSONKEY_DETAILVIEW
Key 'isDetailView' used within the JSON representation of a container object.
|
static java.lang.String |
JSONKEY_ELEMENT_ID
Key 'elementId' for the element id.
|
static java.lang.String |
JSONKEY_ELEMENTS
Key 'elements' used within the JSON representation of a container object.
|
static java.lang.String |
JSONKEY_MAXELEMENTS
Key 'maxElements' used within the JSON representation of a container object.
|
static java.lang.String |
JSONKEY_NAME
Key 'name' used within the JSON representation of a container object.
|
static java.lang.String |
JSONKEY_PRESETS
JSON key for presets.
|
static java.lang.String |
JSONKEY_TYPE
Key 'type' used within the JSON representation of a container object.
|
static java.lang.String |
JSONKEY_WIDTH
Key 'width' used within the JSON representation of a container object.
|
| Modifier | Constructor and Description |
|---|---|
protected |
CmsCntPageData()
Serialization constructor.
|
|
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,
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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowSettingsInEditor()
Returns whether editing settings in the content editor is allowed.
|
java.lang.String |
getAppTitle()
Gets the title to display in the toolbar.
|
java.lang.String |
getBacklinkUri()
Returns the xml-content editor back-link URI.
|
long |
getDateLastModified()
Gets the date at which the page was last modified.
|
CmsCntPageData.ElementDeleteMode |
getDeleteMode()
Returns the element delete mode.
|
java.lang.String |
getDetailContainerPage()
Returns the detail view container resource path.
|
CmsUUID |
getDetailId()
Returns the detail structure id, if available.
|
CmsCntPageData.ElementReuseMode |
getElementReuseMode()
Gets the element reuse mode.
|
CmsElementViewInfo |
getElementView()
Returns the current element view.
|
java.util.List<CmsElementViewInfo> |
getElementViews()
Returns the available element views.
|
long |
getLoadTime()
Returns the time off page load.
|
java.lang.String |
getLocale()
Returns the content locale.
|
java.util.Map<java.lang.String,CmsLocaleLinkBean> |
getLocaleLinkBeans()
Gets the locale link beans, with localized language names as keys.
|
java.lang.String |
getLockInfo()
Returns the lock information, if the page is locked by another user.
|
java.lang.String |
getMainLocale()
Returns the main locale to this page in case it is part of a locale group.
|
java.lang.String |
getModelGroupElementId()
Returns the model group base element id.
|
java.lang.String |
getNoEditReason()
Returns the no-edit reason.
|
java.lang.String |
getOnlineLink()
Returns the online link to the current page.
|
CmsListInfoBean |
getPageInfo()
Returns the current page info.
|
java.lang.String |
getRequestParams()
Returns the request parameters.
|
CmsContainerPageRpcContext |
getRpcContext()
Gets the RPC context.
|
java.lang.String |
getSitemapUri()
Returns the sitemap URI.
|
CmsTemplateContextInfo |
getTemplateContextInfo()
Gets the template context information.
|
boolean |
isEditSmallElementsInitially()
Returns true if small elements should be editable initially.
|
boolean |
isModelGroup()
Returns if the page is used for model groups.
|
boolean |
isModelPage()
True if the container page is a model page.
|
boolean |
isSitemapManager()
Returns if the current user has the sitemap manager role.
|
boolean |
isUseClassicEditor()
Returns if the classic XmlContent editor should be used.
|
void |
setAllowSettingsInEditor(boolean allowSettingsInEditor)
Sets whether editing settings in the content editor is allowed.
|
void |
setRpcContext(CmsContainerPageRpcContext context)
Sets the RPC context.
|
public static final java.lang.String DICT_NAME
public static final java.lang.String JSONKEY_DETAIL_ELEMENT_ID
public static final java.lang.String JSONKEY_DETAILONLY
public static final java.lang.String JSONKEY_DETAILVIEW
public static final java.lang.String JSONKEY_ELEMENT_ID
public static final java.lang.String JSONKEY_ELEMENTS
public static final java.lang.String JSONKEY_MAXELEMENTS
public static final java.lang.String JSONKEY_NAME
public static final java.lang.String JSONKEY_PRESETS
public static final java.lang.String JSONKEY_TYPE
public static final java.lang.String JSONKEY_WIDTH
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, 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)
onlineLink - the online link to the current pagenoEditReason - the reason why the current user is not allowed to edit the current container pagerequestParams - the original request parameterssitemapUri - the current sitemap URIsitemapManager - if the user has the sitemap manager roledetailId - the detail resource id, if availabledetailContainerPage - the detail view container resource pathlastModified - the last modification date of the pagelockInfo - lock information, if the page is locked by another userpageInfo - the current page infolocale - the content localeuseClassicEditor - true to use the classic XmlContent editorcontextInfo - the template context informationshowSmallElementsInitially - flag which controls whether small elements should be shown initiallyelementViews - the element viewselementView - the current element viewreuseMode - the element reuse modedeleteMode - the element delete modeisModelPage - true if this is a model pageisModelGroup - true if the page is used for model groupsmodelGroupEmenetId - the model group base element idmainLocale - the main locale to this page in case it is part of a locale grouplocaleLinkBeans - beans for links to other pages in the locale groupappTitle - the title to display in the toolbarloadTime - the current timeprotected CmsCntPageData()
public boolean allowSettingsInEditor()
true in case editing settings in the content editor is allowedpublic java.lang.String getAppTitle()
public java.lang.String getBacklinkUri()
public long getDateLastModified()
public CmsCntPageData.ElementDeleteMode getDeleteMode()
public java.lang.String getDetailContainerPage()
public CmsUUID getDetailId()
public CmsCntPageData.ElementReuseMode getElementReuseMode()
public CmsElementViewInfo getElementView()
public java.util.List<CmsElementViewInfo> getElementViews()
public long getLoadTime()
public java.lang.String getLocale()
public java.util.Map<java.lang.String,CmsLocaleLinkBean> getLocaleLinkBeans()
The beans represent links to different locale variants of this page.
public java.lang.String getLockInfo()
public java.lang.String getMainLocale()
public java.lang.String getModelGroupElementId()
public java.lang.String getNoEditReason()
public java.lang.String getOnlineLink()
public CmsListInfoBean getPageInfo()
public java.lang.String getRequestParams()
public CmsContainerPageRpcContext getRpcContext()
public java.lang.String getSitemapUri()
public CmsTemplateContextInfo getTemplateContextInfo()
public boolean isEditSmallElementsInitially()
public boolean isModelGroup()
public boolean isModelPage()
public boolean isSitemapManager()
public boolean isUseClassicEditor()
true if the classic XmlContent editor should be usedpublic void setAllowSettingsInEditor(boolean allowSettingsInEditor)
allowSettingsInEditor - true to set editing settings in the content editor is allowedpublic void setRpcContext(CmsContainerPageRpcContext context)
context - the RPC context