|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.link.DefaultIssueLinkManager
public class DefaultIssueLinkManager
Constructor Summary | |
---|---|
DefaultIssueLinkManager(OfBizDelegator genericDelegator,
IssueLinkCreator issueLinkCreator,
IssueLinkTypeManager issueLinkTypeManager,
CollectionReorderer collectionReorderer,
IssueUpdater issueUpdater,
IssueIndexManager issueIndexManager,
ApplicationProperties applicationProperties)
|
Method Summary | |
---|---|
void |
changeIssueLinkType(IssueLink issueLink,
IssueLinkType swapLinkType,
User remoteUser)
Changes the type of an issue link. |
void |
createIssueLink(Long sourceId,
Long destinationId,
Long issueLinkTypeId,
Long sequence,
User remoteUser)
Constructs a new issuelink from the sourceIssueId to the destinationId and persists it. |
List |
getInwardLinks(Long id)
Get links to an issue. |
IssueLink |
getIssueLink(Long sourceId,
Long destinationId,
Long issueLinkTypeId)
Retrieves an issue link given a source, destination and a link type. |
Collection |
getIssueLinks(Long issueLinkTypeId)
Returns a collection of all IssueLink s for a particular issue link type |
LinkCollection |
getLinkCollection(org.ofbiz.core.entity.GenericValue issue,
User remoteUser)
Constructs a LinkCollection for a given issue. |
List |
getOutwardLinks(Long sourceId)
Get links from an issue. |
boolean |
isLinkingEnabled()
Returns whether Issue Linking is currently enabled in JIRA. |
void |
moveIssueLink(List issueLinks,
Long currentSequence,
Long sequence)
Moves an issue link to a different position in the list of issuelink. |
protected void |
reindexLinkedIssues(IssueLink issueLink)
|
void |
removeIssueLink(IssueLink issueLink,
User remoteUser)
We do not check for permission here. |
int |
removeIssueLinks(org.ofbiz.core.entity.GenericValue issue,
User remoteUser)
Removes ALL incoming and outgoing issuelinks from the issue supplied. |
void |
resetSequences(List issueLinks)
Sets the sequence number for each issueLink in the List of issueLinks provided according to its position in the List. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultIssueLinkManager(OfBizDelegator genericDelegator, IssueLinkCreator issueLinkCreator, IssueLinkTypeManager issueLinkTypeManager, CollectionReorderer collectionReorderer, IssueUpdater issueUpdater, IssueIndexManager issueIndexManager, ApplicationProperties applicationProperties)
Method Detail |
---|
public void createIssueLink(Long sourceId, Long destinationId, Long issueLinkTypeId, Long sequence, User remoteUser) throws CreateException
IssueLinkManager
createIssueLink
in interface IssueLinkManager
sourceId
- The source issue.destinationId
- The destination issue.issueLinkTypeId
- The type of issuelinksequence
- In which order the link will appear in the UIremoteUser
- Needed for creation of change items.
CreateException
protected void reindexLinkedIssues(IssueLink issueLink)
public void removeIssueLink(IssueLink issueLink, User remoteUser) throws RemoveException
removeIssueLink
in interface IssueLinkManager
issueLink
- remoteUser
-
RemoveException
public int removeIssueLinks(org.ofbiz.core.entity.GenericValue issue, User remoteUser) throws RemoveException
IssueLinkManager
removeIssueLinks
in interface IssueLinkManager
RemoveException
public LinkCollection getLinkCollection(org.ofbiz.core.entity.GenericValue issue, User remoteUser)
IssueLinkManager
LinkCollection
for a given issue.
getLinkCollection
in interface IssueLinkManager
LinkCollection
with all the issues ingoing and outgoing issue linkspublic List getOutwardLinks(Long sourceId)
IssueLinkManager
getOutwardLinks
in interface IssueLinkManager
sourceId
- Eg. from Issue.getId()
IssueLink
spublic List getInwardLinks(Long id)
IssueLinkManager
getInwardLinks
in interface IssueLinkManager
id
- Eg. from Issue.getId()
IssueLink
spublic void moveIssueLink(List issueLinks, Long currentSequence, Long sequence)
IssueLinkManager
moveIssueLink
in interface IssueLinkManager
issueLinks
- The list of issueLinkscurrentSequence
- The postion of the issuelink about to be movedsequence
- The target position of the issuelinkpublic void resetSequences(List issueLinks)
IssueLinkManager
resetSequences
in interface IssueLinkManager
issueLinks
- A list of issue links to be recalculatedpublic IssueLink getIssueLink(Long sourceId, Long destinationId, Long issueLinkTypeId)
IssueLinkManager
getIssueLink
in interface IssueLinkManager
IssueLink
public Collection getIssueLinks(Long issueLinkTypeId)
IssueLinkManager
IssueLink
s for a particular issue link type
getIssueLinks
in interface IssueLinkManager
IssueLink
spublic void changeIssueLinkType(IssueLink issueLink, IssueLinkType swapLinkType, User remoteUser) throws RemoveException
IssueLinkManager
changeIssueLinkType
in interface IssueLinkManager
RemoveException
public boolean isLinkingEnabled()
IssueLinkManager
isLinkingEnabled
in interface IssueLinkManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |