|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.turbine.util.DynamicURI org.apache.turbine.util.template.TemplateLink org.apache.jetspeed.util.template.JetspeedTemplateLink
A customized version of the TemplateLink which can handle portlet references.
It is inserted into the template context by Turbine, via request tools.
Each portlet must call setPortlet(this) on it before entering the template rendering code. This is done currently in VelocityPortlet.
Field Summary | |
static java.lang.String |
ACTION_KEY
Deprecated. |
protected Portlet |
activePortlet
Deprecated. The portlet that will be used to build the reference. |
static java.lang.String |
PANEL_KEY
Deprecated. |
static java.lang.String |
PORTLET_KEY
Deprecated. |
static java.lang.String |
SCREEN_KEY
Deprecated. |
static java.lang.String |
TEMPLATE_KEY
Deprecated. |
Fields inherited from class org.apache.turbine.util.DynamicURI |
hasPathInfo, hasQueryData, HTTP, HTTPS, PATH_INFO, pathInfo, QUERY_DATA, queryData, redirect, reference, res, scriptName, sd, serverName, serverPort, serverScheme |
Constructor Summary | |
JetspeedTemplateLink()
Deprecated. Empty constructor.for introspection |
|
JetspeedTemplateLink(org.apache.turbine.util.RunData data)
Deprecated. Constructor. |
Method Summary | |
void |
clear()
Deprecated. |
org.apache.turbine.util.DynamicURI |
forPortlet(java.lang.String portlet)
Deprecated. Return a URI that refers to the named portlet. |
java.lang.String |
getActionKey()
Deprecated. |
java.lang.String |
getPageKey()
Deprecated. |
java.lang.String |
getPanelKey()
Deprecated. Use the activePortlet to get the current Panel name (key). |
java.lang.String |
getPortlet()
Deprecated. |
org.apache.turbine.util.DynamicURI |
getPortletByName(java.lang.String portletName)
Deprecated. |
java.lang.String |
getPortletKey()
Deprecated. |
java.lang.String |
getScreenKey()
Deprecated. |
void |
init(java.lang.Object data)
Deprecated. This will initialise a JetspeedTool object that was constructed with the default constructor (ApplicationTool method). |
void |
refresh()
Deprecated. Refresh method - does nothing |
org.apache.turbine.util.DynamicURI |
setPanel(java.lang.String panel)
Deprecated. Add a select-panel reference in the link |
void |
setPortlet(Portlet portlet)
Deprecated. Set the portlet giving context to this Link object. |
org.apache.turbine.util.DynamicURI |
setPortlet(java.lang.String portlet)
Deprecated. the name is confusing. Use @see(#forPortlet()) instead. |
java.lang.String |
toString()
Deprecated. |
Methods inherited from class org.apache.turbine.util.template.TemplateLink |
getPage, getURI, setEncodeURLOff, setPage |
Methods inherited from class org.apache.turbine.util.DynamicURI |
add, add, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addQueryData, addQueryData, addQueryData, addQueryData, addQueryData, addQueryData, getA, getReference, getScriptName, getServerData, getServerName, getServerPort, getServerScheme, init, init, init, remove, removePathInfo, removePathInfo, removeQueryData, removeQueryData, renderPathInfo, renderQueryString, setAction, setReference, setScreen, setScriptName, setSecure, setSecure, setServerData, setServerName, setServerPort, setServerScheme, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String PORTLET_KEY
public static final java.lang.String ACTION_KEY
public static final java.lang.String SCREEN_KEY
public static final java.lang.String TEMPLATE_KEY
public static final java.lang.String PANEL_KEY
protected Portlet activePortlet
The portlet that will be used to build the reference.
Constructor Detail |
public JetspeedTemplateLink()
public JetspeedTemplateLink(org.apache.turbine.util.RunData data)
data
- A Jetspeed RunData object.Method Detail |
public void init(java.lang.Object data)
init
in interface org.apache.turbine.services.pull.ApplicationTool
data
- assumed to be a RunData objectpublic void setPortlet(Portlet portlet)
Set the portlet giving context to this Link object.
public void refresh()
refresh
in interface org.apache.turbine.services.pull.ApplicationTool
public org.apache.turbine.util.DynamicURI forPortlet(java.lang.String portlet)
portlet
- the name of the portlet to link to
public org.apache.turbine.util.DynamicURI setPortlet(java.lang.String portlet)
portlet
- the name of the portlet to link to
public java.lang.String getPortlet()
public java.lang.String getPortletKey()
public java.lang.String getActionKey()
public java.lang.String getScreenKey()
public java.lang.String getPageKey()
public org.apache.turbine.util.DynamicURI setPanel(java.lang.String panel)
public java.lang.String getPanelKey()
Use the activePortlet to get the current Panel name (key).
public java.lang.String toString()
public org.apache.turbine.util.DynamicURI getPortletByName(java.lang.String portletName)
public void clear()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |