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, ChangeHistoryManager changeHistoryManager, PermissionManager permissionManager)
           
 
Method Summary
 MutableIssue findIssue(IssueRefJsonBean issueRef, ErrorCollection errorCollection)
          Finds an issue based on the passed-in id or key.
 MutableIssue findIssue(String issueIdOrKey, ErrorCollection errorCollection)
          Finds an issue based on the passed-in id or key.
 MutableIssue findIssueById(Long id, ErrorCollection errorCollection)
           
 MutableIssue findIssueByKey(String key, ErrorCollection errorCollection)
           
 
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,
                       ChangeHistoryManager changeHistoryManager,
                       PermissionManager permissionManager)
Method Detail

findIssue

public MutableIssue 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 MutableIssue findIssue(@Nonnull
                              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

findIssueById

public MutableIssue findIssueById(@Nonnull
                                  Long id,
                                  @Nonnull
                                  ErrorCollection errorCollection)

findIssueByKey

public MutableIssue findIssueByKey(@Nonnull
                                   String key,
                                   @Nonnull
                                   ErrorCollection errorCollection)


Copyright © 2002-2012 Atlassian. All Rights Reserved.