org.apache.jetspeed.desktop.impl
Class JetspeedDesktopContextImpl

java.lang.Object
  extended by org.apache.jetspeed.desktop.impl.JetspeedDesktopContextImpl
All Implemented Interfaces:
JetspeedDesktopContext

public class JetspeedDesktopContextImpl
extends java.lang.Object
implements JetspeedDesktopContext

Jetspeed Desktop

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

Field Summary
 
Fields inherited from interface org.apache.jetspeed.desktop.JetspeedDesktopContext
DESKTOP_COMPONENT_MANAGER_ATTRIBUTE, DESKTOP_CONTEXT_ATTRIBUTE, DESKTOP_REQUEST_CONTEXT_ATTRIBUTE, LAYOUT_DESKTOP_TEMPLATE_EXTENSION_PROP, LAYOUT_PORTALUSER_TEMPLATE_ID_PROP, LAYOUT_PRINT_TEMPLATE_ID_PROP, LAYOUT_TEMPLATE_EXTENSION_PROP, LAYOUT_TEMPLATE_ID_DEFAULT, LAYOUT_TEMPLATE_ID_PROP
 
Constructor Summary
JetspeedDesktopContextImpl(RequestContext context, BasePortalURL baseUrlAccess, Theme theme, HeaderResource headerResource, java.lang.String defaultLayoutTemplateExtension)
           
 
Method Summary
 HeaderResource getHeaderResource()
           
 java.lang.String getLayoutBasePath()
           Returns the base path for the layout decoration.
 java.lang.String getLayoutBasePath(java.lang.String relativePath)
           Returns the base path for the layout decoration with the relativePath argument added.
 java.lang.String getLayoutBaseUrl()
           Returns the base url for the layout decoration.
 java.lang.String getLayoutBaseUrl(java.lang.String relativePath)
           Returns the base url for the layout decoration with the relativePath argument added.
 java.lang.String getLayoutDecorationName()
          Gets the layout decoration name
 java.util.ResourceBundle getLayoutResourceBundle(java.util.Locale locale)
           
 java.lang.String getLayoutTemplatePath()
           Get the path to the layout decoration desktop template file.
 java.lang.String getLayoutTemplatePath(java.lang.String layoutTemplateIdPropertyName)
           Get the path to the layout decoration desktop template file.
 java.lang.String getPortalBaseUrl()
          Portal base url ( e.g.
 java.lang.String getPortalBaseUrl(boolean encode)
          Portal base url ( e.g.
 java.lang.String getPortalResourceUrl(java.lang.String relativePath)
          Portal base url with relativePath argument appended ( e.g.
 java.lang.String getPortalResourceUrl(java.lang.String relativePath, boolean encode)
          Portal base url with relativePath argument appended ( e.g.
 java.lang.String getPortalUrl()
          Portal base servlet url ( e.g.
 java.lang.String getPortalUrl(boolean encode)
          Portal base servlet url ( e.g.
 java.lang.String getPortalUrl(java.lang.String relativePath)
          Portal base servlet url with relativePath argument appended ( e.g.
 java.lang.String getPortalUrl(java.lang.String relativePath, boolean encode)
          Portal base servlet url with relativePath argument appended ( e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JetspeedDesktopContextImpl

public JetspeedDesktopContextImpl(RequestContext context,
                                  BasePortalURL baseUrlAccess,
                                  Theme theme,
                                  HeaderResource headerResource,
                                  java.lang.String defaultLayoutTemplateExtension)
Method Detail

getPortalBaseUrl

public java.lang.String getPortalBaseUrl()
Portal base url ( e.g. http://localhost:8080/jetspeed )

Specified by:
getPortalBaseUrl in interface JetspeedDesktopContext
Returns:
portal base url

getPortalBaseUrl

public java.lang.String getPortalBaseUrl(boolean encode)
Portal base url ( e.g. http://localhost:8080/jetspeed )

Specified by:
getPortalBaseUrl in interface JetspeedDesktopContext
Returns:
portal base url

getPortalResourceUrl

public java.lang.String getPortalResourceUrl(java.lang.String relativePath)
Portal base url with relativePath argument appended ( e.g. http://localhost:8080/jetspeed/javascript/dojo/ )

Specified by:
getPortalResourceUrl in interface JetspeedDesktopContext
Returns:
portal base url with relativePath argument appended

getPortalResourceUrl

public java.lang.String getPortalResourceUrl(java.lang.String relativePath,
                                             boolean encode)
Portal base url with relativePath argument appended ( e.g. http://localhost:8080/jetspeed/javascript/dojo/ )

Specified by:
getPortalResourceUrl in interface JetspeedDesktopContext
Returns:
portal base url with relativePath argument appended

getPortalUrl

public java.lang.String getPortalUrl()
Portal base servlet url ( e.g. http://localhost:8080/jetspeed/desktop/ )

Specified by:
getPortalUrl in interface JetspeedDesktopContext
Returns:
portal base servlet url

getPortalUrl

public java.lang.String getPortalUrl(boolean encode)
Portal base servlet url ( e.g. http://localhost:8080/jetspeed/desktop/ )

Specified by:
getPortalUrl in interface JetspeedDesktopContext
Returns:
portal base servlet url

getPortalUrl

public java.lang.String getPortalUrl(java.lang.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 JetspeedDesktopContext
Returns:
portal base servlet url with relativePath argument appended

getPortalUrl

public java.lang.String getPortalUrl(java.lang.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 JetspeedDesktopContext
Returns:
portal base servlet url with relativePath argument appended

getLayoutDecorationName

public java.lang.String getLayoutDecorationName()
Description copied from interface: JetspeedDesktopContext
Gets the layout decoration name

Specified by:
getLayoutDecorationName in interface JetspeedDesktopContext
Returns:

getLayoutTemplatePath

public java.lang.String getLayoutTemplatePath()
Description copied from interface: JetspeedDesktopContext

Get the path to the layout decoration desktop template file.

Specified by:
getLayoutTemplatePath in interface JetspeedDesktopContext
Returns:
the desktop template file path.

getLayoutTemplatePath

public java.lang.String getLayoutTemplatePath(java.lang.String layoutTemplateIdPropertyName)
Description copied from interface: JetspeedDesktopContext

Get the path to the layout decoration desktop template file. The property name parameter is provided to allow for an alternate property value to be used as the filename (without extension) of the desktop template file.

Specified by:
getLayoutTemplatePath in interface JetspeedDesktopContext
Returns:
the desktop template file path.

getLayoutBasePath

public java.lang.String getLayoutBasePath()
Description copied from interface: JetspeedDesktopContext

Returns the base path for the layout decoration.

Specified by:
getLayoutBasePath in interface JetspeedDesktopContext
Returns:
the base path for the layout decoration.

getLayoutBasePath

public java.lang.String getLayoutBasePath(java.lang.String relativePath)
Description copied from interface: JetspeedDesktopContext

Returns the base path for the layout decoration with the relativePath argument added.

Specified by:
getLayoutBasePath in interface JetspeedDesktopContext
Returns:
the base path for the layout decoration with the relativePath argument added.

getLayoutBaseUrl

public java.lang.String getLayoutBaseUrl()
Description copied from interface: JetspeedDesktopContext

Returns the base url for the layout decoration.

Specified by:
getLayoutBaseUrl in interface JetspeedDesktopContext
Returns:
the base url for the layout decoration.

getLayoutBaseUrl

public java.lang.String getLayoutBaseUrl(java.lang.String relativePath)
Description copied from interface: JetspeedDesktopContext

Returns the base url for the layout decoration with the relativePath argument added.

Specified by:
getLayoutBaseUrl in interface JetspeedDesktopContext
Returns:
the base url for the layout decoration with the relativePath argument added.

getLayoutResourceBundle

public java.util.ResourceBundle getLayoutResourceBundle(java.util.Locale locale)
Specified by:
getLayoutResourceBundle in interface JetspeedDesktopContext
Returns:
the layout decoration resource bundle for the given Locale.

getHeaderResource

public HeaderResource getHeaderResource()
Specified by:
getHeaderResource in interface JetspeedDesktopContext
Returns:
the HeaderResource component.


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