public class

DefaultIssueLinkTypeService

extends Object
implements IssueLinkTypeService
java.lang.Object
   ↳ com.atlassian.jira.bc.issue.link.DefaultIssueLinkTypeService

Summary

Public Constructors
DefaultIssueLinkTypeService(PermissionManager permissionManager, IssueLinkTypeManager issueLinkTypeManager, IssueLinkTypeDestroyer issueLinkTypeDestroyer, I18nHelper.BeanFactory i18nFactory, ApplicationProperties applicationProperties)
Public Methods
ServiceOutcome<IssueLinkType> createIssueLinkType(ApplicationUser user, String name, String outward, String inward)
Create a new issue link type.
ServiceOutcome<IssueLinkType> deleteIssueLinkType(ApplicationUser user, IssueLinkType linkType)
Delete a given IssueLinkType, checking for permissions.
ServiceOutcome<Collection<IssueLinkType>> getIssueLinkTypes(ApplicationUser user)
Get a list of all issue link types in the system.
ServiceOutcome<IssueLinkType> updateIssueLinkType(ApplicationUser user, IssueLinkType linkType, String name, String outward, String inward)
Update an existing issue link type
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.bc.issue.link.IssueLinkTypeService

Public Constructors

public DefaultIssueLinkTypeService (PermissionManager permissionManager, IssueLinkTypeManager issueLinkTypeManager, IssueLinkTypeDestroyer issueLinkTypeDestroyer, I18nHelper.BeanFactory i18nFactory, ApplicationProperties applicationProperties)

Public Methods

public ServiceOutcome<IssueLinkType> createIssueLinkType (ApplicationUser user, String name, String outward, String inward)

Create a new issue link type.

Parameters
user the user who will create it
name the name of the link to create
outward the description to use for outbound links of this type
inward the description to use for inbound links of this type
Returns
  • a ServiceOutcome that contains a description of the failure or the created IssueLinkType

public ServiceOutcome<IssueLinkType> deleteIssueLinkType (ApplicationUser user, IssueLinkType linkType)

Delete a given IssueLinkType, checking for permissions.

Parameters
user the user who is performing the action
linkType the IssueLinkType to delete
Returns
  • a ServiceOutcome indicating success or failure

public ServiceOutcome<Collection<IssueLinkType>> getIssueLinkTypes (ApplicationUser user)

Get a list of all issue link types in the system.

Parameters
user the user who wants to know
Returns
  • a list of all issue link types

public ServiceOutcome<IssueLinkType> updateIssueLinkType (ApplicationUser user, IssueLinkType linkType, String name, String outward, String inward)

Update an existing issue link type

Parameters
user the user performing the modification
linkType the link you want to update
name the new name to use
outward the new outbound description to use
inward the new inbound description to use
Returns
  • the updated IssueLinkType