public class DefaultIssueLinkTypeService extends Object implements IssueLinkTypeService
Constructor and Description |
---|
DefaultIssueLinkTypeService(PermissionManager permissionManager,
IssueLinkTypeManager issueLinkTypeManager,
IssueLinkTypeDestroyer issueLinkTypeDestroyer,
I18nHelper.BeanFactory i18nFactory,
ApplicationProperties applicationProperties,
IssueLinkingHandler issueLinkingHandler) |
Modifier and Type | Method and Description |
---|---|
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
|
public DefaultIssueLinkTypeService(PermissionManager permissionManager, IssueLinkTypeManager issueLinkTypeManager, IssueLinkTypeDestroyer issueLinkTypeDestroyer, I18nHelper.BeanFactory i18nFactory, ApplicationProperties applicationProperties, IssueLinkingHandler issueLinkingHandler)
public ServiceOutcome<IssueLinkType> createIssueLinkType(ApplicationUser user, String name, String outward, String inward)
IssueLinkTypeService
createIssueLinkType
in interface IssueLinkTypeService
user
- the user who will create itname
- the name of the link to createoutward
- the description to use for outbound links of this typeinward
- the description to use for inbound links of this typepublic ServiceOutcome<IssueLinkType> deleteIssueLinkType(ApplicationUser user, IssueLinkType linkType)
IssueLinkTypeService
deleteIssueLinkType
in interface IssueLinkTypeService
user
- the user who is performing the actionlinkType
- the IssueLinkType to deletepublic ServiceOutcome<Collection<IssueLinkType>> getIssueLinkTypes(ApplicationUser user)
IssueLinkTypeService
getIssueLinkTypes
in interface IssueLinkTypeService
user
- the user who wants to knowpublic ServiceOutcome<IssueLinkType> updateIssueLinkType(ApplicationUser user, IssueLinkType linkType, String name, String outward, String inward)
IssueLinkTypeService
updateIssueLinkType
in interface IssueLinkTypeService
user
- the user performing the modificationlinkType
- the link you want to updatename
- the new name to useoutward
- the new outbound description to useinward
- the new inbound description to useCopyright © 2002-2022 Atlassian. All Rights Reserved.