com.atlassian.jira.bc.issue.link
Class DefaultIssueLinkTypeService

java.lang.Object
  extended by com.atlassian.jira.bc.issue.link.DefaultIssueLinkTypeService
All Implemented Interfaces:
IssueLinkTypeService

public class DefaultIssueLinkTypeService
extends Object
implements IssueLinkTypeService

Since:
v6.0

Constructor Summary
DefaultIssueLinkTypeService(PermissionManager permissionManager, IssueLinkTypeManager issueLinkTypeManager, IssueLinkTypeDestroyer issueLinkTypeDestroyer, I18nHelper.BeanFactory i18nFactory, ApplicationProperties applicationProperties)
           
 
Method Summary
 ServiceOutcome<IssueLinkType> createIssueLinkType(com.atlassian.crowd.embedded.api.User user, String name, String outward, String inward)
          Create a new issue link type.
 ServiceOutcome<IssueLinkType> deleteIssueLinkType(com.atlassian.crowd.embedded.api.User user, IssueLinkType linkType)
          Delete a given IssueLinkType, checking for permissions.
 ServiceOutcome<Collection<IssueLinkType>> getIssueLinkTypes(com.atlassian.crowd.embedded.api.User user)
          Get a list of all issue link types in the system.
 ServiceOutcome<IssueLinkType> updateIssueLinkType(com.atlassian.crowd.embedded.api.User user, IssueLinkType linkType, String name, String outward, String inward)
          Update an existing issue link type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIssueLinkTypeService

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

createIssueLinkType

public ServiceOutcome<IssueLinkType> createIssueLinkType(com.atlassian.crowd.embedded.api.User user,
                                                         String name,
                                                         String outward,
                                                         String inward)
Description copied from interface: IssueLinkTypeService
Create a new issue link type.

Specified by:
createIssueLinkType in interface IssueLinkTypeService
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

deleteIssueLinkType

public ServiceOutcome<IssueLinkType> deleteIssueLinkType(com.atlassian.crowd.embedded.api.User user,
                                                         IssueLinkType linkType)
Description copied from interface: IssueLinkTypeService
Delete a given IssueLinkType, checking for permissions.

Specified by:
deleteIssueLinkType in interface IssueLinkTypeService
Parameters:
user - the user who is performing the action
linkType - the IssueLinkType to delete
Returns:
a ServiceOutcome indicating success or failure

getIssueLinkTypes

public ServiceOutcome<Collection<IssueLinkType>> getIssueLinkTypes(com.atlassian.crowd.embedded.api.User user)
Description copied from interface: IssueLinkTypeService
Get a list of all issue link types in the system.

Specified by:
getIssueLinkTypes in interface IssueLinkTypeService
Parameters:
user - the user who wants to know
Returns:
a list of all issue link types

updateIssueLinkType

public ServiceOutcome<IssueLinkType> updateIssueLinkType(com.atlassian.crowd.embedded.api.User user,
                                                         IssueLinkType linkType,
                                                         String name,
                                                         String outward,
                                                         String inward)
Description copied from interface: IssueLinkTypeService
Update an existing issue link type

Specified by:
updateIssueLinkType in interface IssueLinkTypeService
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


Copyright © 2002-2013 Atlassian. All Rights Reserved.