public interface JetspeedPowerTool
Modifier and Type | Field and Description |
---|---|
static String |
DECORATOR_TYPE |
static String |
FRAGMENT_ATTR |
static String |
FRAGMENT_PROCESSING_ERROR_PREFIX |
static String |
GENERIC_TEMPLATE_TYPE |
static String |
HIDDEN |
static String |
LAYOUT_ATTR |
static String |
LAYOUT_TEMPLATE_TYPE |
Modifier and Type | Method and Description |
---|---|
String |
decorateAndInclude(ContentFragment fragment)
Decorate and include fragment content.
|
String |
getAbsoluteUrl(String relativePath)
Return the absolute portal URL from a given relative url
|
String |
getBasePath()
Gets the Portal Base Path
|
List[] |
getColumns()
Deprecated.
|
List<String> |
getColumnSizes()
For tabular layouts, return the column sizes, usually as percentages but can be any table sizing such pixels
|
Object |
getComponent(String name)
Shortcut convenience method to lookup a Jetspeed service via
ComponentManagement.lookupComponent(Class) |
ContentFragment |
getCurrentFragment()
The Power Tool tracks which fragment is being rendered.
|
ContentFragment |
getCurrentLayout()
The Power Tool tracks which layout is being rendered.
|
TemplateDescriptor |
getDecoration(String path,
String templateType)
Retrieves a decorator using the Jetspeed template locator algorithm
|
List<DecoratorAction> |
getDecoratorActions()
Gets the list of decorator actions for a window.
|
String |
getElementHtmlString(HeadElement element)
Returns string representation of a head HTML DOM element
|
List<KeyValue<String,HeadElement>> |
getHeadElements()
Returns all the contributed head elements from the current fragment and its child fragments.
|
List<KeyValue<String,HeadElement>> |
getHeadElements(ContentFragment fragment)
Returns all the contributed head elements from the fragment and its child fragments.
|
boolean |
getLoggedOn()
Is the current request being made by a logged on user
|
javax.portlet.PortletMode |
getMappedPortletMode()
Gets the internal (portal) portlet mode for a current portlet window (fragment)
|
javax.portlet.WindowState |
getMappedWindowState()
Gets the internal (portal) window state for the current portlet window (fragment)
|
ContentPage |
getPage()
The Power Tool tracks which page is being rendered.
|
String |
getPageBasePath()
Returns the current Portal Page base path without possible encoded NavigationalState parameter.
|
List<DecoratorAction> |
getPageDecoratorActions()
Gets the list of decorator actions for a page.
|
PortalConfiguration |
getPortalConfiguration()
Helper to retrieve the
PortalConfiguration |
javax.portlet.PortletMode |
getPortletMode()
Gets the portlet mode for a current portlet window (fragment)
|
PortletWindow |
getPortletWindow(ContentFragment fragment)
Return the associated PortletWindow for a given fragment
|
Subject |
getSubject()
Returns the current secure subject for the current request thread
|
TemplateDescriptor |
getTemplate(String path,
String templateType)
Retrieves a template using the Jetspeed template locator algorithm
|
String |
getTitle()
Returns the appropriate for the title based on locale preferences
|
String |
getTitle(ContentFragment fragment)
Returns the appropriate for the title based on locale preferences
|
String |
getUserAttribute(String attributeName,
String defaultValue) |
Map<String,String> |
getUserAttributes() |
javax.portlet.WindowState |
getWindowState()
Gets the window state for the current portlet window (fragment)
|
String |
includeDecoration(String template,
String templateType)
Include a decorator into the rendering stream at the current position in layout
|
String |
includeTemplate(String template,
String templateType)
Include a template into the rendering stream at the current position in layout
|
boolean |
isAjaxCustomizationEnabled()
Determine if ajax customization is enabled
|
boolean |
isAutoRefreshEnabled()
Is AutoRefresh support for automatic portlet rendering enabled
|
boolean |
isDojoEnabled(List<KeyValue<String,HeadElement>> headElements)
Returns true if head element has dojo library inclusion.
|
boolean |
isHidden(ContentFragment fragment)
Checks the the visibilty of this fragment with respect to the current
RenderReqeust.
|
String |
renderPortletWindow(String windowId,
String portletId)
For given window and portlet ids, render a portlet window
|
void |
setCurrentFragment(ContentFragment fragment)
The Power Tool tracks which fragment is being rendered.
|
void |
setCurrentLayout()
The Power Tool tracks which layout is being rendered.
|
static final String GENERIC_TEMPLATE_TYPE
static final String FRAGMENT_PROCESSING_ERROR_PREFIX
static final String FRAGMENT_ATTR
static final String LAYOUT_ATTR
static final String HIDDEN
static final String LAYOUT_TEMPLATE_TYPE
static final String DECORATOR_TYPE
javax.portlet.WindowState getWindowState() throws Exception
Exception
javax.portlet.WindowState getMappedWindowState() throws Exception
Exception
javax.portlet.PortletMode getPortletMode() throws Exception
Exception
javax.portlet.PortletMode getMappedPortletMode() throws Exception
Exception
ContentFragment getCurrentFragment()
void setCurrentFragment(ContentFragment fragment)
fragment
- current fragment to rendervoid setCurrentLayout()
ContentFragment getCurrentLayout()
ContentPage getPage()
List[] getColumns()
ContentFragment
List<String> getColumnSizes()
PortletWindow getPortletWindow(ContentFragment fragment) throws Exception
fragment
- Fragment whose PortletWindow
we want to
retrieve.Exception
boolean isHidden(ContentFragment fragment)
fragment
- FragmentTemplateDescriptor getTemplate(String path, String templateType) throws TemplateLocatorException
path
- Expected to the template. This may actually be changed by the
TL service based the capability and localization information
provided by the client.templateType
- Type off template we are interested in.TemplateLocatorException
- if the path
does not exist.TemplateLocator
TemplateDescriptor getDecoration(String path, String templateType) throws TemplateLocatorException
path
- Expected to the template. This may actually be changed by the
TL service based the capability and localization information
provided by the client.templateType
- Type off template we are interested in.TemplateLocatorException
- if the path
does not exist.TemplateLocator
String includeTemplate(String template, String templateType) throws IOException
template
- name of template to includetemplateType
- the type either portlet or layoutIOException
String includeDecoration(String template, String templateType) throws IOException
template
- name of template to includetemplateType
- the type either portlet or layoutIOException
String decorateAndInclude(ContentFragment fragment) throws Exception
fragment
- Fragment to include and decorateException
List<DecoratorAction> getDecoratorActions()
DecoratorAction
available to the current window, filtered by
security access and current state.Exception
List<DecoratorAction> getPageDecoratorActions() throws Exception
Exception
String getTitle(ContentFragment fragment)
fragment
- String getTitle()
Object getComponent(String name)
ComponentManagement.lookupComponent(Class)
name
- the name of the component serviceString getAbsoluteUrl(String relativePath)
relativePath
- Subject getSubject()
Subject
boolean getLoggedOn()
String getBasePath()
org.apache.jetspeed.container.url.PortalURL#getBasePath()}
String getPageBasePath()
org.apache.jetspeed.container.url.PortalURL#getBasePath()}
String renderPortletWindow(String windowId, String portletId)
windowId
- portletId
- String getElementHtmlString(HeadElement element)
element
- List<KeyValue<String,HeadElement>> getHeadElements(ContentFragment fragment) throws Exception
fragment
- Exception
List<KeyValue<String,HeadElement>> getHeadElements() throws Exception
Exception
boolean isDojoEnabled(List<KeyValue<String,HeadElement>> headElements)
headElements
- boolean isAjaxCustomizationEnabled()
Map<String,String> getUserAttributes()
String getUserAttribute(String attributeName, String defaultValue)
PortalConfiguration getPortalConfiguration()
PortalConfiguration
boolean isAutoRefreshEnabled()
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.