org.apache.jetspeed.desktop.impl
Class JetspeedDesktopContextImpl

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

public class JetspeedDesktopContextImpl
extends Object
implements org.apache.jetspeed.desktop.JetspeedDesktopContext

Jetspeed Desktop

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

Field Summary
private  org.apache.jetspeed.container.url.BasePortalURL baseUrlAccess
           
(package private)  org.apache.jetspeed.request.RequestContext context
           
private  String defaultLayoutTemplateExtension
           
private  org.apache.jetspeed.headerresource.HeaderResource headerResource
           
private  org.apache.jetspeed.decoration.LayoutDecoration layoutDecoration
           
private  String portalBaseUrl
           
private  String portalUrl
           
 
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(org.apache.jetspeed.request.RequestContext context, org.apache.jetspeed.container.url.BasePortalURL baseUrlAccess, org.apache.jetspeed.decoration.Theme theme, org.apache.jetspeed.headerresource.HeaderResource headerResource, String defaultLayoutTemplateExtension)
           
 
Method Summary
 org.apache.jetspeed.headerresource.HeaderResource getHeaderResource()
           
 String getLayoutBasePath()
           
 String getLayoutBasePath(String relativePath)
           
 String getLayoutBaseUrl()
           
 String getLayoutBaseUrl(String relativePath)
           
 String getLayoutDecorationName()
           
 ResourceBundle getLayoutResourceBundle(Locale locale)
           
 String getLayoutTemplatePath()
           
 String getLayoutTemplatePath(String layoutTemplateIdPropertyName)
           
 String getPortalBaseUrl()
          Portal base url ( e.g.
 String getPortalBaseUrl(boolean encode)
          Portal base url ( e.g.
 String getPortalResourceUrl(String relativePath)
          Portal base url with relativePath argument appended ( e.g.
 String getPortalResourceUrl(String relativePath, boolean encode)
          Portal base url with relativePath argument appended ( e.g.
 String getPortalUrl()
          Portal base servlet url ( e.g.
 String getPortalUrl(boolean encode)
          Portal base servlet url ( e.g.
 String getPortalUrl(String relativePath)
          Portal base servlet url with relativePath argument appended ( e.g.
 String getPortalUrl(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
 

Field Detail

context

org.apache.jetspeed.request.RequestContext context

baseUrlAccess

private org.apache.jetspeed.container.url.BasePortalURL baseUrlAccess

layoutDecoration

private org.apache.jetspeed.decoration.LayoutDecoration layoutDecoration

defaultLayoutTemplateExtension

private String defaultLayoutTemplateExtension

portalBaseUrl

private String portalBaseUrl

portalUrl

private String portalUrl

headerResource

private org.apache.jetspeed.headerresource.HeaderResource headerResource
Constructor Detail

JetspeedDesktopContextImpl

public JetspeedDesktopContextImpl(org.apache.jetspeed.request.RequestContext context,
                                  org.apache.jetspeed.container.url.BasePortalURL baseUrlAccess,
                                  org.apache.jetspeed.decoration.Theme theme,
                                  org.apache.jetspeed.headerresource.HeaderResource headerResource,
                                  String defaultLayoutTemplateExtension)
Method Detail

getPortalBaseUrl

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

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

getPortalBaseUrl

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

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

getPortalResourceUrl

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

getPortalResourceUrl

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

getPortalUrl

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

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

getPortalUrl

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

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

getPortalUrl

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

getPortalUrl

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

getLayoutDecorationName

public String getLayoutDecorationName()
Specified by:
getLayoutDecorationName in interface org.apache.jetspeed.desktop.JetspeedDesktopContext

getLayoutTemplatePath

public String getLayoutTemplatePath()
Specified by:
getLayoutTemplatePath in interface org.apache.jetspeed.desktop.JetspeedDesktopContext

getLayoutTemplatePath

public String getLayoutTemplatePath(String layoutTemplateIdPropertyName)
Specified by:
getLayoutTemplatePath in interface org.apache.jetspeed.desktop.JetspeedDesktopContext

getLayoutBasePath

public String getLayoutBasePath()
Specified by:
getLayoutBasePath in interface org.apache.jetspeed.desktop.JetspeedDesktopContext

getLayoutBasePath

public String getLayoutBasePath(String relativePath)
Specified by:
getLayoutBasePath in interface org.apache.jetspeed.desktop.JetspeedDesktopContext

getLayoutBaseUrl

public String getLayoutBaseUrl()
Specified by:
getLayoutBaseUrl in interface org.apache.jetspeed.desktop.JetspeedDesktopContext

getLayoutBaseUrl

public String getLayoutBaseUrl(String relativePath)
Specified by:
getLayoutBaseUrl in interface org.apache.jetspeed.desktop.JetspeedDesktopContext

getLayoutResourceBundle

public ResourceBundle getLayoutResourceBundle(Locale locale)
Specified by:
getLayoutResourceBundle in interface org.apache.jetspeed.desktop.JetspeedDesktopContext

getHeaderResource

public org.apache.jetspeed.headerresource.HeaderResource getHeaderResource()
Specified by:
getHeaderResource in interface org.apache.jetspeed.desktop.JetspeedDesktopContext


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