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

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

public class IssueFinderImpl
extends Object
implements IssueFinder

Finds issues by id or key.

Since:
v5.0

Constructor Summary
IssueFinderImpl(JiraAuthenticationContext authContext, IssueManager issueManager, PermissionManager permissionManager)
           
 
Method Summary
 Issue findIssue(IssueRefJsonBean issueRef, ErrorCollection errorCollection)
          Finds an issue based on the passed-in id or key.
 Issue findIssue(String issueIdOrKey, ErrorCollection errorCollection)
          Finds an issue based on the passed-in id or key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueFinderImpl

public IssueFinderImpl(JiraAuthenticationContext authContext,
                       IssueManager issueManager,
                       PermissionManager permissionManager)
Method Detail

findIssue

public Issue findIssue(@Nonnull
                       IssueRefJsonBean issueRef,
                       @Nonnull
                       ErrorCollection errorCollection)
Description copied from interface: IssueFinder
Finds an issue based on the passed-in id or key.

Specified by:
findIssue in interface IssueFinder
Parameters:
issueRef - an IssueRefJsonBean that contains either an id or key
errorCollection - an ErrorCollection where any errors will be added
Returns:
an Issue or null

findIssue

public Issue findIssue(@Nullable
                       String issueIdOrKey,
                       @Nonnull
                       ErrorCollection errorCollection)
Description copied from interface: IssueFinder
Finds an issue based on the passed-in id or key.

Specified by:
findIssue in interface IssueFinder
Parameters:
issueIdOrKey - a string that may be an an id or key
errorCollection - an ErrorCollection where any errors will be added
Returns:
an Issue or null


Copyright © 2002-2014 Atlassian. All Rights Reserved.