|
||||||||||
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(WebLink webLink)
|
Method Summary | |
---|---|
String |
getAccessKey(GlobalHelper helper)
|
String |
getAccessKey(Map params)
|
WebFragmentModuleDescriptor |
getDescriptor()
|
String |
getDisplayableUrl(HttpServletRequest req,
GlobalHelper helper)
Deprecated. since 2.8 use getDisplayableUrl(HttpServletRequest, WebInterfaceContext) |
String |
getDisplayableUrl(HttpServletRequest req,
Map params)
|
String |
getDisplayableUrl(HttpServletRequest req,
WebInterfaceContext context)
Renders this web link in the given context. |
String |
getId()
|
String |
getRenderedUrl(Map params)
|
String |
getRenderedUrl(ThemeHelper helper)
Deprecated. since 2.8 use getRenderedUrl(WebInterfaceContext) |
String |
getRenderedUrl(WebInterfaceContext context)
Renders this web link in the given context. |
boolean |
hasAccessKey()
|
void |
setLink(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(WebLink webLink)
Method Detail |
---|
@Deprecated public String getRenderedUrl(ThemeHelper helper)
getRenderedUrl(WebInterfaceContext)
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 WebLink
public String getDisplayableUrl(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
@Deprecated public String getDisplayableUrl(HttpServletRequest req, GlobalHelper helper)
getDisplayableUrl(HttpServletRequest, WebInterfaceContext)
public String getDisplayableUrl(HttpServletRequest req, Map params)
getDisplayableUrl
in interface WebLink
public WebFragmentModuleDescriptor getDescriptor()
getDescriptor
in interface WebLink
public boolean hasAccessKey()
hasAccessKey
in interface WebLink
public String getAccessKey(GlobalHelper helper)
public String getAccessKey(Map params)
getAccessKey
in interface WebLink
public String getId()
getId
in interface WebLink
public void setLink(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 |