com.atlassian.jira.plugin.webfragment.model
Class JiraWebLink

java.lang.Object
  extended by com.atlassian.jira.plugin.webfragment.model.JiraWebLink
All Implemented Interfaces:
SettableWebLink, com.atlassian.plugin.web.model.WebLink

public class JiraWebLink
extends Object
implements com.atlassian.plugin.web.model.WebLink, SettableWebLink

A jira specific wrapper for the DefaultWebLink


Constructor Summary
JiraWebLink(JiraAuthenticationContext authenticationContext)
           
JiraWebLink(com.atlassian.plugin.web.model.WebLink webLink, JiraAuthenticationContext authenticationContext)
           
 
Method Summary
 String getAccessKey(Map context)
           
 String getAccessKey(com.atlassian.crowd.embedded.api.User remoteUser, JiraHelper jiraHelper)
           
 com.atlassian.plugin.web.descriptors.WebFragmentModuleDescriptor getDescriptor()
           
 String getDisplayableUrl(javax.servlet.http.HttpServletRequest req, Map context)
           
 String getDisplayableUrl(com.atlassian.crowd.embedded.api.User remoteUser, JiraHelper jiraHelper)
           
 String getId()
           
 String getRenderedUrl(Map context)
           
 String getRenderedUrl(com.atlassian.crowd.embedded.api.User remoteUser, JiraHelper jiraHelper)
           
 boolean hasAccessKey()
           
protected  Map makeContext(com.atlassian.crowd.embedded.api.User remoteUser, JiraHelper jiraHelper)
           
 void setLink(com.atlassian.plugin.web.model.WebLink link)
          Provides access to the passed WebLink.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraWebLink

public JiraWebLink(JiraAuthenticationContext authenticationContext)

JiraWebLink

public JiraWebLink(com.atlassian.plugin.web.model.WebLink webLink,
                   JiraAuthenticationContext authenticationContext)
Method Detail

getRenderedUrl

public String getRenderedUrl(com.atlassian.crowd.embedded.api.User remoteUser,
                             JiraHelper jiraHelper)

getDisplayableUrl

public String getDisplayableUrl(com.atlassian.crowd.embedded.api.User remoteUser,
                                JiraHelper jiraHelper)

hasAccessKey

public boolean hasAccessKey()
Specified by:
hasAccessKey in interface com.atlassian.plugin.web.model.WebLink

getAccessKey

public String getAccessKey(com.atlassian.crowd.embedded.api.User remoteUser,
                           JiraHelper jiraHelper)

getId

public String getId()
Specified by:
getId in interface com.atlassian.plugin.web.model.WebLink

makeContext

protected Map makeContext(com.atlassian.crowd.embedded.api.User remoteUser,
                          JiraHelper jiraHelper)

getRenderedUrl

public String getRenderedUrl(Map context)
Specified by:
getRenderedUrl in interface com.atlassian.plugin.web.model.WebLink

getDisplayableUrl

public String getDisplayableUrl(javax.servlet.http.HttpServletRequest req,
                                Map context)
Specified by:
getDisplayableUrl in interface com.atlassian.plugin.web.model.WebLink

getAccessKey

public String getAccessKey(Map context)
Specified by:
getAccessKey in interface com.atlassian.plugin.web.model.WebLink

getDescriptor

public com.atlassian.plugin.web.descriptors.WebFragmentModuleDescriptor getDescriptor()
Specified by:
getDescriptor in interface com.atlassian.plugin.web.model.WebLink

setLink

public void setLink(com.atlassian.plugin.web.model.WebLink link)
Description copied from interface: SettableWebLink
Provides access to the passed WebLink.

Specified by:
setLink in interface SettableWebLink


Copyright © 2002-2013 Atlassian. All Rights Reserved.