org.opencms.gwt.shared
Class CmsCoreData

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

public class CmsCoreData
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable

Runtime data bean for prefetching.

Since:
8.0.0

Nested Class Summary
static class CmsCoreData.AdeContext
          A enumeration for the ADE context.
 
Field Summary
static java.lang.String DICT_NAME
          Name of the used js variable.
static java.lang.String KEY_GWT_BUILDID
          The key for the GWT build id property.
protected  long m_serverTime
          The time sent from the server when loading the data.
static java.lang.String PARAM_PATH
          The parameter name for path.
static java.lang.String PARAM_RETURNCODE
          The parameter name for the return code.
 
Constructor Summary
CmsCoreData()
          Constructor.
CmsCoreData(CmsCoreData clone)
          Clone constructor.
CmsCoreData(java.lang.String contentEditorUrl, java.lang.String contentEditorBacklinkUrl, java.lang.String contentEditorDeleteLinkUrl, java.lang.String loginUrl, java.lang.String vfsPrefix, java.lang.String siteRoot, java.lang.String locale, java.lang.String wpLocale, java.lang.String uri, java.lang.String navigationUri, CmsUUID structureId, java.util.Map<java.lang.String,java.lang.String> extensionMapping, long serverTime, boolean toolbarVisible, java.util.Map<java.lang.String,java.lang.String> gwtBuildIds)
          Constructor.
 
Method Summary
 java.lang.String getContentEditorBacklinkUrl()
          Returns the XML content editor back-link URL.
 java.lang.String getContentEditorDeleteLinkUrl()
          Returns the XML content editor delete-link URL.
 java.lang.String getContentEditorUrl()
          Returns the XML content editor URL.
 java.util.Map<java.lang.String,java.lang.String> getExtensionMapping()
          Returns the extensionMapping.
 java.util.Map<java.lang.String,java.lang.String> getGwtBuildIds()
          Gets the map of GWT build ids.
 java.lang.String getLocale()
          Returns the current request locale.
 java.lang.String getLoginURL()
          Returns the login URL.
 java.lang.String getNavigationUri()
          Returns the current navigation (sitemap) URI.
 long getServerTime()
          Returns the time of the server when the data was loaded.
 java.lang.String getSiteRoot()
          Returns the current site root.
 CmsUUID getStructureId()
          Gets the structure id of the current resource.
 java.lang.String getUri()
          Returns the current uri.
 java.lang.String getVfsPrefix()
          Returns the OpenCms VFS prefix.
 java.lang.String getWpLocale()
          Returns the current workplace locale.
 boolean isToolbarVisible()
          Returns true if the toolbar should be visible initially.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DICT_NAME

public static final java.lang.String DICT_NAME
Name of the used js variable.

See Also:
Constant Field Values

KEY_GWT_BUILDID

public static final java.lang.String KEY_GWT_BUILDID
The key for the GWT build id property.

See Also:
Constant Field Values

PARAM_PATH

public static final java.lang.String PARAM_PATH
The parameter name for path.

See Also:
Constant Field Values

PARAM_RETURNCODE

public static final java.lang.String PARAM_RETURNCODE
The parameter name for the return code.

See Also:
Constant Field Values

m_serverTime

protected long m_serverTime
The time sent from the server when loading the data.

Constructor Detail

CmsCoreData

public CmsCoreData()
Constructor.


CmsCoreData

public CmsCoreData(CmsCoreData clone)
Clone constructor.

Parameters:
clone - the instance to clone

CmsCoreData

public CmsCoreData(java.lang.String contentEditorUrl,
                   java.lang.String contentEditorBacklinkUrl,
                   java.lang.String contentEditorDeleteLinkUrl,
                   java.lang.String loginUrl,
                   java.lang.String vfsPrefix,
                   java.lang.String siteRoot,
                   java.lang.String locale,
                   java.lang.String wpLocale,
                   java.lang.String uri,
                   java.lang.String navigationUri,
                   CmsUUID structureId,
                   java.util.Map<java.lang.String,java.lang.String> extensionMapping,
                   long serverTime,
                   boolean toolbarVisible,
                   java.util.Map<java.lang.String,java.lang.String> gwtBuildIds)
Constructor.

Parameters:
contentEditorUrl - the XML content editor URL
contentEditorBacklinkUrl - the XML content editor back-link URL
contentEditorDeleteLinkUrl - the XML content editor delete-link URL
loginUrl - the login JSP URL
vfsPrefix - the OpenCms VFS prefix
siteRoot - the current site root
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
serverTime - the current time
toolbarVisible - a flag to indicate whether the toolbar should be visible initially
gwtBuildIds - the map of GWT build ids
Method Detail

getContentEditorBacklinkUrl

public java.lang.String getContentEditorBacklinkUrl()
Returns the XML content editor back-link URL.

Returns:
the XML content editor back-link URL

getContentEditorDeleteLinkUrl

public java.lang.String getContentEditorDeleteLinkUrl()
Returns the XML content editor delete-link URL.

Returns:
the XML content editor delete-link URL

getContentEditorUrl

public java.lang.String getContentEditorUrl()
Returns the XML content editor URL.

Returns:
the XML content editor URL

getExtensionMapping

public java.util.Map<java.lang.String,java.lang.String> getExtensionMapping()
Returns the extensionMapping.

Returns:
the extensionMapping

getGwtBuildIds

public java.util.Map<java.lang.String,java.lang.String> getGwtBuildIds()
Gets the map of GWT build ids.

Returns:
the map containing the GWT build ids

getLocale

public java.lang.String getLocale()
Returns the current request locale.

Returns:
the current request locale

getLoginURL

public java.lang.String getLoginURL()
Returns the login URL.

Returns:
the login URL

getNavigationUri

public java.lang.String getNavigationUri()
Returns the current navigation (sitemap) URI.

Returns:
the current navigation URI

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

getSiteRoot

public java.lang.String getSiteRoot()
Returns the current site root.

Returns:
the current site root

getStructureId

public CmsUUID getStructureId()
Gets the structure id of the current resource.

Returns:
the structure id of the current resource

getUri

public java.lang.String getUri()
Returns the current uri.

Returns:
the current uri

getVfsPrefix

public java.lang.String getVfsPrefix()
Returns the OpenCms VFS prefix.

Returns:
the OpenCms VFS prefix

getWpLocale

public java.lang.String getWpLocale()
Returns the current workplace locale.

Returns:
the current workplace locale

isToolbarVisible

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

Returns:
true if the toolbar should be visible initially