com.atlassian.jira.issue.link
Class DefaultIssueLinkManager

java.lang.Object
  extended bycom.atlassian.jira.issue.link.DefaultIssueLinkManager
All Implemented Interfaces:
IssueLinkManager

public class DefaultIssueLinkManager
extends java.lang.Object
implements IssueLinkManager


Constructor Summary
DefaultIssueLinkManager(OfBizDelegator genericDelegator, IssueLinkCreator issueLinkCreator, IssueLinkTypeManager issueLinkTypeManager, CollectionReorderer collectionReorderer, IssueUpdater issueUpdater)
           
 
Method Summary
 void changeIssueLinkType(IssueLink issueLink, IssueLinkType swapLinkType, com.opensymphony.user.User remoteUser)
           
 void createIssueLink(java.lang.Long sourceId, java.lang.Long destinationId, java.lang.Long issueLinkTypeId, java.lang.Long sequence, com.opensymphony.user.User remoteUser)
           
 java.util.List getInwardLinks(java.lang.Long id)
           
 IssueLink getIssueLink(java.lang.Long sourceId, java.lang.Long destinationId, java.lang.Long issueLinkTypeId)
           
 java.util.Collection getIssueLinks(java.lang.Long issueLinkTypeId)
           
 LinkCollection getLinkCollection(org.ofbiz.core.entity.GenericValue issue, com.opensymphony.user.User remoteUser)
           
 java.util.List getOutwardLinks(java.lang.Long sourceId)
           
 void moveIssueLink(java.util.List issueLinks, java.lang.Long currentSequence, java.lang.Long sequence)
           
 void removeIssueLink(IssueLink issueLink, com.opensymphony.user.User remoteUser)
          We do not check for permission here.
 int removeIssueLinks(org.ofbiz.core.entity.GenericValue issue, com.opensymphony.user.User remoteUser)
           
 void resetSequences(java.util.List issueLinks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIssueLinkManager

public DefaultIssueLinkManager(OfBizDelegator genericDelegator,
                               IssueLinkCreator issueLinkCreator,
                               IssueLinkTypeManager issueLinkTypeManager,
                               CollectionReorderer collectionReorderer,
                               IssueUpdater issueUpdater)
Method Detail

createIssueLink

public void createIssueLink(java.lang.Long sourceId,
                            java.lang.Long destinationId,
                            java.lang.Long issueLinkTypeId,
                            java.lang.Long sequence,
                            com.opensymphony.user.User remoteUser)
                     throws CreateException
Specified by:
createIssueLink in interface IssueLinkManager
Throws:
CreateException

removeIssueLink

public void removeIssueLink(IssueLink issueLink,
                            com.opensymphony.user.User remoteUser)
                     throws RemoveException
We do not check for permission here. It should be done before this method is called. For example, in the action.

Specified by:
removeIssueLink in interface IssueLinkManager
Parameters:
issueLink -
remoteUser -
Throws:
RemoveException

removeIssueLinks

public int removeIssueLinks(org.ofbiz.core.entity.GenericValue issue,
                            com.opensymphony.user.User remoteUser)
                     throws RemoveException
Specified by:
removeIssueLinks in interface IssueLinkManager
Throws:
RemoveException

getLinkCollection

public LinkCollection getLinkCollection(org.ofbiz.core.entity.GenericValue issue,
                                        com.opensymphony.user.User remoteUser)
Specified by:
getLinkCollection in interface IssueLinkManager

getOutwardLinks

public java.util.List getOutwardLinks(java.lang.Long sourceId)
Specified by:
getOutwardLinks in interface IssueLinkManager

getInwardLinks

public java.util.List getInwardLinks(java.lang.Long id)
Specified by:
getInwardLinks in interface IssueLinkManager

moveIssueLink

public void moveIssueLink(java.util.List issueLinks,
                          java.lang.Long currentSequence,
                          java.lang.Long sequence)
Specified by:
moveIssueLink in interface IssueLinkManager

resetSequences

public void resetSequences(java.util.List issueLinks)
Specified by:
resetSequences in interface IssueLinkManager

getIssueLink

public IssueLink getIssueLink(java.lang.Long sourceId,
                              java.lang.Long destinationId,
                              java.lang.Long issueLinkTypeId)
Specified by:
getIssueLink in interface IssueLinkManager

getIssueLinks

public java.util.Collection getIssueLinks(java.lang.Long issueLinkTypeId)
Specified by:
getIssueLinks in interface IssueLinkManager

changeIssueLinkType

public void changeIssueLinkType(IssueLink issueLink,
                                IssueLinkType swapLinkType,
                                com.opensymphony.user.User remoteUser)
                         throws RemoveException
Specified by:
changeIssueLinkType in interface IssueLinkManager
Throws:
RemoveException


Copyright © 2002-2005 Atlassian. All Rights Reserved.