org.apache.jetspeed.desktop.impl
Class JetspeedDesktopImpl

java.lang.Object
  extended by org.apache.jetspeed.desktop.impl.JetspeedDesktopImpl
All Implemented Interfaces:
org.apache.jetspeed.desktop.JetspeedDesktop, org.springframework.web.context.ServletContextAware

public class JetspeedDesktopImpl
extends Object
implements org.apache.jetspeed.desktop.JetspeedDesktop, org.springframework.web.context.ServletContextAware

Desktop Valve

Version:
$Id: JetspeedDesktopImpl.java $
Author:
David Sean Taylor, Steve Milek

Field Summary
private  org.apache.jetspeed.container.url.BasePortalURL baseUrlAccess
          base portal URL to override default URL server info from servlet
private  org.apache.jetspeed.decoration.DecorationFactory decorationFactory
           
private  String defaultLayoutTemplateExtension
          default extension for layout templates
private static String DESKTOP_ACTION_NAME_PREFIX
           
private static String DESKTOP_ACTION_RESOURCE_NAME_PREFIX
           
private static String[] DESKTOP_ACTION_RESOURCE_NAMES
           
private static String DESKTOP_LOADING_IMG_NAME_PREFIX
           
private static String DESKTOP_LOADING_NAME_PREFIX
           
private static String[] DESKTOP_LOADING_OUTPUT_PROPERTY_NAMES
           
private static String[] DESKTOP_LOADING_PROPERTY_NAMES
           
private static String DESKTOP_PAGEEDITOR_DIALOG_RESOURCE_NAME_PREFIX
           
private static String[] DESKTOP_PAGEEDITOR_DIALOG_RESOURCE_NAMES
           
private static String DESKTOP_PAGEEDITOR_LAYOUT_COLUMNSIZE_EDITABLE
           
private static String DESKTOP_PAGEEDITOR_LAYOUT_COLUMNSIZE_EDITABLE_DEFAULT
           
private static int DESKTOP_PAGEEDITOR_LAYOUT_COLUMNSIZE_EDITABLE_TRUE
           
private static String DESKTOP_PAGEEDITOR_LAYOUT_NAME_EDITABLE
           
private static String DESKTOP_PAGEEDITOR_LAYOUT_NAME_EDITABLE_DEFAULT
           
private static int DESKTOP_PAGEEDITOR_LAYOUT_NAME_EDITABLE_TRUE
           
private static String DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_COLUMNSIZE_EDITABLE
           
private static String DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_COLUMNSIZE_EDITABLE_DEFAULT
           
private static int DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_COLUMNSIZE_EDITABLE_TRUE
           
private static String DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_EDITABLE
           
private static String DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_EDITABLE_DEFAULT
           
private static int DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_EDITABLE_TRUE
           
private static String DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_EDITOR_ROLE
           
private static String DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_EDITOR_ROLE_DEFAULT
           
private static String DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_TOPLEVEL_MOVEABLE
           
private static String DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_TOPLEVEL_MOVEABLE_DEFAULT
           
private static int DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_TOPLEVEL_MOVEABLE_TRUE
           
private static String DESKTOP_PAGEEDITOR_MOVEMODE_ISDEFAULT
           
private static String DESKTOP_PAGEEDITOR_MOVEMODE_ISDEFAULT_DEFAULT
           
private static int DESKTOP_PAGEEDITOR_MOVEMODE_ISDEFAULT_TRUE
           
private static String DESKTOP_PAGEEDITOR_NAME_PREFIX
           
private static String DESKTOP_PAGEEDITOR_PAGE_ADD_ENABLED
           
private static String DESKTOP_PAGEEDITOR_PAGE_ADD_ENABLED_DEFAULT
           
private static int DESKTOP_PAGEEDITOR_PAGE_ADD_ENABLED_TRUE
           
private static String DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DECORATOR_EDITABLE
           
private static String DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DECORATOR_EDITABLE_DEFAULT
           
private static int DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DECORATOR_EDITABLE_TRUE
           
private static String DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DEPTH_MAX
           
private static int DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DEPTH_MAX_DEFAULT
           
private static int DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DEPTH_MAX_RESERVED
           
private static String DESKTOP_PAGEEDITOR_PAGE_PORTLET_DECORATOR_EDITABLE
           
private static String DESKTOP_PAGEEDITOR_PAGE_PORTLET_DECORATOR_EDITABLE_DEFAULT
           
private static int DESKTOP_PAGEEDITOR_PAGE_PORTLET_DECORATOR_EDITABLE_TRUE
           
private static String DESKTOP_PAGEEDITOR_PORTLET_ADD_ENABLED
           
private static String DESKTOP_PAGEEDITOR_PORTLET_ADD_ENABLED_DEFAULT
           
private static int DESKTOP_PAGEEDITOR_PORTLET_ADD_ENABLED_TRUE
           
private static String DESKTOP_PAGEEDITOR_PORTLET_DECORATOR_EDITABLE
           
private static String DESKTOP_PAGEEDITOR_PORTLET_DECORATOR_EDITABLE_DEFAULT
           
private static int DESKTOP_PAGEEDITOR_PORTLET_DECORATOR_EDITABLE_TRUE
           
private static String DESKTOP_PAGEEDITOR_RESOURCE_NAME_PREFIX
           
private static String[] DESKTOP_PAGEEDITOR_RESOURCE_NAMES
           
private  org.apache.jetspeed.cache.JetspeedCache desktopContentCache
          cache to minimize production of generated desktop configuration content
private  String desktopServletPath
          desktop pipeline servlet path
private static String DOJO_CONFIG_ACTION_LABELS_NAME
           
private static String DOJO_CONFIG_LAYOUT_DECORATION_PATH_VAR_NAME
           
private static String DOJO_CONFIG_LAYOUT_VAR_NAME
           
private static String DOJO_CONFIG_LOADING_IMGPROPS_NAME
           
private static String DOJO_CONFIG_PAGEEDITOR_DIALOG_LABELS_NAME
           
private static String DOJO_CONFIG_PAGEEDITOR_LABELS_NAME
           
private static String DOJO_CONFIG_PAGEEDITOR_SETTINGS_NAME
           
private static String DOJO_CONFIG_PORTLET_DECORATIONS_ALLOWED_VAR_NAME
           
private static String DOJO_CONFIG_PORTLET_DECORATIONS_CONFIG_VAR_NAME
           
private static String DOJO_CONFIG_PORTLET_DECORATIONS_PATH_VAR_NAME
           
private static String EOL
           
private  org.apache.jetspeed.headerresource.HeaderResourceFactory headerResourceFactory
          tool for directing output to html <head>
private static org.apache.commons.logging.Log log
           
private  javax.servlet.ServletContext servletContext
          spring-fed servlet context property
 
Fields inherited from interface org.apache.jetspeed.desktop.JetspeedDesktop
DEFAULT_DESKTOP_ACTION_PIPELINE_PATH, DEFAULT_DESKTOP_CONFIGURE_PIPELINE_PATH, DEFAULT_DESKTOP_PIPELINE_PATH, DEFAULT_DESKTOP_RENDER_PIPELINE_PATH, DESKTOP_AJAX_REQUEST_PARAMETER, DESKTOP_ENABLED_REQUEST_ATTRIBUTE, DESKTOP_ENCODER_REQUEST_PARAMETER, DESKTOP_ENCODER_REQUEST_PARAMETER_VALUE, DESKTOP_REQUEST_NOT_AJAX_PARAMETER
 
Constructor Summary
JetspeedDesktopImpl(org.apache.jetspeed.decoration.DecorationFactory decorationFactory, org.apache.jetspeed.headerresource.HeaderResourceFactory headerResourceFactory, org.apache.jetspeed.cache.JetspeedCache desktopContentCache, String desktopServletPath, String defaultLayoutTemplateExtension)
           
JetspeedDesktopImpl(org.apache.jetspeed.decoration.DecorationFactory decorationFactory, org.apache.jetspeed.headerresource.HeaderResourceFactory headerResourceFactory, org.apache.jetspeed.cache.JetspeedCache desktopContentCache, String desktopServletPath, String defaultLayoutTemplateExtension, String defaultDesktopLayoutDecoration, String defaultDesktopPortletDecoration)
           
JetspeedDesktopImpl(org.apache.jetspeed.decoration.DecorationFactory decorationFactory, org.apache.jetspeed.headerresource.HeaderResourceFactory headerResourceFactory, org.apache.jetspeed.cache.JetspeedCache desktopContentCache, String desktopServletPath, String defaultLayoutTemplateExtension, String defaultDesktopLayoutDecoration, String defaultDesktopPortletDecoration, org.apache.jetspeed.container.url.BasePortalURL baseUrlAccess)
           
 
Method Summary
private  void addPageEditorSettings(StringBuffer dojoConfigAddOn, org.apache.jetspeed.decoration.LayoutDecoration desktopLayoutDecoration)
           
private  String getCachedContent(String cacheKey)
           
 String getDesktopServletPath()
          Desktop servlet path ( e.g.
 org.apache.jetspeed.headerresource.HeaderResourceFactory getHeaderResourceFactory()
           
 String getPortalBaseUrl(org.apache.jetspeed.request.RequestContext context)
          Portal base url ( e.g.
 String getPortalBaseUrl(org.apache.jetspeed.request.RequestContext context, boolean encode)
          Portal base url ( e.g.
 String getPortalResourceUrl(org.apache.jetspeed.request.RequestContext context, String relativePath)
          Portal base url with relativePath argument appended ( e.g.
 String getPortalResourceUrl(org.apache.jetspeed.request.RequestContext context, String relativePath, boolean encode)
          Portal base url with relativePath argument appended ( e.g.
 String getPortalUrl(org.apache.jetspeed.request.RequestContext context)
          Portal base servlet url ( e.g.
 String getPortalUrl(org.apache.jetspeed.request.RequestContext context, boolean encode)
          Portal base servlet url ( e.g.
 String getPortalUrl(org.apache.jetspeed.request.RequestContext context, String relativePath)
          Portal base servlet url with relativePath argument appended ( e.g.
 String getPortalUrl(org.apache.jetspeed.request.RequestContext context, String relativePath, boolean encode)
          Portal base servlet url with relativePath argument appended ( e.g.
private  int getRandom(Random rnd, int minValueInclusive, int maxValueExclusive)
           
private  String getResourcesAsJavascriptObject(String resourceNamePrefix, String[] resourceNames, ResourceBundle messages, String varName, String indent, boolean ifEmptyReturnEmptyString)
           
 javax.servlet.ServletContext getServletContext()
           
 boolean isDesktopEnabled(org.apache.jetspeed.request.RequestContext requestContext)
           
private  void processBooleanFlagProperty(int[] flags, Object propVal, Object propValDefault, int propIsTrueBit)
           
 void render(org.apache.jetspeed.request.RequestContext request)
           
private  void setCachedContent(String cacheKey, String content)
           
 void setServletContext(javax.servlet.ServletContext servletContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

EOL

private static final String EOL
See Also:
Constant Field Values

DOJO_CONFIG_LAYOUT_DECORATION_PATH_VAR_NAME

private static final String DOJO_CONFIG_LAYOUT_DECORATION_PATH_VAR_NAME
See Also:
Constant Field Values

DOJO_CONFIG_LAYOUT_VAR_NAME

private static final String DOJO_CONFIG_LAYOUT_VAR_NAME
See Also:
Constant Field Values

DOJO_CONFIG_PORTLET_DECORATIONS_PATH_VAR_NAME

private static final String DOJO_CONFIG_PORTLET_DECORATIONS_PATH_VAR_NAME
See Also:
Constant Field Values

DOJO_CONFIG_PORTLET_DECORATIONS_ALLOWED_VAR_NAME

private static final String DOJO_CONFIG_PORTLET_DECORATIONS_ALLOWED_VAR_NAME
See Also:
Constant Field Values

DOJO_CONFIG_PORTLET_DECORATIONS_CONFIG_VAR_NAME

private static final String DOJO_CONFIG_PORTLET_DECORATIONS_CONFIG_VAR_NAME
See Also:
Constant Field Values

DOJO_CONFIG_ACTION_LABELS_NAME

private static final String DOJO_CONFIG_ACTION_LABELS_NAME
See Also:
Constant Field Values

DOJO_CONFIG_LOADING_IMGPROPS_NAME

private static final String DOJO_CONFIG_LOADING_IMGPROPS_NAME
See Also:
Constant Field Values

DOJO_CONFIG_PAGEEDITOR_LABELS_NAME

private static final String DOJO_CONFIG_PAGEEDITOR_LABELS_NAME
See Also:
Constant Field Values

DOJO_CONFIG_PAGEEDITOR_DIALOG_LABELS_NAME

private static final String DOJO_CONFIG_PAGEEDITOR_DIALOG_LABELS_NAME
See Also:
Constant Field Values

DOJO_CONFIG_PAGEEDITOR_SETTINGS_NAME

private static final String DOJO_CONFIG_PAGEEDITOR_SETTINGS_NAME
See Also:
Constant Field Values

DESKTOP_LOADING_PROPERTY_NAMES

private static final String[] DESKTOP_LOADING_PROPERTY_NAMES

DESKTOP_LOADING_OUTPUT_PROPERTY_NAMES

private static final String[] DESKTOP_LOADING_OUTPUT_PROPERTY_NAMES

DESKTOP_ACTION_RESOURCE_NAMES

private static final String[] DESKTOP_ACTION_RESOURCE_NAMES

DESKTOP_PAGEEDITOR_RESOURCE_NAMES

private static final String[] DESKTOP_PAGEEDITOR_RESOURCE_NAMES

DESKTOP_PAGEEDITOR_DIALOG_RESOURCE_NAMES

private static final String[] DESKTOP_PAGEEDITOR_DIALOG_RESOURCE_NAMES

DESKTOP_LOADING_NAME_PREFIX

private static final String DESKTOP_LOADING_NAME_PREFIX
See Also:
Constant Field Values

DESKTOP_ACTION_NAME_PREFIX

private static final String DESKTOP_ACTION_NAME_PREFIX
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_NAME_PREFIX

private static final String DESKTOP_PAGEEDITOR_NAME_PREFIX
See Also:
Constant Field Values

DESKTOP_LOADING_IMG_NAME_PREFIX

private static final String DESKTOP_LOADING_IMG_NAME_PREFIX
See Also:
Constant Field Values

DESKTOP_ACTION_RESOURCE_NAME_PREFIX

private static final String DESKTOP_ACTION_RESOURCE_NAME_PREFIX
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_RESOURCE_NAME_PREFIX

private static final String DESKTOP_PAGEEDITOR_RESOURCE_NAME_PREFIX
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_DIALOG_RESOURCE_NAME_PREFIX

private static final String DESKTOP_PAGEEDITOR_DIALOG_RESOURCE_NAME_PREFIX
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DECORATOR_EDITABLE

private static final String DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DECORATOR_EDITABLE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DECORATOR_EDITABLE_DEFAULT

private static final String DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DECORATOR_EDITABLE_DEFAULT
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_NAME_EDITABLE

private static final String DESKTOP_PAGEEDITOR_LAYOUT_NAME_EDITABLE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_NAME_EDITABLE_DEFAULT

private static final String DESKTOP_PAGEEDITOR_LAYOUT_NAME_EDITABLE_DEFAULT
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_COLUMNSIZE_EDITABLE

private static final String DESKTOP_PAGEEDITOR_LAYOUT_COLUMNSIZE_EDITABLE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_COLUMNSIZE_EDITABLE_DEFAULT

private static final String DESKTOP_PAGEEDITOR_LAYOUT_COLUMNSIZE_EDITABLE_DEFAULT
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PAGE_ADD_ENABLED

private static final String DESKTOP_PAGEEDITOR_PAGE_ADD_ENABLED
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PAGE_ADD_ENABLED_DEFAULT

private static final String DESKTOP_PAGEEDITOR_PAGE_ADD_ENABLED_DEFAULT
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PORTLET_ADD_ENABLED

private static final String DESKTOP_PAGEEDITOR_PORTLET_ADD_ENABLED
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PORTLET_ADD_ENABLED_DEFAULT

private static final String DESKTOP_PAGEEDITOR_PORTLET_ADD_ENABLED_DEFAULT
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PAGE_PORTLET_DECORATOR_EDITABLE

private static final String DESKTOP_PAGEEDITOR_PAGE_PORTLET_DECORATOR_EDITABLE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PAGE_PORTLET_DECORATOR_EDITABLE_DEFAULT

private static final String DESKTOP_PAGEEDITOR_PAGE_PORTLET_DECORATOR_EDITABLE_DEFAULT
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PORTLET_DECORATOR_EDITABLE

private static final String DESKTOP_PAGEEDITOR_PORTLET_DECORATOR_EDITABLE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PORTLET_DECORATOR_EDITABLE_DEFAULT

private static final String DESKTOP_PAGEEDITOR_PORTLET_DECORATOR_EDITABLE_DEFAULT
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_MOVEMODE_ISDEFAULT

private static final String DESKTOP_PAGEEDITOR_MOVEMODE_ISDEFAULT
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_MOVEMODE_ISDEFAULT_DEFAULT

private static final String DESKTOP_PAGEEDITOR_MOVEMODE_ISDEFAULT_DEFAULT
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_EDITABLE

private static final String DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_EDITABLE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_EDITABLE_DEFAULT

private static final String DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_EDITABLE_DEFAULT
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_TOPLEVEL_MOVEABLE

private static final String DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_TOPLEVEL_MOVEABLE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_TOPLEVEL_MOVEABLE_DEFAULT

private static final String DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_TOPLEVEL_MOVEABLE_DEFAULT
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_COLUMNSIZE_EDITABLE

private static final String DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_COLUMNSIZE_EDITABLE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_COLUMNSIZE_EDITABLE_DEFAULT

private static final String DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_COLUMNSIZE_EDITABLE_DEFAULT
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_EDITOR_ROLE

private static final String DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_EDITOR_ROLE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_EDITOR_ROLE_DEFAULT

private static final String DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_EDITOR_ROLE_DEFAULT

DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DEPTH_MAX

private static final String DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DEPTH_MAX
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DEPTH_MAX_DEFAULT

private static final int DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DEPTH_MAX_DEFAULT
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DEPTH_MAX_RESERVED

private static final int DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DEPTH_MAX_RESERVED
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DECORATOR_EDITABLE_TRUE

private static final int DESKTOP_PAGEEDITOR_PAGE_LAYOUT_DECORATOR_EDITABLE_TRUE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_NAME_EDITABLE_TRUE

private static final int DESKTOP_PAGEEDITOR_LAYOUT_NAME_EDITABLE_TRUE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_COLUMNSIZE_EDITABLE_TRUE

private static final int DESKTOP_PAGEEDITOR_LAYOUT_COLUMNSIZE_EDITABLE_TRUE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PAGE_ADD_ENABLED_TRUE

private static final int DESKTOP_PAGEEDITOR_PAGE_ADD_ENABLED_TRUE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PORTLET_ADD_ENABLED_TRUE

private static final int DESKTOP_PAGEEDITOR_PORTLET_ADD_ENABLED_TRUE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PAGE_PORTLET_DECORATOR_EDITABLE_TRUE

private static final int DESKTOP_PAGEEDITOR_PAGE_PORTLET_DECORATOR_EDITABLE_TRUE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_PORTLET_DECORATOR_EDITABLE_TRUE

private static final int DESKTOP_PAGEEDITOR_PORTLET_DECORATOR_EDITABLE_TRUE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_MOVEMODE_ISDEFAULT_TRUE

private static final int DESKTOP_PAGEEDITOR_MOVEMODE_ISDEFAULT_TRUE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_EDITABLE_TRUE

private static final int DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_EDITABLE_TRUE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_TOPLEVEL_MOVEABLE_TRUE

private static final int DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_TOPLEVEL_MOVEABLE_TRUE
See Also:
Constant Field Values

DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_COLUMNSIZE_EDITABLE_TRUE

private static final int DESKTOP_PAGEEDITOR_LAYOUT_NOACTIONS_COLUMNSIZE_EDITABLE_TRUE
See Also:
Constant Field Values

decorationFactory

private org.apache.jetspeed.decoration.DecorationFactory decorationFactory

desktopServletPath

private String desktopServletPath
desktop pipeline servlet path


defaultLayoutTemplateExtension

private String defaultLayoutTemplateExtension
default extension for layout templates


servletContext

private javax.servlet.ServletContext servletContext
spring-fed servlet context property


headerResourceFactory

private org.apache.jetspeed.headerresource.HeaderResourceFactory headerResourceFactory
tool for directing output to html <head>


desktopContentCache

private org.apache.jetspeed.cache.JetspeedCache desktopContentCache
cache to minimize production of generated desktop configuration content


baseUrlAccess

private org.apache.jetspeed.container.url.BasePortalURL baseUrlAccess
base portal URL to override default URL server info from servlet

Constructor Detail

JetspeedDesktopImpl

public JetspeedDesktopImpl(org.apache.jetspeed.decoration.DecorationFactory decorationFactory,
                           org.apache.jetspeed.headerresource.HeaderResourceFactory headerResourceFactory,
                           org.apache.jetspeed.cache.JetspeedCache desktopContentCache,
                           String desktopServletPath,
                           String defaultLayoutTemplateExtension)

JetspeedDesktopImpl

public JetspeedDesktopImpl(org.apache.jetspeed.decoration.DecorationFactory decorationFactory,
                           org.apache.jetspeed.headerresource.HeaderResourceFactory headerResourceFactory,
                           org.apache.jetspeed.cache.JetspeedCache desktopContentCache,
                           String desktopServletPath,
                           String defaultLayoutTemplateExtension,
                           String defaultDesktopLayoutDecoration,
                           String defaultDesktopPortletDecoration)

JetspeedDesktopImpl

public JetspeedDesktopImpl(org.apache.jetspeed.decoration.DecorationFactory decorationFactory,
                           org.apache.jetspeed.headerresource.HeaderResourceFactory headerResourceFactory,
                           org.apache.jetspeed.cache.JetspeedCache desktopContentCache,
                           String desktopServletPath,
                           String defaultLayoutTemplateExtension,
                           String defaultDesktopLayoutDecoration,
                           String defaultDesktopPortletDecoration,
                           org.apache.jetspeed.container.url.BasePortalURL baseUrlAccess)
Method Detail

render

public void render(org.apache.jetspeed.request.RequestContext request)
Specified by:
render in interface org.apache.jetspeed.desktop.JetspeedDesktop

addPageEditorSettings

private void addPageEditorSettings(StringBuffer dojoConfigAddOn,
                                   org.apache.jetspeed.decoration.LayoutDecoration desktopLayoutDecoration)

getRandom

private int getRandom(Random rnd,
                      int minValueInclusive,
                      int maxValueExclusive)

processBooleanFlagProperty

private void processBooleanFlagProperty(int[] flags,
                                        Object propVal,
                                        Object propValDefault,
                                        int propIsTrueBit)

getCachedContent

private String getCachedContent(String cacheKey)

setCachedContent

private void setCachedContent(String cacheKey,
                              String content)

getResourcesAsJavascriptObject

private String getResourcesAsJavascriptObject(String resourceNamePrefix,
                                              String[] resourceNames,
                                              ResourceBundle messages,
                                              String varName,
                                              String indent,
                                              boolean ifEmptyReturnEmptyString)

isDesktopEnabled

public boolean isDesktopEnabled(org.apache.jetspeed.request.RequestContext requestContext)
Specified by:
isDesktopEnabled in interface org.apache.jetspeed.desktop.JetspeedDesktop

getServletContext

public javax.servlet.ServletContext getServletContext()

setServletContext

public void setServletContext(javax.servlet.ServletContext servletContext)
Specified by:
setServletContext in interface org.springframework.web.context.ServletContextAware

getHeaderResourceFactory

public org.apache.jetspeed.headerresource.HeaderResourceFactory getHeaderResourceFactory()
Specified by:
getHeaderResourceFactory in interface org.apache.jetspeed.desktop.JetspeedDesktop

getDesktopServletPath

public String getDesktopServletPath()
Desktop servlet path ( e.g. /desktop )

Specified by:
getDesktopServletPath in interface org.apache.jetspeed.desktop.JetspeedDesktop
Returns:
portal base url

getPortalBaseUrl

public String getPortalBaseUrl(org.apache.jetspeed.request.RequestContext context)
Portal base url ( e.g. http://localhost:8080/jetspeed )

Specified by:
getPortalBaseUrl in interface org.apache.jetspeed.desktop.JetspeedDesktop
Returns:
portal base url

getPortalBaseUrl

public String getPortalBaseUrl(org.apache.jetspeed.request.RequestContext context,
                               boolean encode)
Portal base url ( e.g. http://localhost:8080/jetspeed )

Specified by:
getPortalBaseUrl in interface org.apache.jetspeed.desktop.JetspeedDesktop
Returns:
portal base url

getPortalResourceUrl

public String getPortalResourceUrl(org.apache.jetspeed.request.RequestContext context,
                                   String relativePath)
Portal base url with relativePath argument appended ( e.g. http://localhost:8080/jetspeed/javascript/dojo/ )

Specified by:
getPortalResourceUrl in interface org.apache.jetspeed.desktop.JetspeedDesktop
Returns:
portal base url with relativePath argument appended

getPortalResourceUrl

public String getPortalResourceUrl(org.apache.jetspeed.request.RequestContext context,
                                   String relativePath,
                                   boolean encode)
Portal base url with relativePath argument appended ( e.g. http://localhost:8080/jetspeed/javascript/dojo/ )

Specified by:
getPortalResourceUrl in interface org.apache.jetspeed.desktop.JetspeedDesktop
Returns:
portal base url with relativePath argument appended

getPortalUrl

public String getPortalUrl(org.apache.jetspeed.request.RequestContext context)
Portal base servlet url ( e.g. http://localhost:8080/jetspeed/desktop/ )

Specified by:
getPortalUrl in interface org.apache.jetspeed.desktop.JetspeedDesktop
Returns:
portal base servlet url

getPortalUrl

public String getPortalUrl(org.apache.jetspeed.request.RequestContext context,
                           boolean encode)
Portal base servlet url ( e.g. http://localhost:8080/jetspeed/desktop/ )

Specified by:
getPortalUrl in interface org.apache.jetspeed.desktop.JetspeedDesktop
Returns:
portal base servlet url

getPortalUrl

public String getPortalUrl(org.apache.jetspeed.request.RequestContext context,
                           String relativePath)
Portal base servlet url with relativePath argument appended ( e.g. http://localhost:8080/jetspeed/desktop/default-page.psml )

Specified by:
getPortalUrl in interface org.apache.jetspeed.desktop.JetspeedDesktop
Returns:
portal base servlet url with relativePath argument appended

getPortalUrl

public String getPortalUrl(org.apache.jetspeed.request.RequestContext context,
                           String relativePath,
                           boolean encode)
Portal base servlet url with relativePath argument appended ( e.g. http://localhost:8080/jetspeed/desktop/default-page.psml )

Specified by:
getPortalUrl in interface org.apache.jetspeed.desktop.JetspeedDesktop
Returns:
portal base servlet url with relativePath argument appended


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.