|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The implementations of this class are used to manage issue link types
and issue links
.
Method Summary | |
void |
changeIssueLinkType(IssueLink issueLink,
IssueLinkType swapLinkType,
User remoteUser)
Changes the type of an issue link. |
void |
createIssueLink(Long sourceIssueId,
Long destinationIssueId,
Long issueLinkTypeId,
Long sequence,
User remoteUser)
Constructs a new issuelink from the sourceIssueId to the destinationId and persists it. |
List |
getInwardLinks(Long destinationIssueId)
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 sourceIssueId)
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. |
void |
removeIssueLink(IssueLink issueLink,
User remoteUser)
Removes a single issue link |
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. |
Method Detail |
public void createIssueLink(Long sourceIssueId, Long destinationIssueId, Long issueLinkTypeId, Long sequence, User remoteUser) throws CreateException
sourceIssueId
- The source issue.destinationIssueId
- 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
public void removeIssueLink(IssueLink issueLink, User remoteUser) throws RemoveException
issueLink
- the issue link to removeremoteUser
- needed for creation of change items
RemoveException
- if error occurs during creation of change items
IllegalArgumentException
- if the supplied issueLink is null.public int removeIssueLinks(org.ofbiz.core.entity.GenericValue issue, User remoteUser) throws RemoveException
issue
- remoteUser
-
RemoveException
public LinkCollection getLinkCollection(org.ofbiz.core.entity.GenericValue issue, User remoteUser)
LinkCollection
for a given issue.
issue
- remoteUser
-
LinkCollection
with all the issues ingoing and outgoing issue linkspublic Collection getIssueLinks(Long issueLinkTypeId)
IssueLink
s for a particular issue link type
issueLinkTypeId
-
IssueLink
spublic List getOutwardLinks(Long sourceIssueId)
sourceIssueId
- Eg. from Issue.getId()
IssueLink
spublic List getInwardLinks(Long destinationIssueId)
destinationIssueId
- Eg. from Issue.getId()
IssueLink
spublic void moveIssueLink(List issueLinks, Long currentSequence, Long sequence)
issueLinks
- The list of issueLinkscurrentSequence
- The postion of the issuelink about to be movedsequence
- The target position of the issuelink
IllegalArgumentException
- If currentSequence or sequence are nullpublic void resetSequences(List issueLinks)
issueLinks
- A list of issue links to be recalculatedpublic IssueLink getIssueLink(Long sourceId, Long destinationId, Long issueLinkTypeId)
sourceId
- destinationId
- issueLinkTypeId
-
IssueLink
public void changeIssueLinkType(IssueLink issueLink, IssueLinkType swapLinkType, User remoteUser) throws RemoveException
issueLink
- swapLinkType
- remoteUser
-
RemoveException
public boolean isLinkingEnabled()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |