|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.decoration.DecorationFactoryImpl
public class DecorationFactoryImpl
DecorationFactory| Field Summary |
|---|
| Fields inherited from interface org.apache.jetspeed.decoration.DecorationFactory |
|---|
DEFAULT_NESTED_LAYOUT_PORTLET_DECORATOR |
| Constructor Summary | |
|---|---|
DecorationFactoryImpl(PortletRegistry registry,
java.lang.String decorationsPath,
ResourceValidator validator,
JetspeedCache decorationConfigurationCache)
|
|
DecorationFactoryImpl(java.lang.String decorationsPath,
ResourceValidator validator)
|
|
DecorationFactoryImpl(java.lang.String decorationsPath,
ResourceValidator validator,
JetspeedCache decorationConfigurationCache)
|
|
| Method Summary | |
|---|---|
void |
clearCache(RequestContext requestContext)
Clears the lookup cache of all previous located pathes. |
protected Path |
createClientPath(java.lang.String name,
RequestContext requestContext,
java.lang.String decorationType)
Creates a org.apache.jetspeed.util.Path object based
off of the user's client browser and locale. |
protected Path |
getBasePath(java.lang.String decorationType)
|
protected Path |
getBasePath(java.lang.String name,
java.lang.String decorationType)
|
protected java.util.Properties |
getCachedConfiguration(java.lang.String name,
java.lang.String type)
|
protected java.lang.String |
getCachedConfigurationKey(java.lang.String type,
java.lang.String name)
|
java.util.Properties |
getConfiguration(java.lang.String name,
java.lang.String type)
Gets the configuration (decorator.properties) object for the decoration. |
Decoration |
getDecoration(Page page,
Fragment fragment,
RequestContext requestContext)
Returns a Decoration for a specific Fragment contained
within the specified Page. |
protected JetspeedCache |
getDecorationConfigurationCache()
|
protected java.lang.String |
getDefaultDecorationName(Fragment fragment,
Page page)
Returns a the default decoration name for the specific Fragment type. |
java.lang.String |
getDefaultDesktopLayoutDecoration()
Get the default desktop layout decoration to be used when selected layout decoration does not support /desktop. |
java.lang.String |
getDefaultDesktopPortletDecoration()
Get the default desktop portlet decoration to be used when selected portlet decoration does not support /desktop. |
java.util.Set |
getDesktopPageDecorations(RequestContext request)
Get the portal-wide list of available desktop page decorations. |
java.util.Set |
getDesktopPortletDecorations(RequestContext request)
Get the portal-wide list of desktop portlet decorations. |
LayoutDecoration |
getLayoutDecoration(java.lang.String name,
RequestContext requestContext)
Returns a named layout Decoration appropriate to the current request conetext. |
protected Path |
getLayoutDecorationBasePath(java.lang.String name)
|
java.lang.String |
getLayoutDecorationsBasePath()
Get the path to the layout decorations directory. |
java.util.List |
getLayouts(RequestContext request)
Get the portal-wide list of available layouts. |
protected java.util.Set |
getListing(java.util.Set rawList,
java.lang.String propsFile)
|
java.util.Set |
getPageDecorations(RequestContext request)
Get the portal-wide list of page decorations. |
PortletDecoration |
getPortletDecoration(java.lang.String name,
RequestContext requestContext)
Returns a names portlet Decoration appropriate to the current request conetext. |
protected Path |
getPortletDecorationBasePath(java.lang.String name)
|
java.util.Set |
getPortletDecorations(RequestContext request)
Get the portal-wide list of portlet decorations. |
java.lang.String |
getPortletDecorationsBasePath()
Get the path to the portlet decorations directory. |
ResourceValidator |
getResourceValidator()
|
Theme |
getTheme(Page page,
RequestContext requestContext)
Returns a theme containing all of the Decorations for all of the layouts on the current page. |
boolean |
isDesktopEnabled(RequestContext requestContext)
Indicates whether /desktop is enabled for the current portal request. |
protected void |
setCachedConfiguration(java.lang.String name,
java.lang.String type,
java.util.Properties props)
|
void |
setDefaultDesktopLayoutDecoration(java.lang.String newOne)
Set the default desktop layout decoration to be used when selected layout decoration does not support /desktop. |
void |
setDefaultDesktopPortletDecoration(java.lang.String newOne)
Set the default desktop portlet decoration to be used when selected portlet decoration does not support /desktop. |
void |
setServletContext(javax.servlet.ServletContext servletContext)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DecorationFactoryImpl(java.lang.String decorationsPath,
ResourceValidator validator)
public DecorationFactoryImpl(java.lang.String decorationsPath,
ResourceValidator validator,
JetspeedCache decorationConfigurationCache)
public DecorationFactoryImpl(PortletRegistry registry,
java.lang.String decorationsPath,
ResourceValidator validator,
JetspeedCache decorationConfigurationCache)
| Method Detail |
|---|
public ResourceValidator getResourceValidator()
protected JetspeedCache getDecorationConfigurationCache()
public Theme getTheme(Page page,
RequestContext requestContext)
DecorationFactory
getTheme in interface DecorationFactorypage - Page whose theme we are requestingrequestContext - Current portal request.
Theme,
RequestContext
public Decoration getDecoration(Page page,
Fragment fragment,
RequestContext requestContext)
DecorationFactoryFragment contained
within the specified Page.
getDecoration in interface DecorationFactorypage - Current pagefragment - Fragment whose decoration we require.requestContext - Current portal request.
Page,
Fragment,
RequestContext
public PortletDecoration getPortletDecoration(java.lang.String name,
RequestContext requestContext)
DecorationFactory
getPortletDecoration in interface DecorationFactoryname - Formal name of the decoration.requestContext - Current portal request.
RequestContext,
PortletDecoration
public LayoutDecoration getLayoutDecoration(java.lang.String name,
RequestContext requestContext)
DecorationFactory
getLayoutDecoration in interface DecorationFactoryname - Formal name of the decoration.requestContext - Current portal request.
LayoutDecoration,
RequestContextpublic boolean isDesktopEnabled(RequestContext requestContext)
DecorationFactory
isDesktopEnabled in interface DecorationFactoryrequestContext - current portal request.
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAware
protected java.util.Properties getCachedConfiguration(java.lang.String name,
java.lang.String type)
protected void setCachedConfiguration(java.lang.String name,
java.lang.String type,
java.util.Properties props)
protected java.lang.String getCachedConfigurationKey(java.lang.String type,
java.lang.String name)
public java.util.Properties getConfiguration(java.lang.String name,
java.lang.String type)
name - Name of the Decoration.
java.util.Properties representing the configuration
object.
protected Path createClientPath(java.lang.String name,
RequestContext requestContext,
java.lang.String decorationType)
org.apache.jetspeed.util.Path object based
off of the user's client browser and locale.
name - Decroator's namerequestContext - Current portal request.decorationType - Type of decoration, either layout
or portlet
Path,
RequestContext
protected java.lang.String getDefaultDecorationName(Fragment fragment,
Page page)
fragment - Fragment whose default decroation has been requestedpage - Page this fragment belongs to.
Page,
Fragmentpublic void clearCache(RequestContext requestContext)
DecorationFactoryRequestContext's current user. This
will generally delegate the cache operation to the PathResolverCache
currently in use.
clearCache in interface DecorationFactoryrequestContext - Current portal request.RequestContext,
PathResolverCacheprotected Path getBasePath(java.lang.String decorationType)
protected Path getBasePath(java.lang.String name,
java.lang.String decorationType)
protected Path getLayoutDecorationBasePath(java.lang.String name)
protected Path getPortletDecorationBasePath(java.lang.String name)
public java.lang.String getLayoutDecorationsBasePath()
DecorationFactory
getLayoutDecorationsBasePath in interface DecorationFactorypublic java.lang.String getPortletDecorationsBasePath()
DecorationFactory
getPortletDecorationsBasePath in interface DecorationFactorypublic java.util.Set getPageDecorations(RequestContext request)
getPageDecorations in interface DecorationFactoryDecorationpublic java.util.Set getDesktopPageDecorations(RequestContext request)
getDesktopPageDecorations in interface DecorationFactoryStringpublic java.util.Set getPortletDecorations(RequestContext request)
getPortletDecorations in interface DecorationFactoryStringpublic java.util.Set getDesktopPortletDecorations(RequestContext request)
getDesktopPortletDecorations in interface DecorationFactoryStringpublic java.util.List getLayouts(RequestContext request)
getLayouts in interface DecorationFactoryPortletDefinitionComposite
protected java.util.Set getListing(java.util.Set rawList,
java.lang.String propsFile)
public java.lang.String getDefaultDesktopLayoutDecoration()
DecorationFactory
getDefaultDesktopLayoutDecoration in interface DecorationFactorypublic void setDefaultDesktopLayoutDecoration(java.lang.String newOne)
DecorationFactory
setDefaultDesktopLayoutDecoration in interface DecorationFactorypublic java.lang.String getDefaultDesktopPortletDecoration()
DecorationFactory
getDefaultDesktopPortletDecoration in interface DecorationFactorypublic void setDefaultDesktopPortletDecoration(java.lang.String newOne)
DecorationFactory
setDefaultDesktopPortletDecoration in interface DecorationFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||