com.atlassian.greenhopper.plugin.link
Class DefaultLinkContext

java.lang.Object
  extended by com.atlassian.greenhopper.plugin.link.DefaultLinkContext
All Implemented Interfaces:
LinkContext

public class DefaultLinkContext
extends java.lang.Object
implements LinkContext

Default implementation of a LinkContext

Author:
miruflin

Constructor Summary
DefaultLinkContext()
           
 
Method Summary
 java.lang.String getBoardId()
          Get the id of the board.
 java.lang.String getBoardType()
          Get the board type.
 java.lang.String getByAssignee()
          Assignee "filter" value.
 java.lang.String getByVersion()
          Version "filter" value.
 com.atlassian.jira.issue.Issue getIssue()
          Get the issue
 java.lang.Long getIssueId()
          Get the issue id.
 java.lang.String getIssueKey()
          Get the issue key.
 com.atlassian.jira.project.Project getProject()
          Get the project.
 com.atlassian.crowd.embedded.api.User getUser()
          Get the current user.
 void setBoardId(java.lang.String boardId)
           
 void setBoardType(java.lang.String boardType)
           
 void setByAssignee(java.lang.String byAssignee)
           
 void setByVersion(java.lang.String byVersion)
           
 void setIssue(com.atlassian.jira.issue.Issue issue)
           
 void setProject(com.atlassian.jira.project.Project project)
           
 void setUser(com.atlassian.crowd.embedded.api.User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLinkContext

public DefaultLinkContext()
Method Detail

getProject

public com.atlassian.jira.project.Project getProject()
Description copied from interface: LinkContext
Get the project.

Specified by:
getProject in interface LinkContext
Returns:
the project object

setProject

public void setProject(com.atlassian.jira.project.Project project)

getUser

public com.atlassian.crowd.embedded.api.User getUser()
Description copied from interface: LinkContext
Get the current user.

Specified by:
getUser in interface LinkContext
Returns:
the user, might be null

setUser

public void setUser(com.atlassian.crowd.embedded.api.User user)

getBoardId

public java.lang.String getBoardId()
Description copied from interface: LinkContext
Get the id of the board.

Specified by:
getBoardId in interface LinkContext
Returns:
the id, and commonly -1 for none

setBoardId

public void setBoardId(java.lang.String boardId)

getBoardType

public java.lang.String getBoardType()
Description copied from interface: LinkContext
Get the board type.

Specified by:
getBoardType in interface LinkContext
Returns:
the name of the board, e.g. versionBoard.

setBoardType

public void setBoardType(java.lang.String boardType)

getIssueId

public java.lang.Long getIssueId()
Description copied from interface: LinkContext
Get the issue id.

Specified by:
getIssueId in interface LinkContext
Returns:
the issue id or null if not applicable

getIssueKey

public java.lang.String getIssueKey()
Description copied from interface: LinkContext
Get the issue key.

Specified by:
getIssueKey in interface LinkContext
Returns:
the issue key or null if not applicable

getByAssignee

public java.lang.String getByAssignee()
Description copied from interface: LinkContext
Assignee "filter" value. Note that this does not apply to the assignee board, in which case the board id is the selected assignee.

Specified by:
getByAssignee in interface LinkContext
Returns:
the assignee drop down value

setByAssignee

public void setByAssignee(java.lang.String byAssignee)

getByVersion

public java.lang.String getByVersion()
Description copied from interface: LinkContext
Version "filter" value. Note that this does not apply to the version board, in which case the board id is the selected version.

Specified by:
getByVersion in interface LinkContext
Returns:
the version drop down value

setByVersion

public void setByVersion(java.lang.String byVersion)

getIssue

public com.atlassian.jira.issue.Issue getIssue()
Description copied from interface: LinkContext
Get the issue

Specified by:
getIssue in interface LinkContext
Returns:
the issue or null if not applicable

setIssue

public void setIssue(com.atlassian.jira.issue.Issue issue)


Copyright © 2007-2012 Atlassian. All Rights Reserved.