|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.bc.issue.link.DefaultIssueLinkService
public class DefaultIssueLinkService
An implementation of Issue Linking Service
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.atlassian.jira.bc.issue.link.IssueLinkService |
|---|
IssueLinkService.AddIssueLinkValidationResult, IssueLinkService.DeleteIssueLinkValidationResult, IssueLinkService.IssueLinkResult, IssueLinkService.IssueLinkValidationResult, IssueLinkService.SingleIssueLinkResult |
| Constructor Summary | |
|---|---|
DefaultIssueLinkService(IssueLinkTypeManager issueLinkTypeManager,
IssueManager issueManager,
PermissionManager permissionManager,
I18nHelper.BeanFactory beanFactory,
IssueLinkManager issueLinkManager,
UserHistoryManager userHistoryManager)
|
|
| Method Summary | |
|---|---|
void |
addIssueLinks(com.atlassian.crowd.embedded.api.User user,
IssueLinkService.AddIssueLinkValidationResult result)
Adds the issue link to the issue specified by the validation result. |
void |
delete(IssueLinkService.DeleteIssueLinkValidationResult validationResult)
Deletes the issue link with the given id from the JIRA datastore, if the current user has permission to do so. |
IssueLink |
getIssueLink(Long sourceId,
Long destinationId,
Long issueLinkTypeId)
Returns the issue link or null if not found. |
IssueLinkService.SingleIssueLinkResult |
getIssueLink(Long issueLinkId,
com.atlassian.crowd.embedded.api.User user)
Returns the issue link for the given id. |
IssueLinkService.IssueLinkResult |
getIssueLinks(com.atlassian.crowd.embedded.api.User user,
Issue issue)
Returns the issue links that the specified user can see. |
IssueLinkService.IssueLinkResult |
getIssueLinks(com.atlassian.crowd.embedded.api.User user,
Issue issue,
boolean excludeSystemLinks)
|
Collection<IssueLinkType> |
getIssueLinkTypes()
|
IssueLinkService.AddIssueLinkValidationResult |
validateAddIssueLinks(com.atlassian.crowd.embedded.api.User user,
Issue issue,
Long issueLinkTypeId,
Direction direction,
Collection<String> linkKeys,
boolean excludeSystemLinks)
|
IssueLinkService.AddIssueLinkValidationResult |
validateAddIssueLinks(com.atlassian.crowd.embedded.api.User user,
Issue issue,
String linkName,
Collection<String> linkKeys)
Validates that the user provided can add the link provided for a particular issue. |
IssueLinkService.DeleteIssueLinkValidationResult |
validateDelete(com.atlassian.crowd.embedded.api.User user,
Issue issue,
IssueLink issueLink)
Validates parameters and checks permissions, and if all checks pass it will create a IssueLinkService.DeleteIssueLinkValidationResult that can be passed to the
IssueLinkService.delete(DeleteIssueLinkValidationResult) method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultIssueLinkService(IssueLinkTypeManager issueLinkTypeManager,
IssueManager issueManager,
PermissionManager permissionManager,
I18nHelper.BeanFactory beanFactory,
IssueLinkManager issueLinkManager,
UserHistoryManager userHistoryManager)
| Method Detail |
|---|
public Collection<IssueLinkType> getIssueLinkTypes()
getIssueLinkTypes in interface IssueLinkService
public IssueLink getIssueLink(Long sourceId,
Long destinationId,
Long issueLinkTypeId)
IssueLinkService
getIssueLink in interface IssueLinkServicesourceId - source issue id of the linkdestinationId - destination issue id of the linkissueLinkTypeId - link type id of the link
public IssueLinkService.SingleIssueLinkResult getIssueLink(Long issueLinkId,
com.atlassian.crowd.embedded.api.User user)
IssueLinkService
getIssueLink in interface IssueLinkServiceissueLinkId - issue link id.user - The user performing the operation
public IssueLinkService.IssueLinkResult getIssueLinks(com.atlassian.crowd.embedded.api.User user,
Issue issue)
IssueLinkService
getIssueLinks in interface IssueLinkServiceuser - The user performing the operationissue - The issue that links will retrieved on
public IssueLinkService.IssueLinkResult getIssueLinks(com.atlassian.crowd.embedded.api.User user,
Issue issue,
boolean excludeSystemLinks)
getIssueLinks in interface IssueLinkServiceuser - The user performing the operationissue - The issue that links will retrieved onexcludeSystemLinks - whether or not to exclude system links
IssueLinkService.getIssueLinks(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue)
public IssueLinkService.AddIssueLinkValidationResult validateAddIssueLinks(com.atlassian.crowd.embedded.api.User user,
Issue issue,
String linkName,
Collection<String> linkKeys)
IssueLinkService
validateAddIssueLinks in interface IssueLinkServiceuser - The user performing the operationissue - The issue that links will be set onlinkName - The actual link name as strings to set on the issuelinkKeys - The collection of issue keys to link against
public IssueLinkService.AddIssueLinkValidationResult validateAddIssueLinks(com.atlassian.crowd.embedded.api.User user,
Issue issue,
Long issueLinkTypeId,
Direction direction,
Collection<String> linkKeys,
boolean excludeSystemLinks)
validateAddIssueLinks in interface IssueLinkServiceuser - The user performing the operationissue - The issue that links will be set onissueLinkTypeId - The actual link id to set on the issuedirection - which direction we are linking inlinkKeys - The collection of issue keys to link againstexcludeSystemLinks - whether or not system links are okay
public void addIssueLinks(com.atlassian.crowd.embedded.api.User user,
IssueLinkService.AddIssueLinkValidationResult result)
IssueLinkService
addIssueLinks in interface IssueLinkServiceuser - The user performing the operationresult - The validation result obtained via IssueLinkService.validateAddIssueLinks(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue, String, java.util.Collection)
public IssueLinkService.DeleteIssueLinkValidationResult validateDelete(com.atlassian.crowd.embedded.api.User user,
Issue issue,
IssueLink issueLink)
IssueLinkServiceIssueLinkService.DeleteIssueLinkValidationResult that can be passed to the
IssueLinkService.delete(DeleteIssueLinkValidationResult) method.
validateDelete in interface IssueLinkServiceuser - who the permission checks will be run against (can be null, indicating an anonymous user)issue - issue the link is being deleted fromissueLink - issue link to be deleted
public void delete(IssueLinkService.DeleteIssueLinkValidationResult validationResult)
IssueLinkService
delete in interface IssueLinkServicevalidationResult - contains the remote issue link id to delete. This should have been created by the
IssueLinkService.validateDelete(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.issue.Issue, com.atlassian.jira.issue.link.IssueLink)
method. The result must have ServiceResult.isValid() return true. If false this
method will throw an IllegalStateException.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||