public interface DecorationFactory
Decoration
,
PortletDecoration
,
LayoutDecoration
,
Theme
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NESTED_LAYOUT_PORTLET_DECORATOR
Default nested layout portlet decorator
|
Modifier and Type | Method and Description |
---|---|
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 . |
String |
getDefaultDesktopLayoutDecoration()
Get the default desktop layout decoration to be used when
selected layout decoration does not support /desktop.
|
String |
getDefaultDesktopPortletDecoration()
Get the default desktop portlet decoration to be used when
selected portlet decoration does not support /desktop.
|
String |
getDefaultLayoutDecoration()
Get the default portlet layout decoration to be used when
selected layout decoration does not support /portal.
|
String |
getDefaultPortletDecoration()
Get the default portal portlet decoration to be used when
selected portlet decoration does not support /portal.
|
Set<String> |
getDesktopPageDecorations(RequestContext request)
Get the portal-wide list of available desktop page decorations.
|
Set<String> |
getDesktopPortletDecorations(RequestContext request)
Get the portal-wide list of desktop portlet decorations.
|
LayoutDecoration |
getLayoutDecoration(String name,
RequestContext requestContext)
Returns a named layout Decoration appropriate to the
current request conetext.
|
String |
getLayoutDecorationsBasePath()
Get the path to the layout decorations directory.
|
List<LayoutInfo> |
getLayouts(RequestContext request)
Get the portal-wide list of available layouts.
|
Set<String> |
getPageDecorations(RequestContext request)
Get the portal-wide list of page decorations.
|
PortletDecoration |
getPortletDecoration(String name,
RequestContext requestContext)
Returns a names portlet Decoration appropriate to the
current request conetext.
|
Set<String> |
getPortletDecorations(RequestContext request)
Get the portal-wide list of portlet decorations.
|
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(String newOne)
Set the default desktop layout decoration to be used when
selected layout decoration does not support /desktop.
|
void |
setDefaultDesktopPortletDecoration(String newOne)
Set the default desktop portlet decoration to be used when
selected portlet decoration does not support /desktop.
|
static final String DEFAULT_NESTED_LAYOUT_PORTLET_DECORATOR
Theme getTheme(ContentPage page, RequestContext requestContext)
page
- Page whose theme we are requestingrequestContext
- Current portal request.Theme
,
RequestContext
PortletDecoration getPortletDecoration(String name, RequestContext requestContext)
name
- Formal name of the decoration.requestContext
- Current portal request.RequestContext
,
PortletDecoration
LayoutDecoration getLayoutDecoration(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
Set<String> getPageDecorations(RequestContext request)
String
Set<String> getPortletDecorations(RequestContext request)
String
List<LayoutInfo> getLayouts(RequestContext request)
LayoutInfo
Set<String> getDesktopPageDecorations(RequestContext request)
String
Set<String> getDesktopPortletDecorations(RequestContext request)
String
String getLayoutDecorationsBasePath()
String getPortletDecorationsBasePath()
String getDefaultDesktopLayoutDecoration()
void setDefaultDesktopLayoutDecoration(String newOne)
String getDefaultDesktopPortletDecoration()
void setDefaultDesktopPortletDecoration(String newOne)
String getDefaultPortletDecoration()
String getDefaultLayoutDecoration()
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.