com.atlassian.jira.issue.fields.rest
Class IssueLinkTypeFinderImpl

java.lang.Object
  extended by com.atlassian.jira.issue.fields.rest.IssueLinkTypeFinderImpl
All Implemented Interfaces:
IssueLinkTypeFinder

public final class IssueLinkTypeFinderImpl
extends Object
implements IssueLinkTypeFinder

This "finder" class is used to find issue link types based on 'id' or 'name'.

Since:
v5.0

Constructor Summary
IssueLinkTypeFinderImpl(IssueLinkTypeManager issueLinkTypeManager, I18nHelper.BeanFactory i18nFactory, JiraAuthenticationContext jiraAuthenticationContext)
           
 
Method Summary
 IssueLinkType findIssueLinkType(IssueLinkTypeJsonBean linkTypeBean, ErrorCollection errors)
          Fetches an IssueLinkType from its manager based on either the 'id' or the 'name' property of linkTypeBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueLinkTypeFinderImpl

public IssueLinkTypeFinderImpl(IssueLinkTypeManager issueLinkTypeManager,
                               I18nHelper.BeanFactory i18nFactory,
                               JiraAuthenticationContext jiraAuthenticationContext)
Method Detail

findIssueLinkType

public IssueLinkType findIssueLinkType(IssueLinkTypeJsonBean linkTypeBean,
                                       ErrorCollection errors)
Fetches an IssueLinkType from its manager based on either the 'id' or the 'name' property of linkTypeBean. If the link type does not exist, the appropriate error will be added to the errors parameter (and the return value will be null).

Specified by:
findIssueLinkType in interface IssueLinkTypeFinder
Parameters:
linkTypeBean - the IssueLinkTypeJsonBean
errors - a SimpleErrorCollection
Returns:
an IssueLinkType, or null


Copyright © 2002-2012 Atlassian. All Rights Reserved.