|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JetspeedPowerTool
Field Summary | |
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
|
Method Summary | |
String |
decorateAndInclude(org.apache.jetspeed.om.page.ContentFragment f)
Decorate and include fragment content. |
String |
getAbsoluteUrl(String relativePath)
|
String |
getBasePath()
|
List[] |
getColumns()
|
List |
getColumnSizes()
|
Object |
getComponent(String name)
|
org.apache.jetspeed.om.page.ContentFragment |
getCurrentFragment()
|
org.apache.jetspeed.om.page.ContentFragment |
getCurrentLayout()
|
org.apache.pluto.om.entity.PortletEntity |
getCurrentPortletEntity()
|
org.apache.jetspeed.locator.TemplateDescriptor |
getDecoration(String path,
String templateType)
|
List |
getDecoratorActions()
Gets the list of decorator actions for a window. |
boolean |
getLoggedOn()
|
org.apache.jetspeed.om.page.Page |
getPage()
|
String |
getPageBasePath()
|
List |
getPageDecoratorActions()
Gets the list of decorator actions for a page. |
org.apache.pluto.om.entity.PortletEntity |
getPortletEntity(org.apache.jetspeed.om.page.ContentFragment f)
|
javax.portlet.PortletMode |
getPortletMode()
Gets the portlet mode for a current portlet window (fragment) |
Subject |
getSubject()
|
org.apache.jetspeed.locator.TemplateDescriptor |
getTemplate(String path,
String templateType)
Retreives a template using Jetspeed's |
String |
getTitle(org.apache.pluto.om.entity.PortletEntity entity)
getTitle |
String |
getTitle(org.apache.pluto.om.entity.PortletEntity entity,
org.apache.jetspeed.om.page.ContentFragment f)
getTitle |
org.apache.commons.configuration.Configuration |
getTypeConfiguration(String type,
String name,
String location)
|
javax.portlet.WindowState |
getWindowState()
Gets the window state for the current portlet window (fragment) |
String |
includeDecoration(String template,
String templateType)
|
String |
includeTemplate(String template,
String templateType)
|
boolean |
isHidden(org.apache.jetspeed.om.page.ContentFragment f)
Checks the the visibilty of this fragment with respect to the current RenderReqeust. |
void |
setCurrentFragment(org.apache.jetspeed.om.page.ContentFragment f)
|
void |
setCurrentLayout()
|
void |
setVelocityContext(org.apache.velocity.context.Context velocityContext)
Sets the Velocity Context object for this powertool instance. |
Field Detail |
public static final String GENERIC_TEMPLATE_TYPE
public static final String FRAGMENT_PROCESSING_ERROR_PREFIX
public static final String FRAGMENT_ATTR
public static final String LAYOUT_ATTR
public static final String HIDDEN
public static final String LAYOUT_TEMPLATE_TYPE
public static final String DECORATOR_TYPE
Method Detail |
public javax.portlet.WindowState getWindowState() throws Exception
Exception
public javax.portlet.PortletMode getPortletMode() throws Exception
Exception
public org.apache.jetspeed.om.page.ContentFragment getCurrentFragment()
public void setCurrentFragment(org.apache.jetspeed.om.page.ContentFragment f)
f
- public void setCurrentLayout()
public org.apache.jetspeed.om.page.ContentFragment getCurrentLayout()
public org.apache.jetspeed.om.page.Page getPage()
public List[] getColumns()
public List getColumnSizes()
public org.apache.pluto.om.entity.PortletEntity getCurrentPortletEntity() throws Exception
Exception
public org.apache.pluto.om.entity.PortletEntity getPortletEntity(org.apache.jetspeed.om.page.ContentFragment f) throws Exception
f
- Fragment whose PortletEntity
we want to
retreive.
Exception
public boolean isHidden(org.apache.jetspeed.om.page.ContentFragment f)
f
- Fragment
public org.apache.jetspeed.locator.TemplateDescriptor getTemplate(String path, String templateType) throws org.apache.jetspeed.locator.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.
org.apache.jetspeed.locator.TemplateLocatorException
- if the path
does not exist.TemplateLocator
public org.apache.commons.configuration.Configuration getTypeConfiguration(String type, String name, String location) throws Exception
Exception
public org.apache.jetspeed.locator.TemplateDescriptor getDecoration(String path, String templateType) throws org.apache.jetspeed.locator.TemplateLocatorException
org.apache.jetspeed.locator.TemplateLocatorException
public String includeTemplate(String template, String templateType) throws IOException
IOException
public String includeDecoration(String template, String templateType) throws IOException
IOException
public String decorateAndInclude(org.apache.jetspeed.om.page.ContentFragment f) throws Exception
Decorate and include fragment content.
f
- Fragment to include and decorate
Exception
public List getDecoratorActions()
Exception
public List getPageDecoratorActions() throws Exception
Exception
public String getTitle(org.apache.pluto.om.entity.PortletEntity entity, org.apache.jetspeed.om.page.ContentFragment f)
getTitle
Returns the appropriate for the title based on locale prferences
entity
-
public String getTitle(org.apache.pluto.om.entity.PortletEntity entity)
getTitle
Returns the appropriate for the title based on locale prferences
entity
-
public Object getComponent(String name)
public String getAbsoluteUrl(String relativePath)
public Subject getSubject()
public boolean getLoggedOn()
public String getBasePath()
public String getPageBasePath()
public void setVelocityContext(org.apache.velocity.context.Context velocityContext)
velocityContext
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |