com.atlassian.jira.pageobjects.pages.viewissue.link
Class IssueLinkSection

java.lang.Object
  extended by com.atlassian.jira.pageobjects.pages.viewissue.link.IssueLinkSection

public class IssueLinkSection
extends Object

Represents the issue links section.

Since:
v5.0

Nested Class Summary
static class IssueLinkSection.LinkSourceType
           
 
Constructor Summary
IssueLinkSection(String issueKey)
           
 
Method Summary
 DeleteLinkConfirmationDialog deleteLink(IssueLink issueLink)
           
 IssueLinkSection expandLinks()
           
 List<IssueLink> getLinks()
           
 List<IssueLink> getLinks(IssueLinkSection.LinkSourceType sourceType, String relationship)
          Returns the links for the source and relationship.
 List<IssueLink> getLinksForSource(IssueLinkSection.LinkSourceType source)
          Returns the links for the source.
 List<String> getRelationships()
          Returns the relationships.
 void initSection()
           
<T extends com.atlassian.pageobjects.Page>
T
loginAndApprove(String linkElementId, Class<T> nextPage)
          Click the "Login & Approve" link for a remote issue that requires an OAuth token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueLinkSection

public IssueLinkSection(String issueKey)
Method Detail

initSection

public void initSection()

getRelationships

public List<String> getRelationships()
Returns the relationships. E.g. "blocked by" or "relates to".

Returns:
list of relationships

getLinks

public List<IssueLink> getLinks()

getLinksForSource

public List<IssueLink> getLinksForSource(IssueLinkSection.LinkSourceType source)
Returns the links for the source. Returns empty list if the source could not be found.

Parameters:
source - source of the links
Returns:
links for the source

getLinks

public List<IssueLink> getLinks(IssueLinkSection.LinkSourceType sourceType,
                                String relationship)
Returns the links for the source and relationship. Returns empty list if the source or relationship could not be found.

Parameters:
sourceType - source type of the links
relationship - E.g. "blocked by"
Returns:
links for the source and relationship

deleteLink

public DeleteLinkConfirmationDialog deleteLink(IssueLink issueLink)

expandLinks

public IssueLinkSection expandLinks()

loginAndApprove

public <T extends com.atlassian.pageobjects.Page> T loginAndApprove(String linkElementId,
                                                                    Class<T> nextPage)
Click the "Login & Approve" link for a remote issue that requires an OAuth token.

Parameters:
linkElementId - the element id of the issue link
nextPage - the page that the login and approve link will take us to
Returns:
the nextPage that we have bound to


Copyright © 2002-2011 Atlassian. All Rights Reserved.