com.atlassian.jira.web.action.issue
Interface BugAssociatorPrefs

All Known Implementing Classes:
DefaultBugAssociatorPrefs

public interface BugAssociatorPrefs

Class encapsulating behaviour on the "issue picker" popup shown when linking issues.


Field Summary
static int LIST
           
static int MULTIPLE
           
static int RECENT
           
static int SEARCH
           
static int SINGLE
           
 
Method Summary
 int getDefaultMode(Issue issue)
          What to show initially.
 int getDefaultSearchMode(Issue issue)
          Whether users can select just one or multiple issues.
 long getDefaultSearchRequestId(Issue issue)
          Get the search request to run initially, if the SEARCH mode is used.
 Collection getIssueList(Issue issue, User remoteUser, int maxIssuesReturned)
          Get a list of issues to present initially, if LIST mode is used.
 

Field Detail

RECENT

public static final int RECENT
See Also:
Constant Field Values

SEARCH

public static final int SEARCH
See Also:
Constant Field Values

LIST

public static final int LIST
See Also:
Constant Field Values

SINGLE

public static final int SINGLE
See Also:
Constant Field Values

MULTIPLE

public static final int MULTIPLE
See Also:
Constant Field Values
Method Detail

getDefaultMode

public int getDefaultMode(Issue issue)
What to show initially.

Returns:
RECENT -- show recently viewed issues. SEARCH - show a predefined search request's issues (see getDefaultSearchRequestId(com.atlassian.jira.issue.Issue) LIST - a preset list of issues (by default, the search request's) - see getIssueList(com.atlassian.jira.issue.Issue, com.opensymphony.user.User, int) }

getDefaultSearchMode

public int getDefaultSearchMode(Issue issue)
Whether users can select just one or multiple issues.

Parameters:
issue -
Returns:
SINGLE - select just one issue or MULTIPLE select multiple issues (checkboxes).

getDefaultSearchRequestId

public long getDefaultSearchRequestId(Issue issue)
Get the search request to run initially, if the SEARCH mode is used.


getIssueList

public Collection getIssueList(Issue issue,
                               User remoteUser,
                               int maxIssuesReturned)
Get a list of issues to present initially, if LIST mode is used.

Returns:
A collection of Issues.


Copyright © 2002-2007 Atlassian. All Rights Reserved.