org.opencms.gwt
Class CmsGwtActionElement

java.lang.Object
  extended by org.opencms.jsp.CmsJspBean
      extended by org.opencms.jsp.CmsJspActionElement
          extended by org.opencms.gwt.CmsGwtActionElement
Direct Known Subclasses:
CmsContainerpageActionElement, CmsEditProviderActionElement, CmsGalleryActionElement, CmsPublishActionElement, CmsSitemapActionElement, CmsUploadActionElement

public class CmsGwtActionElement
extends CmsJspActionElement

Sitemap action used to generate the sitemap editor.

see jsp file /system/modules/org.opencms.ade.sitemap/sitemap.jsp.

Since:
8.0.0

Field Summary
protected static String SCRIPT_TAG_CLOSE
          The closing script tag.
protected static String SCRIPT_TAG_OPEN
          The opening script tag.
 
Fields inherited from class org.opencms.jsp.CmsJspActionElement
NOT_INITIALIZED
 
Constructor Summary
CmsGwtActionElement(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Constructor.
 
Method Summary
 String createNoCacheScript(String moduleName)
          Returns the script tag for the "*.nocache.js".
 String export()
          Returns the serialized data for the core provider wrapped in a script tag.
 String export(String iconCssClassPrefix)
          Returns the serialized data for the core provider wrapped into a script tag.
 String exportAll()
          Returns the serialized data for the core provider.
 String exportAll(String cssIconClassPrefix)
          Exports everything, using the given CSS selector prefix.
 CmsCoreData getCoreData()
          Returns the needed server data for client-side usage.
 Locale getWorkplaceLocale()
          Returns the workplace locale for the current user.
protected  String serialize(Method method, Object data)
          Serializes the result of the given method for RPC-prefetching.
protected  StringBuffer wrapScript(StringBuffer sb)
          Wraps the given buffer with surrounding script tags.
 
Methods inherited from class org.opencms.jsp.CmsJspActionElement
editable, editable, editable, editableManualClose, editableManualOpen, getContent, getContent, getMessages, getMessages, getMessages, getMessages, getNavigation, getNavigationUri, img, img, include, include, include, include, include, include, includeSilent, includeSilent, includeSilent, includeSilent, info, label, link, link, properties, properties, property, property, property, property, template, template, template, toAbsolute, user
 
Methods inherited from class org.opencms.jsp.CmsJspBean
getCmsObject, getController, getJspContext, getMessage, getRequest, getRequestContext, getResponse, handleException, init, isNotInitialized, isSupressingExceptions, setContentType, setStatus, setSupressingExceptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCRIPT_TAG_CLOSE

protected static final String SCRIPT_TAG_CLOSE
The closing script tag.

See Also:
Constant Field Values

SCRIPT_TAG_OPEN

protected static final String SCRIPT_TAG_OPEN
The opening script tag.

See Also:
Constant Field Values
Constructor Detail

CmsGwtActionElement

public CmsGwtActionElement(javax.servlet.jsp.PageContext context,
                           javax.servlet.http.HttpServletRequest req,
                           javax.servlet.http.HttpServletResponse res)
Constructor.

Parameters:
context - the JSP page context object
req - the JSP request
res - the JSP response
Method Detail

createNoCacheScript

public String createNoCacheScript(String moduleName)
Returns the script tag for the "*.nocache.js".

Parameters:
moduleName - the module name to get the script tag for
Returns:
the "<script>" tag for the "*.nocache.js".


export

public String export()
              throws Exception
Returns the serialized data for the core provider wrapped in a script tag.

Returns:
the data
Throws:
Exception - if something goes wrong

export

public String export(String iconCssClassPrefix)
              throws Exception
Returns the serialized data for the core provider wrapped into a script tag.

Parameters:
iconCssClassPrefix - the prefix for icon css class rules
Returns:
the data
Throws:
Exception - if something goes wrong

exportAll

public String exportAll()
                 throws Exception
Returns the serialized data for the core provider.

Returns:
the data
Throws:
Exception - if something goes wrong

exportAll

public String exportAll(String cssIconClassPrefix)
                 throws Exception
Exports everything, using the given CSS selector prefix.

Parameters:
cssIconClassPrefix - the CSS selector prefix
Returns:
the exported data
Throws:
Exception - if something goes wrong

getCoreData

public CmsCoreData getCoreData()
Returns the needed server data for client-side usage.

Returns:
the needed server data for client-side usage

getWorkplaceLocale

public Locale getWorkplaceLocale()
Returns the workplace locale for the current user.

Returns:
the workplace locale

serialize

protected String serialize(Method method,
                           Object data)
                    throws com.google.gwt.user.client.rpc.SerializationException
Serializes the result of the given method for RPC-prefetching.

Parameters:
method - the method
data - the result to serialize
Returns:
the serialized data
Throws:
com.google.gwt.user.client.rpc.SerializationException - if something goes wrong

wrapScript

protected StringBuffer wrapScript(StringBuffer sb)
Wraps the given buffer with surrounding script tags.

Parameters:
sb - the string buffer to wrap
Returns:
the string buffer