|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DecorationFactory
Factory class used for locating Decorations and Themes for Fragments and pages.
Decoration
,
PortletDecoration
,
LayoutDecoration
,
Theme
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_NESTED_LAYOUT_PORTLET_DECORATOR
Default nested layout portlet decorator |
Method Summary | |
---|---|
void |
clearCache(RequestContext requestContext)
Clears the lookup cache of all previous located pathes. |
Decoration |
getDecoration(ContentPage page,
ContentFragment fragment,
RequestContext requestContext)
Returns a Decoration for a specific Fragment contained
within the specified Page . |
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.lang.String |
getDefaultLayoutDecoration()
Get the default portlet layout decoration to be used when selected layout decoration does not support /portal. |
java.lang.String |
getDefaultPortletDecoration()
Get the default portal portlet decoration to be used when selected portlet decoration does not support /portal. |
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. |
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. |
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. |
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. |
Theme |
getTheme(ContentPage 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. |
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. |
Field Detail |
---|
static final java.lang.String DEFAULT_NESTED_LAYOUT_PORTLET_DECORATOR
Method Detail |
---|
Theme getTheme(ContentPage page, RequestContext requestContext)
page
- Page whose theme we are requestingrequestContext
- Current portal request.
Theme
,
RequestContext
PortletDecoration getPortletDecoration(java.lang.String name, RequestContext requestContext)
name
- Formal name of the decoration.requestContext
- Current portal request.
RequestContext
,
PortletDecoration
LayoutDecoration getLayoutDecoration(java.lang.String name, RequestContext requestContext)
name
- Formal name of the decoration.requestContext
- Current portal request.
LayoutDecoration
,
RequestContext
Decoration getDecoration(ContentPage page, ContentFragment fragment, RequestContext requestContext)
Fragment
contained
within the specified Page
.
page
- Current pagefragment
- Fragment whose decoration we require.requestContext
- Current portal request.
Page
,
Fragment
,
RequestContext
boolean isDesktopEnabled(RequestContext requestContext)
requestContext
- current portal request.
void clearCache(RequestContext requestContext)
RequestContext
's current user. This
will generally delegate the cache operation to the PathResolverCache
currently in use.
requestContext
- Current portal request.RequestContext
,
PathResolverCache
java.util.Set getPageDecorations(RequestContext request)
String
java.util.Set getPortletDecorations(RequestContext request)
String
java.util.List getLayouts(RequestContext request)
LayoutInfo
java.util.Set getDesktopPageDecorations(RequestContext request)
String
java.util.Set getDesktopPortletDecorations(RequestContext request)
String
java.lang.String getLayoutDecorationsBasePath()
java.lang.String getPortletDecorationsBasePath()
java.lang.String getDefaultDesktopLayoutDecoration()
void setDefaultDesktopLayoutDecoration(java.lang.String newOne)
java.lang.String getDefaultDesktopPortletDecoration()
void setDefaultDesktopPortletDecoration(java.lang.String newOne)
java.lang.String getDefaultPortletDecoration()
java.lang.String getDefaultLayoutDecoration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |