|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 | |
---|---|
java.lang.String |
getAccessKey(GlobalHelper helper)
|
java.lang.String |
getAccessKey(java.util.Map params)
|
com.atlassian.plugin.web.descriptors.WebFragmentModuleDescriptor |
getDescriptor()
|
java.lang.String |
getDisplayableUrl(javax.servlet.http.HttpServletRequest req,
java.util.Map params)
|
java.lang.String |
getDisplayableUrl(javax.servlet.http.HttpServletRequest req,
WebInterfaceContext context)
Renders this web link in the given context. |
java.lang.String |
getId()
|
java.lang.String |
getRenderedUrl(java.util.Map params)
|
java.lang.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 java.lang.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 java.lang.String getRenderedUrl(java.util.Map params)
getRenderedUrl
in interface com.atlassian.plugin.web.model.WebLink
public java.lang.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 java.lang.String getDisplayableUrl(javax.servlet.http.HttpServletRequest req, java.util.Map params)
getDisplayableUrl
in interface com.atlassian.plugin.web.model.WebLink
public com.atlassian.plugin.web.descriptors.WebFragmentModuleDescriptor getDescriptor()
getDescriptor
in interface com.atlassian.plugin.web.model.WebLink
public boolean hasAccessKey()
hasAccessKey
in interface com.atlassian.plugin.web.model.WebLink
public java.lang.String getAccessKey(GlobalHelper helper)
public java.lang.String getAccessKey(java.util.Map params)
getAccessKey
in interface com.atlassian.plugin.web.model.WebLink
public java.lang.String getId()
getId
in interface com.atlassian.plugin.web.model.WebLink
public void setLink(com.atlassian.plugin.web.model.WebLink webLink)
SettableWebLink
WebLink
.
setLink
in interface SettableWebLink
webLink
- the link for this WebLink
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |