|
||||||||||
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 | |
---|---|
private org.apache.jetspeed.cache.JetspeedCache |
decorationConfigurationCache
cache to hold decoration Properties objects |
private org.apache.jetspeed.util.Path |
decorationsPath
|
private String |
defaultDesktopLayoutDecoration
|
private String |
defaultDesktopPortletDecoration
|
private Set |
desktopLayoutDecorationsDir
|
private Set |
desktopLayoutDecorationsList
|
private Set |
desktopPortletDecorationsDir
|
private Set |
desktopPortletDecorationsList
|
private Set |
layoutDecorationsDir
|
private Set |
layoutDecorationsList
|
private org.apache.jetspeed.util.Path |
layoutDecorationsPath
|
private String |
layoutDecorationsPathStr
|
private Map |
layoutDecoratorProperties
|
private static org.apache.commons.logging.Log |
log
|
private Set |
portletDecorationsDir
|
private Set |
portletDecorationsList
|
private org.apache.jetspeed.util.Path |
portletDecorationsPath
|
private String |
portletDecorationsPathStr
|
private Map |
portletDecoratorProperties
|
private org.apache.jetspeed.components.portletregistry.PortletRegistry |
registry
|
private javax.servlet.ServletContext |
servletContext
|
private org.apache.jetspeed.decoration.ResourceValidator |
validator
|
Fields inherited from interface org.apache.jetspeed.decoration.DecorationFactory |
---|
DEFAULT_NESTED_LAYOUT_PORTLET_DECORATOR |
Constructor Summary | |
---|---|
DecorationFactoryImpl(org.apache.jetspeed.components.portletregistry.PortletRegistry registry,
String decorationsPath,
org.apache.jetspeed.decoration.ResourceValidator validator,
org.apache.jetspeed.cache.JetspeedCache decorationConfigurationCache)
|
|
DecorationFactoryImpl(String decorationsPath,
org.apache.jetspeed.decoration.ResourceValidator validator)
|
|
DecorationFactoryImpl(String decorationsPath,
org.apache.jetspeed.decoration.ResourceValidator validator,
org.apache.jetspeed.cache.JetspeedCache decorationConfigurationCache)
|
Method Summary | |
---|---|
void |
clearCache(org.apache.jetspeed.request.RequestContext requestContext)
|
private org.apache.jetspeed.util.Path |
createClientPath(String name,
org.apache.jetspeed.util.Path basePath,
org.apache.jetspeed.request.RequestContext requestContext,
String decorationType)
|
protected org.apache.jetspeed.util.Path |
createClientPath(String name,
org.apache.jetspeed.request.RequestContext requestContext,
String decorationType)
Creates a org.apache.jetspeed.util.Path object based
off of the user's client browser and locale. |
protected org.apache.jetspeed.util.Path |
getBasePath(String decorationType)
|
protected org.apache.jetspeed.util.Path |
getBasePath(String name,
String decorationType)
|
protected Properties |
getCachedConfiguration(String name,
String type)
|
protected String |
getCachedConfigurationKey(String type,
String name)
|
Properties |
getConfiguration(String name,
String type)
Gets the configuration (decorator.properties) object for the decoration. |
org.apache.jetspeed.decoration.Decoration |
getDecoration(org.apache.jetspeed.om.page.Page page,
org.apache.jetspeed.om.page.Fragment fragment,
org.apache.jetspeed.request.RequestContext requestContext)
|
protected org.apache.jetspeed.cache.JetspeedCache |
getDecorationConfigurationCache()
|
protected String |
getDefaultDecorationName(org.apache.jetspeed.om.page.Fragment fragment,
org.apache.jetspeed.om.page.Page page)
Returns a the default decoration name for the specific Fragment type. |
String |
getDefaultDesktopLayoutDecoration()
|
String |
getDefaultDesktopPortletDecoration()
|
Set |
getDesktopPageDecorations(org.apache.jetspeed.request.RequestContext request)
Get the portal-wide list of available desktop page decorations. |
Set |
getDesktopPortletDecorations(org.apache.jetspeed.request.RequestContext request)
Get the portal-wide list of desktop portlet decorations. |
org.apache.jetspeed.decoration.LayoutDecoration |
getLayoutDecoration(String name,
org.apache.jetspeed.request.RequestContext requestContext)
|
protected org.apache.jetspeed.util.Path |
getLayoutDecorationBasePath(String name)
|
String |
getLayoutDecorationsBasePath()
|
List |
getLayouts(org.apache.jetspeed.request.RequestContext request)
Get the portal-wide list of available layouts. |
protected Set |
getListing(Set rawList,
String propsFile)
|
Set |
getPageDecorations(org.apache.jetspeed.request.RequestContext request)
Get the portal-wide list of page decorations. |
org.apache.jetspeed.decoration.PortletDecoration |
getPortletDecoration(String name,
org.apache.jetspeed.request.RequestContext requestContext)
|
protected org.apache.jetspeed.util.Path |
getPortletDecorationBasePath(String name)
|
Set |
getPortletDecorations(org.apache.jetspeed.request.RequestContext request)
Get the portal-wide list of portlet decorations. |
String |
getPortletDecorationsBasePath()
|
org.apache.jetspeed.decoration.ResourceValidator |
getResourceValidator()
|
org.apache.jetspeed.decoration.Theme |
getTheme(org.apache.jetspeed.om.page.Page page,
org.apache.jetspeed.request.RequestContext requestContext)
|
boolean |
isDesktopEnabled(org.apache.jetspeed.request.RequestContext requestContext)
|
protected void |
setCachedConfiguration(String name,
String type,
Properties props)
|
void |
setDefaultDesktopLayoutDecoration(String newOne)
|
void |
setDefaultDesktopPortletDecoration(String newOne)
|
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 |
---|
private static final org.apache.commons.logging.Log log
private final org.apache.jetspeed.util.Path decorationsPath
private final org.apache.jetspeed.util.Path portletDecorationsPath
private final org.apache.jetspeed.util.Path layoutDecorationsPath
private final String portletDecorationsPathStr
private final String layoutDecorationsPathStr
private final org.apache.jetspeed.decoration.ResourceValidator validator
private final org.apache.jetspeed.components.portletregistry.PortletRegistry registry
private org.apache.jetspeed.cache.JetspeedCache decorationConfigurationCache
private javax.servlet.ServletContext servletContext
private String defaultDesktopLayoutDecoration
private String defaultDesktopPortletDecoration
private Set layoutDecorationsDir
private Set portletDecorationsDir
private Set desktopLayoutDecorationsDir
private Set desktopPortletDecorationsDir
private Set layoutDecorationsList
private Set portletDecorationsList
private Set desktopLayoutDecorationsList
private Set desktopPortletDecorationsList
private Map portletDecoratorProperties
private Map layoutDecoratorProperties
Constructor Detail |
---|
public DecorationFactoryImpl(String decorationsPath, org.apache.jetspeed.decoration.ResourceValidator validator)
public DecorationFactoryImpl(String decorationsPath, org.apache.jetspeed.decoration.ResourceValidator validator, org.apache.jetspeed.cache.JetspeedCache decorationConfigurationCache)
public DecorationFactoryImpl(org.apache.jetspeed.components.portletregistry.PortletRegistry registry, String decorationsPath, org.apache.jetspeed.decoration.ResourceValidator validator, org.apache.jetspeed.cache.JetspeedCache decorationConfigurationCache)
Method Detail |
---|
public org.apache.jetspeed.decoration.ResourceValidator getResourceValidator()
protected org.apache.jetspeed.cache.JetspeedCache getDecorationConfigurationCache()
public org.apache.jetspeed.decoration.Theme getTheme(org.apache.jetspeed.om.page.Page page, org.apache.jetspeed.request.RequestContext requestContext)
getTheme
in interface org.apache.jetspeed.decoration.DecorationFactory
public org.apache.jetspeed.decoration.Decoration getDecoration(org.apache.jetspeed.om.page.Page page, org.apache.jetspeed.om.page.Fragment fragment, org.apache.jetspeed.request.RequestContext requestContext)
getDecoration
in interface org.apache.jetspeed.decoration.DecorationFactory
public org.apache.jetspeed.decoration.PortletDecoration getPortletDecoration(String name, org.apache.jetspeed.request.RequestContext requestContext)
getPortletDecoration
in interface org.apache.jetspeed.decoration.DecorationFactory
public org.apache.jetspeed.decoration.LayoutDecoration getLayoutDecoration(String name, org.apache.jetspeed.request.RequestContext requestContext)
getLayoutDecoration
in interface org.apache.jetspeed.decoration.DecorationFactory
public boolean isDesktopEnabled(org.apache.jetspeed.request.RequestContext requestContext)
isDesktopEnabled
in interface org.apache.jetspeed.decoration.DecorationFactory
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext
in interface org.springframework.web.context.ServletContextAware
protected Properties getCachedConfiguration(String name, String type)
protected void setCachedConfiguration(String name, String type, Properties props)
protected String getCachedConfigurationKey(String type, String name)
public Properties getConfiguration(String name, String type)
name
- Name of the Decoration.
java.util.Properties
representing the configuration
object.protected org.apache.jetspeed.util.Path createClientPath(String name, org.apache.jetspeed.request.RequestContext requestContext, 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
private org.apache.jetspeed.util.Path createClientPath(String name, org.apache.jetspeed.util.Path basePath, org.apache.jetspeed.request.RequestContext requestContext, String decorationType)
protected String getDefaultDecorationName(org.apache.jetspeed.om.page.Fragment fragment, org.apache.jetspeed.om.page.Page page)
fragment
- Fragment whose default decroation has been requestedpage
- Page this fragment belongs to.
Page
,
Fragment
public void clearCache(org.apache.jetspeed.request.RequestContext requestContext)
clearCache
in interface org.apache.jetspeed.decoration.DecorationFactory
protected org.apache.jetspeed.util.Path getBasePath(String decorationType)
protected org.apache.jetspeed.util.Path getBasePath(String name, String decorationType)
protected org.apache.jetspeed.util.Path getLayoutDecorationBasePath(String name)
protected org.apache.jetspeed.util.Path getPortletDecorationBasePath(String name)
public String getLayoutDecorationsBasePath()
getLayoutDecorationsBasePath
in interface org.apache.jetspeed.decoration.DecorationFactory
public String getPortletDecorationsBasePath()
getPortletDecorationsBasePath
in interface org.apache.jetspeed.decoration.DecorationFactory
public Set getPageDecorations(org.apache.jetspeed.request.RequestContext request)
getPageDecorations
in interface org.apache.jetspeed.decoration.DecorationFactory
Decoration
public Set getDesktopPageDecorations(org.apache.jetspeed.request.RequestContext request)
getDesktopPageDecorations
in interface org.apache.jetspeed.decoration.DecorationFactory
String
public Set getPortletDecorations(org.apache.jetspeed.request.RequestContext request)
getPortletDecorations
in interface org.apache.jetspeed.decoration.DecorationFactory
String
public Set getDesktopPortletDecorations(org.apache.jetspeed.request.RequestContext request)
getDesktopPortletDecorations
in interface org.apache.jetspeed.decoration.DecorationFactory
String
public List getLayouts(org.apache.jetspeed.request.RequestContext request)
getLayouts
in interface org.apache.jetspeed.decoration.DecorationFactory
PortletDefinitionComposite
protected Set getListing(Set rawList, String propsFile)
public String getDefaultDesktopLayoutDecoration()
getDefaultDesktopLayoutDecoration
in interface org.apache.jetspeed.decoration.DecorationFactory
public void setDefaultDesktopLayoutDecoration(String newOne)
setDefaultDesktopLayoutDecoration
in interface org.apache.jetspeed.decoration.DecorationFactory
public String getDefaultDesktopPortletDecoration()
getDefaultDesktopPortletDecoration
in interface org.apache.jetspeed.decoration.DecorationFactory
public void setDefaultDesktopPortletDecoration(String newOne)
setDefaultDesktopPortletDecoration
in interface org.apache.jetspeed.decoration.DecorationFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |