com.atlassian.jira.web.action.issue
Class DefaultBugAssociatorPrefs

java.lang.Object
  extended bycom.atlassian.jira.web.action.issue.DefaultBugAssociatorPrefs
All Implemented Interfaces:
BugAssociatorPrefs

public class DefaultBugAssociatorPrefs
extends Object
implements BugAssociatorPrefs


Field Summary
 
Fields inherited from interface com.atlassian.jira.web.action.issue.BugAssociatorPrefs
LIST, MULTIPLE, RECENT, SEARCH, SINGLE
 
Constructor Summary
DefaultBugAssociatorPrefs()
           
 
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 BugAssociatorPrefs.SEARCH mode is used.
 Collection getIssueList(Issue issue, User remoteUser, int maxIssuesReturned)
          Get a list of issues to present initially, if BugAssociatorPrefs.LIST mode is used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBugAssociatorPrefs

public DefaultBugAssociatorPrefs()
Method Detail

getDefaultMode

public int getDefaultMode(Issue issue)
Description copied from interface: BugAssociatorPrefs
What to show initially.

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

getDefaultSearchMode

public int getDefaultSearchMode(Issue issue)
Description copied from interface: BugAssociatorPrefs
Whether users can select just one or multiple issues.

Specified by:
getDefaultSearchMode in interface BugAssociatorPrefs
Parameters:
issue -
Returns:
BugAssociatorPrefs.SINGLE - select just one issue or BugAssociatorPrefs.MULTIPLE select multiple issues (checkboxes).

getDefaultSearchRequestId

public long getDefaultSearchRequestId(Issue issue)
Description copied from interface: BugAssociatorPrefs
Get the search request to run initially, if the BugAssociatorPrefs.SEARCH mode is used.

Specified by:
getDefaultSearchRequestId in interface BugAssociatorPrefs

getIssueList

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

Specified by:
getIssueList in interface BugAssociatorPrefs
Returns:
A collection of Issues.


Copyright © 2002-2007 Atlassian. All Rights Reserved.