|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 int |
CURRENT
|
static int |
DEFAULT
|
static int |
GROUP
|
static int |
PANE_ID
|
static int |
PANE_NAME
|
static int |
PORTLET_ID
|
static int |
PORTLET_ID_QUERY
|
static int |
PORTLET_NAME
|
static int |
ROLE
|
static int |
USER
|
Method Summary | |
org.apache.turbine.util.DynamicURI |
addPathInfo(java.lang.String name,
java.lang.Object value)
Adds a name=value pair to the path_info string. |
org.apache.turbine.util.DynamicURI |
addQueryData(java.lang.String name,
java.lang.Object value)
Adds a name=value pair to the query string. |
org.apache.turbine.util.DynamicURI |
getAction(java.lang.String action)
Return a link that includes an action |
org.apache.turbine.util.DynamicURI |
getAction(java.lang.String action,
Entry entry)
Return a link that includes an action to a specific portlet, as defined by an entry |
org.apache.turbine.util.DynamicURI |
getAction(java.lang.String action,
Portlet portlet)
Return a link that includes an action to a specific portlet, as defined by a portlet |
org.apache.turbine.util.DynamicURI |
getAction(java.lang.String action,
Portlets portlet)
Return a link that includes an action to a specific portlet, as defined by a portlets |
org.apache.turbine.util.DynamicURI |
getAction(java.lang.String action,
java.lang.String peid)
Return a link that includes an action to a specific portlet, as defined by a PEID |
java.lang.String |
getActionKey()
Return the action key. |
boolean |
getAnonymous()
Is the PSML for the anonymous user? |
java.lang.String |
getCountry()
Return country of the PSML file |
org.apache.turbine.util.DynamicURI |
getGroup(java.lang.String group)
Return a link to a default page for the group |
org.apache.turbine.util.DynamicURI |
getGroup(java.lang.String group,
java.lang.String page)
Return a link to a desired page for the group |
java.lang.String |
getGroupName()
Return Group name of the PSML file |
org.apache.turbine.util.DynamicURI |
getHomePage()
Return link to the home page without user, page, group, role, template, action, media type, language, or country in link. |
java.lang.String |
getLanguage()
Return Language of the PSML file |
org.apache.turbine.util.DynamicURI |
getLink(int rootType,
java.lang.String rootValue,
java.lang.String pageName,
int elementType,
java.lang.String elementValue)
|
org.apache.turbine.util.DynamicURI |
getLink(int rootType,
java.lang.String rootValue,
java.lang.String pageName,
int elementType,
java.lang.String elementValue,
java.lang.String actionName)
|
org.apache.turbine.util.DynamicURI |
getLink(int rootType,
java.lang.String rootValue,
java.lang.String pageName,
int elementType,
java.lang.String elementValue,
java.lang.String actionName,
java.lang.String templateName)
|
org.apache.turbine.util.DynamicURI |
getLink(int rootType,
java.lang.String rootValue,
java.lang.String pageName,
int elementType,
java.lang.String elementValue,
java.lang.String actionName,
java.lang.String templateName,
java.lang.String mediaType)
|
org.apache.turbine.util.DynamicURI |
getLink(int rootType,
java.lang.String rootValue,
java.lang.String pageName,
int elementType,
java.lang.String elementValue,
java.lang.String actionName,
java.lang.String templateName,
java.lang.String mediaType,
java.lang.String language)
|
org.apache.turbine.util.DynamicURI |
getLink(int rootType,
java.lang.String rootValue,
java.lang.String pageName,
int elementType,
java.lang.String elementValue,
java.lang.String actionName,
java.lang.String templateName,
java.lang.String mediaType,
java.lang.String language,
java.lang.String country)
Return a link to a desired page. |
java.lang.String |
getMediaType()
Return Media Type of the PSML file |
org.apache.turbine.util.DynamicURI |
getPage()
Return a link to a default page for the current user, group, or role. |
org.apache.turbine.util.DynamicURI |
getPage(java.lang.String page)
Return a link to a desired page for the current user, group, or role. |
org.apache.turbine.util.DynamicURI |
getPage(java.lang.String page,
java.lang.String paneName)
Return a link to a desired page and pane for the current user, group, or role. |
java.lang.String |
getPageName()
Return Page name of the PSML file |
org.apache.turbine.util.DynamicURI |
getPaneById(java.lang.String paneId)
Return a link to a specific pane using the pane's id |
org.apache.turbine.util.DynamicURI |
getPaneByName(java.lang.String paneName)
Return a link to a specific pane using the pane's id |
org.apache.turbine.util.DynamicURI |
getPortletById(java.lang.String peid)
Return an link to a specific portlet using the portet's id |
org.apache.turbine.util.DynamicURI |
getPortletByName(java.lang.String portletName)
Deprecated. Use getPortletById() |
org.apache.turbine.util.DynamicURI |
getRole(java.lang.String role)
Return a link to a default page for the role |
org.apache.turbine.util.DynamicURI |
getRole(java.lang.String role,
java.lang.String page)
Return a link to a desired page for the role |
java.lang.String |
getRoleName()
Return Role name of the PSML file |
org.apache.turbine.util.DynamicURI |
getTemplate()
Return a link that includes the template from rundata |
org.apache.turbine.util.DynamicURI |
getTemplate(java.lang.String template)
Return a link to the template. |
org.apache.turbine.util.DynamicURI |
getUser(java.lang.String user)
Return a link to a default page for the user |
org.apache.turbine.util.DynamicURI |
getUser(java.lang.String user,
java.lang.String page)
Return a link to a desired page for the user |
java.lang.String |
getUserName()
Return User name of the PSML file |
void |
init(org.apache.turbine.util.RunData rundata)
This will initialise a JetspeedLink object that was constructed with the default constructor |
org.apache.turbine.util.DynamicURI |
setAction(java.lang.String action)
Deprecated. Use getAction() |
org.apache.turbine.util.DynamicURI |
setAction(java.lang.String action,
Entry entry)
Deprecated. use getAction() |
org.apache.turbine.util.DynamicURI |
setAction(java.lang.String action,
Portlet portlet)
Deprecated. use getAction() |
org.apache.turbine.util.DynamicURI |
setAction(java.lang.String action,
Portlets portlet)
Deprecated. use getAction() |
org.apache.turbine.util.DynamicURI |
setGroup(java.lang.String group)
Deprecated. use getGroup() |
org.apache.turbine.util.DynamicURI |
setGroup(java.lang.String group,
java.lang.String page)
Deprecated. use getGroup() |
org.apache.turbine.util.DynamicURI |
setMediaType(java.lang.String mediaType)
|
org.apache.turbine.util.DynamicURI |
setPage()
Deprecated. use getPage() |
org.apache.turbine.util.DynamicURI |
setPage(java.lang.String page)
Deprecated. use getPage() |
org.apache.turbine.util.DynamicURI |
setPage(java.lang.String page,
java.lang.String paneName)
Deprecated. use getPage() |
org.apache.turbine.util.DynamicURI |
setPaneById(java.lang.String paneId)
Deprecated. Use getPaneById() |
org.apache.turbine.util.DynamicURI |
setPortalElement(java.lang.String peid)
Deprecated. use getPortletById or getPaneById() |
void |
setPortlet(Portlet portlet)
Deprecated. Use getLink() or getAction() or getPortletById() or getPortletByName(). |
org.apache.turbine.util.DynamicURI |
setPortletById(java.lang.String peid)
Deprecated. use getPortletById() |
org.apache.turbine.util.DynamicURI |
setPortletByName(java.lang.String portletName)
Deprecated. use getPortletByName() |
org.apache.turbine.util.DynamicURI |
setRole(java.lang.String role)
Deprecated. use getRole() |
org.apache.turbine.util.DynamicURI |
setRole(java.lang.String role,
java.lang.String page)
Deprecated. use getRole() |
org.apache.turbine.util.DynamicURI |
setTemplate(java.lang.String template)
Deprecated. use getTemplate() |
org.apache.turbine.util.DynamicURI |
setUser(java.lang.String user)
Deprecated. use getUser() |
org.apache.turbine.util.DynamicURI |
setUser(java.lang.String user,
java.lang.String page)
Deprecated. use getUser() |
java.lang.String |
toString()
Return a URL, as a string, the the root page or pane. |
Field Detail |
public static final int CURRENT
public static final int DEFAULT
public static final int GROUP
public static final int ROLE
public static final int USER
public static final int PANE_ID
public static final int PANE_NAME
public static final int PORTLET_ID
public static final int PORTLET_NAME
public static final int PORTLET_ID_QUERY
Method Detail |
public org.apache.turbine.util.DynamicURI addPathInfo(java.lang.String name, java.lang.Object value)
name
- A String with the name to add.value
- An Object with the value to add.
public org.apache.turbine.util.DynamicURI addQueryData(java.lang.String name, java.lang.Object value)
name
- A String with the name to add.value
- An Object with the value to add.
public java.lang.String getActionKey()
public org.apache.turbine.util.DynamicURI getHomePage()
public void init(org.apache.turbine.util.RunData rundata)
rundata
- to be a RunData objectpublic org.apache.turbine.util.DynamicURI getTemplate()
public boolean getAnonymous()
public java.lang.String getCountry()
public java.lang.String getGroupName()
public java.lang.String getLanguage()
public java.lang.String getMediaType()
public java.lang.String getPageName()
public java.lang.String getRoleName()
public java.lang.String getUserName()
public org.apache.turbine.util.DynamicURI getAction(java.lang.String action)
action
- action
public org.apache.turbine.util.DynamicURI getAction(java.lang.String action, Entry entry)
action
- Desired actionentry
- to receive the action
public org.apache.turbine.util.DynamicURI getAction(java.lang.String action, Portlet portlet)
action
- Desired actionportlet
- to receive the action
public org.apache.turbine.util.DynamicURI getAction(java.lang.String action, Portlets portlet)
action
- Desired actionportlet
- to receive the action
public org.apache.turbine.util.DynamicURI getAction(java.lang.String action, java.lang.String peid)
action
- Desired actionpeid
- Id of portlet to receive the action
public org.apache.turbine.util.DynamicURI getGroup(java.lang.String group)
group
- Desired group
public org.apache.turbine.util.DynamicURI getGroup(java.lang.String group, java.lang.String page)
page
- Desired pagegroup
- Desired group
public org.apache.turbine.util.DynamicURI getPage()
public org.apache.turbine.util.DynamicURI getPage(java.lang.String page)
page
- Desired page
public org.apache.turbine.util.DynamicURI getPage(java.lang.String page, java.lang.String paneName)
page
- Desired pagepaneName
- Name of desired pane
public org.apache.turbine.util.DynamicURI getPortletById(java.lang.String peid)
peid
- of the portlet
public org.apache.turbine.util.DynamicURI getPortletByName(java.lang.String portletName)
portletName
- the name of the portlet to link to
public org.apache.turbine.util.DynamicURI getRole(java.lang.String role)
role
- Desired role
public org.apache.turbine.util.DynamicURI getRole(java.lang.String role, java.lang.String page)
role
- Desired rolepage
- Desired page
public org.apache.turbine.util.DynamicURI getTemplate(java.lang.String template)
template
- to add to link
public org.apache.turbine.util.DynamicURI getUser(java.lang.String user)
user
- Desired user
public org.apache.turbine.util.DynamicURI getUser(java.lang.String user, java.lang.String page)
page
- Desired pageuser
- Desired user
public org.apache.turbine.util.DynamicURI setAction(java.lang.String action)
action
- action
public org.apache.turbine.util.DynamicURI setAction(java.lang.String action, Entry entry)
action
- Desired actionentry
- to receive the action
public org.apache.turbine.util.DynamicURI setAction(java.lang.String action, Portlet portlet)
action
- Desired actionportlet
- to receive the action
public org.apache.turbine.util.DynamicURI setAction(java.lang.String action, Portlets portlet)
action
- Desired actionportlet
- to receive the action
public org.apache.turbine.util.DynamicURI setGroup(java.lang.String group)
group
- Desired group
public org.apache.turbine.util.DynamicURI setGroup(java.lang.String group, java.lang.String page)
page
- Desired pagegroup
- Desired group
public org.apache.turbine.util.DynamicURI setPage()
public org.apache.turbine.util.DynamicURI setPage(java.lang.String page)
page
- Desired page
public org.apache.turbine.util.DynamicURI setPage(java.lang.String page, java.lang.String paneName)
page
- Desired pagepaneName
- Name of desired pane
public org.apache.turbine.util.DynamicURI setMediaType(java.lang.String mediaType)
public org.apache.turbine.util.DynamicURI setPortletById(java.lang.String peid)
peid
- of the portlet
public org.apache.turbine.util.DynamicURI setPortalElement(java.lang.String peid)
peid
- of the portal element
public org.apache.turbine.util.DynamicURI setPortletByName(java.lang.String portletName)
portletName
- the name of the portlet to link to
public org.apache.turbine.util.DynamicURI setRole(java.lang.String role)
role
- Desired role
public org.apache.turbine.util.DynamicURI setRole(java.lang.String role, java.lang.String page)
role
- Desired rolepage
- Desired page
public org.apache.turbine.util.DynamicURI setTemplate(java.lang.String template)
template
- to add to link
public org.apache.turbine.util.DynamicURI setUser(java.lang.String user)
user
- Desired user
public org.apache.turbine.util.DynamicURI setUser(java.lang.String user, java.lang.String page)
page
- Desired pageuser
- Desired user
public java.lang.String toString()
public org.apache.turbine.util.DynamicURI setPaneById(java.lang.String paneId)
paneId
- of the Pane
public org.apache.turbine.util.DynamicURI getPaneById(java.lang.String paneId)
paneId
- of the Pane
public org.apache.turbine.util.DynamicURI getPaneByName(java.lang.String paneName)
paneName
- Name of the Pane
public void setPortlet(Portlet portlet)
Set the portlet giving context to this Link object.
This method is from JetspeedTemplateLink and is only here for backward compatibility. This it should not be used for any new development. Also any problems with this method will not be fixed
portlet
- the name of the active portletpublic org.apache.turbine.util.DynamicURI getLink(int rootType, java.lang.String rootValue, java.lang.String pageName, int elementType, java.lang.String elementValue, java.lang.String actionName, java.lang.String templateName, java.lang.String mediaType, java.lang.String language, java.lang.String country)
rootType
- Type of root PSML docuument. The should be one of the following:
rootValue
- See description of rootTypepageName
- Name of page. null = default pageelementType
- elementValue
- See description of elementTypeactionName
- Name of action. If no action is desired use JetspeedLink.NO_ACTION.templateName
- Name of template. If no template is desired use JetspeedLink.NO_TEMPLATE.mediaType
- Desired media type. null = default media typelanguage
- Desired language. null = default languagecountry
- Desired country. null = default language
public org.apache.turbine.util.DynamicURI getLink(int rootType, java.lang.String rootValue, java.lang.String pageName, int elementType, java.lang.String elementValue, java.lang.String actionName, java.lang.String templateName, java.lang.String mediaType, java.lang.String language)
org.apache.jetspeed.util.template.JetspeedLink.getLink( int, String, String, int, String, String, String, String, String, String
public org.apache.turbine.util.DynamicURI getLink(int rootType, java.lang.String rootValue, java.lang.String pageName, int elementType, java.lang.String elementValue, java.lang.String actionName, java.lang.String templateName, java.lang.String mediaType)
public org.apache.turbine.util.DynamicURI getLink(int rootType, java.lang.String rootValue, java.lang.String pageName, int elementType, java.lang.String elementValue, java.lang.String actionName, java.lang.String templateName)
public org.apache.turbine.util.DynamicURI getLink(int rootType, java.lang.String rootValue, java.lang.String pageName, int elementType, java.lang.String elementValue, java.lang.String actionName)
public org.apache.turbine.util.DynamicURI getLink(int rootType, java.lang.String rootValue, java.lang.String pageName, int elementType, java.lang.String elementValue)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |