|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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,
com.atlassian.event.api.EventPublisher eventPublisher)
|
|
| Method Summary | |
|---|---|
void |
changeIssueLinkType(IssueLink issueLink,
IssueLinkType swapLinkType,
com.atlassian.crowd.embedded.api.User remoteUser)
Changes the type of an issue link. |
void |
changeIssueLinkType(IssueLink issueLink,
IssueLinkType swapLinkType,
User remoteUser)
Changes the type of an issue link. |
void |
clearCache()
Clears the Issue Link cache used by the Issue Link Manager. |
void |
createIssueLink(Long sourceId,
Long destinationId,
Long issueLinkTypeId,
Long sequence,
com.atlassian.crowd.embedded.api.User remoteUser)
Constructs a new issuelink from the sourceIssueId to the destinationId and persists it. |
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<IssueLink> |
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<IssueLink> |
getIssueLinks(Long issueLinkTypeId)
Returns a collection of all IssueLinks for a particular issue link type |
LinkCollection |
getLinkCollection(org.ofbiz.core.entity.GenericValue issue,
User remoteUser)
Constructs a LinkCollection for a given issue. |
LinkCollection |
getLinkCollection(Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser)
Constructs a LinkCollection for a given issue. |
LinkCollection |
getLinkCollection(Issue issue,
User remoteUser)
Constructs a LinkCollection for a given issue. |
LinkCollection |
getLinkCollectionOverrideSecurity(Issue issue)
Constructs a LinkCollection for a given issue, ignoring security. |
List<IssueLink> |
getOutwardLinks(Long sourceId)
Get links from an issue. |
boolean |
isLinkingEnabled()
Returns whether Issue Linking is currently enabled in JIRA. |
void |
moveIssueLink(List<IssueLink> issueLinks,
Long currentSequence,
Long sequence)
Moves an issue link to a different position in the list of issuelink. |
void |
onClearCache(ClearCacheEvent event)
|
protected void |
reindexLinkedIssues(IssueLink issueLink)
|
void |
removeIssueLink(IssueLink issueLink,
com.atlassian.crowd.embedded.api.User remoteUser)
Removes a single issue link We do not check for permission here. |
void |
removeIssueLink(IssueLink issueLink,
User remoteUser)
Removes a single issue link We do not check for permission here. |
int |
removeIssueLinks(org.ofbiz.core.entity.GenericValue issue,
com.atlassian.crowd.embedded.api.User remoteUser)
Removes ALL incoming and outgoing issuelinks from the issue supplied. |
int |
removeIssueLinks(org.ofbiz.core.entity.GenericValue issue,
User remoteUser)
Removes ALL incoming and outgoing issuelinks from the issue supplied. |
void |
resetSequences(List<IssueLink> issueLinks)
Sets the sequence number for each issueLink in the List of issueLinks provided according to its position in the List. |
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
| 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,
com.atlassian.event.api.EventPublisher eventPublisher)
| Method Detail |
|---|
public void start()
throws Exception
Startable
start in interface StartableException - Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
public void createIssueLink(Long sourceId,
Long destinationId,
Long issueLinkTypeId,
Long sequence,
com.atlassian.crowd.embedded.api.User remoteUser)
throws CreateException
IssueLinkManager
createIssueLink in interface IssueLinkManagersourceId - 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 - If there is an error when creating the "Change Item" for this operation. Note that the Link itself has most likely been created.
public void createIssueLink(Long sourceIssueId,
Long destinationIssueId,
Long issueLinkTypeId,
Long sequence,
User remoteUser)
throws CreateException
IssueLinkManager
createIssueLink in interface IssueLinkManagersourceIssueId - 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 - If there is an error when creating the "Change Item" for this operation. Note that the Link itself has most likely been created.protected void reindexLinkedIssues(IssueLink issueLink)
public void removeIssueLink(IssueLink issueLink,
com.atlassian.crowd.embedded.api.User remoteUser)
throws RemoveException
IssueLinkManager
removeIssueLink in interface IssueLinkManagerissueLink - the issue link to removeremoteUser - needed for creation of change items
RemoveException - if error occurs during creation of change items
public void removeIssueLink(IssueLink issueLink,
User remoteUser)
throws RemoveException
IssueLinkManager
removeIssueLink in interface IssueLinkManagerissueLink - the issue link to removeremoteUser - needed for creation of change items
RemoveException - if error occurs during creation of change items
public int removeIssueLinks(org.ofbiz.core.entity.GenericValue issue,
com.atlassian.crowd.embedded.api.User remoteUser)
throws RemoveException
IssueLinkManager
removeIssueLinks in interface IssueLinkManagerRemoveException
public int removeIssueLinks(org.ofbiz.core.entity.GenericValue issue,
User remoteUser)
throws RemoveException
IssueLinkManager
removeIssueLinks in interface IssueLinkManagerRemoveException
public LinkCollection getLinkCollection(org.ofbiz.core.entity.GenericValue issue,
User remoteUser)
IssueLinkManagerLinkCollection for a given issue.
getLinkCollection in interface IssueLinkManagerLinkCollection with all the issues ingoing and outgoing issue links
public LinkCollection getLinkCollection(Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser)
IssueLinkManagerLinkCollection for a given issue.
getLinkCollection in interface IssueLinkManagerissue - the issueremoteUser - the user performing the search
LinkCollection with all the issues ingoing and outgoing issue links
public LinkCollection getLinkCollection(Issue issue,
User remoteUser)
IssueLinkManagerLinkCollection for a given issue.
getLinkCollection in interface IssueLinkManagerissue - the issueremoteUser - the user performing the search
LinkCollection with all the issues ingoing and outgoing issue linkspublic LinkCollection getLinkCollectionOverrideSecurity(Issue issue)
IssueLinkManagerLinkCollection for a given issue, ignoring security.
getLinkCollectionOverrideSecurity in interface IssueLinkManagerissue - the issue
LinkCollection with all the issues ingoing and outgoing issue linkspublic List<IssueLink> getOutwardLinks(Long sourceId)
IssueLinkManager
getOutwardLinks in interface IssueLinkManagersourceId - Eg. from Issue.getId()
IssueLinkspublic List<IssueLink> getInwardLinks(Long id)
IssueLinkManager
getInwardLinks in interface IssueLinkManagerid - Eg. from Issue.getId()
IssueLinks
public void moveIssueLink(List<IssueLink> issueLinks,
Long currentSequence,
Long sequence)
IssueLinkManager
moveIssueLink in interface IssueLinkManagerissueLinks - The list of issueLinkscurrentSequence - The postion of the issuelink about to be movedsequence - The target position of the issuelinkpublic void resetSequences(List<IssueLink> issueLinks)
IssueLinkManager
resetSequences in interface IssueLinkManagerissueLinks - A list of issue links to be recalculated
public IssueLink getIssueLink(Long sourceId,
Long destinationId,
Long issueLinkTypeId)
IssueLinkManager
getIssueLink in interface IssueLinkManagerIssueLinkpublic Collection<IssueLink> getIssueLinks(Long issueLinkTypeId)
IssueLinkManagerIssueLinks for a particular issue link type
getIssueLinks in interface IssueLinkManagerissueLinkTypeId - ID of the Issue Link Type
IssueLinks
public void changeIssueLinkType(IssueLink issueLink,
IssueLinkType swapLinkType,
com.atlassian.crowd.embedded.api.User remoteUser)
throws RemoveException
IssueLinkManager
changeIssueLinkType in interface IssueLinkManagerRemoveException
public void changeIssueLinkType(IssueLink issueLink,
IssueLinkType swapLinkType,
User remoteUser)
throws RemoveException
IssueLinkManager
changeIssueLinkType in interface IssueLinkManagerRemoveExceptionpublic boolean isLinkingEnabled()
IssueLinkManager
isLinkingEnabled in interface IssueLinkManagerpublic void clearCache()
IssueLinkManager
clearCache in interface IssueLinkManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||