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 java.lang.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
 java.lang.String getAccessKey(java.util.Map context)
           
 java.lang.String getAccessKey(com.opensymphony.user.User remoteUser, JiraHelper jiraHelper)
           
 com.atlassian.plugin.web.descriptors.WebFragmentModuleDescriptor getDescriptor()
           
 java.lang.String getDisplayableUrl(javax.servlet.http.HttpServletRequest req, java.util.Map context)
           
 java.lang.String getDisplayableUrl(com.opensymphony.user.User remoteUser, JiraHelper jiraHelper)
           
 java.lang.String getId()
           
 java.lang.String getRenderedUrl(java.util.Map context)
           
 java.lang.String getRenderedUrl(com.opensymphony.user.User remoteUser, JiraHelper jiraHelper)
           
 boolean hasAccessKey()
           
protected  java.util.Map makeContext(com.opensymphony.user.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 java.lang.String getRenderedUrl(com.opensymphony.user.User remoteUser,
                                       JiraHelper jiraHelper)

getDisplayableUrl

public java.lang.String getDisplayableUrl(com.opensymphony.user.User remoteUser,
                                          JiraHelper jiraHelper)

hasAccessKey

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

getAccessKey

public java.lang.String getAccessKey(com.opensymphony.user.User remoteUser,
                                     JiraHelper jiraHelper)

getId

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

makeContext

protected java.util.Map makeContext(com.opensymphony.user.User remoteUser,
                                    JiraHelper jiraHelper)

getRenderedUrl

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

getDisplayableUrl

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

getAccessKey

public java.lang.String getAccessKey(java.util.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-2010 Atlassian. All Rights Reserved.