|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.plugin.descriptor.web.model.ConfluenceWebLink
public class ConfluenceWebLink
A confluence specific wrapper for the WebLink
| Constructor Summary | |
|---|---|
ConfluenceWebLink()
|
|
ConfluenceWebLink(com.atlassian.plugin.web.model.WebLink webLink)
|
|
| Method Summary | |
|---|---|
String |
getAccessKey(GlobalHelper helper)
|
String |
getAccessKey(Map params)
|
com.atlassian.plugin.web.descriptors.WebFragmentModuleDescriptor |
getDescriptor()
|
String |
getDisplayableUrl(javax.servlet.http.HttpServletRequest req,
Map params)
|
String |
getDisplayableUrl(javax.servlet.http.HttpServletRequest req,
WebInterfaceContext context)
Renders this web link in the given context. |
String |
getId()
|
String |
getRenderedUrl(Map params)
|
String |
getRenderedUrl(WebInterfaceContext context)
Renders this web link in the given context. |
boolean |
hasAccessKey()
|
void |
setLink(com.atlassian.plugin.web.model.WebLink webLink)
Provides a method to pass a WebLink. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfluenceWebLink()
public ConfluenceWebLink(com.atlassian.plugin.web.model.WebLink webLink)
| Method Detail |
|---|
public String getRenderedUrl(WebInterfaceContext context)
getDisplayableUrl(HttpServletRequest, WebInterfaceContext). You probably want to use that method instead.
The Velocity context is not exactly the same as in the method it replaced. For example, rather than using $helper.page in your
URL template, you should use just $page.
context - how the link is being rendered, includes relevant Confluence content and perhaps custom parameters
public String getRenderedUrl(Map params)
getRenderedUrl in interface com.atlassian.plugin.web.model.WebLink
public String getDisplayableUrl(javax.servlet.http.HttpServletRequest req,
WebInterfaceContext context)
WebFragmentHelper.renderVelocityFragment(String, Map)
with the URL of the web link and the result of WebInterfaceContext.toMap() on the provided context.
The HTTP request is used to prepend the context path.
The Velocity context is not exactly the same as the method it replaced. For example, rather than using $helper.page in your
URL template, you should use just $page.
req - the current request, used for HttpServletRequest.getContextPath()context - how the link is being rendered, includes relevant Confluence content and perhaps custom parameters
public String getDisplayableUrl(javax.servlet.http.HttpServletRequest req,
Map params)
getDisplayableUrl in interface com.atlassian.plugin.web.model.WebLinkpublic com.atlassian.plugin.web.descriptors.WebFragmentModuleDescriptor getDescriptor()
getDescriptor in interface com.atlassian.plugin.web.model.WebLinkpublic boolean hasAccessKey()
hasAccessKey in interface com.atlassian.plugin.web.model.WebLinkpublic String getAccessKey(GlobalHelper helper)
public String getAccessKey(Map params)
getAccessKey in interface com.atlassian.plugin.web.model.WebLinkpublic String getId()
getId in interface com.atlassian.plugin.web.model.WebLinkpublic void setLink(com.atlassian.plugin.web.model.WebLink webLink)
SettableWebLinkWebLink.
setLink in interface SettableWebLinkwebLink - the link for this WebLink
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||