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

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.web.action.JiraWebActionSupport
              extended by com.atlassian.jira.web.action.ProjectActionSupport
                  extended by com.atlassian.jira.web.action.IssueActionSupport
                      extended by com.atlassian.jira.web.action.issue.SearchDescriptionEnabledAction
                          extended by com.atlassian.jira.web.action.issue.IssueNavigator
All Implemented Interfaces:
ErrorCollection, I18nHelper, FilterOperationsAction, IssueSearchResultsAction, SearchRequestViewsAction, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class IssueNavigator
extends SearchDescriptionEnabledAction
implements IssueSearchResultsAction, FilterOperationsAction, SearchRequestViewsAction

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
JiraWebActionSupport.MessageType
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.ErrorCollection
ErrorCollection.Reason
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
static String JQL_QUERY_PARAMETER
           
static String MODE_HIDE
           
static String MODE_SHOW
           
protected  SearchRequestFactory searchRequestFactory
           
 
Fields inherited from class com.atlassian.jira.web.action.issue.SearchDescriptionEnabledAction
fieldValuesHolder, issueSearcherManager, permissionManager
 
Fields inherited from class com.atlassian.jira.web.action.IssueActionSupport
attachmentManager
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManager
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
IssueNavigator(JiraAuthenticationContext authContext, ColumnLayoutManager columnLayoutManager, IssueSearcherManager issueSearcherManager, SearchRequestFactory searchRequestFactory, SearchRequestService searchRequestService, TableLayoutFactory tableLayoutFactory, CommentManager commentManager, com.atlassian.plugin.PluginAccessor pluginAccessor, PagerManager pagerManager, SearchService searchService, ApplicationProperties applicationProperties, IndexLifecycleManager indexLifecycleManager, AutoCompleteJsonGenerator autoCompleteJsonGenerator, SearchSortUtil searchSortUtil, JqlStringSupport jqlStringSupport, UserQueryHistoryManager userQueryHistoryManager, SimpleLinkManager simpleLinkManager, IssueSearchLimits issueSearchLimits, com.atlassian.plugin.webresource.WebResourceManager webResourceManager, AvatarService avatarService, com.atlassian.event.api.EventPublisher eventPublisher, SearchActionHelper actionHelper, IssueNavigatorSearchResultsHelper searchResultsHelper)
           
 
Method Summary
 String convertToId(String key)
           
protected  FilterOperationsBean createFilterOperationsBean(String userName)
           
 String doClearSorts()
           
 String doColumnOverride()
           
protected  String doExecute()
           
 String doExecuteAdvanced()
           
 String doSwitchView()
           
 String doToggleAutocompletePref()
           
 SearchRequestViewModuleDescriptor getAllExcelFields()
           
 int getBulkEditMax()
           
 SearchRequestViewModuleDescriptor getChart()
           
 CommentManager getCommentManager()
           
 SearchRequestViewModuleDescriptor getCurrentExcelFields()
           
 SearchRequestViewModuleDescriptor getFullContent()
           
 Collection<SimpleLink> getIssueOperations()
           
 String getJqlQuery()
           
 String getJqlQueryString()
           
 String getJqlReservedWordsJson()
           
 int getMaxIndex(List list)
           
 String getMode()
           
 IssueNavigatorType getNavigatorType()
           
 Collection<SearchRequestViewModuleDescriptor> getNonSystemSearchRequestViews()
           
 PagerFilter getPager()
          Store the current pager in the session.
 List<SimpleLink> getPluggableItems()
           
 String getPluginHintsUrl()
           
 SearchRequestViewModuleDescriptor getPrintable()
           
 String getRequestId()
           
 String getRestricted(String url)
           
 SearchRequestViewModuleDescriptor getRssComments()
           
 SearchRequestViewModuleDescriptor getRssIssues()
           
 List<String> getSavedJqlQueryHistoryItems()
           
 String getSearcherEditHtml(IssueSearcher searcher)
           
 SearchResults getSearchResults()
          Return the current search results to the caller.
 Long getSelectedIssueId()
          Return the issue id that should be shown as selected.
 boolean getShowPluginHints()
           
 TableLayoutFactory getTableLayoutFactory()
          Return the object used to render the table layout.
 Integer getTempMax()
          Get / Set the temporary maximum - this is used for printable and excel views etc
 List<ToolOptionGroup> getToolOptions()
           
 List<ToolOptionGroup> getViewOptions()
           
 String getVisibleFieldNamesJson()
           
 String getVisibleFunctionNamesJson()
           
 Collection<String> getWarningMessages()
           
 SearchRequestViewModuleDescriptor getWord()
           
 SearchRequestViewModuleDescriptor getXml()
           
 boolean isAutocompleteDisabled()
           
 boolean isAutocompleteDisabledForUser()
           
 boolean isAutocompleteEnabledForThisRequest()
           
 boolean isBulkEditLimited()
           
 boolean isCurrentQueryTooComplex()
           
 boolean isFilterValid()
          Check if the filter in session is valid or not.
 boolean isFocusJql()
           
 boolean isHasBulkChangePermission()
           
 boolean isHasSearchRequestColumnLayout()
           
 boolean isNavigatorTypeAdvanced()
           
 boolean isNavigatorTypeSimple()
           
 boolean isOwnerOfSearchRequest()
           
 boolean isRequestPrivate()
           
 boolean isShowOverrideColumnLayout()
           
 boolean isUserCreated()
           
 boolean isValid()
           
static Map<String,Object> makeContext(com.atlassian.crowd.embedded.api.User remoteUser, JiraHelper jiraHelper)
           
 void resetPager()
          Deprecated. use IssueNavigatorSearchResultsHelper.resetPager
protected  void setFieldValuesHolder(FieldValuesHolder fieldValuesHolder)
           
 void setHide(String value)
           
 void setJqlQuery(String jqlQuery)
           
 void setMode(String mode)
          Control the mode (hide or show) of the left hand column
 void setRunQuery(String query)
           
 void setShow(String value)
           
 void setTempMax(int tempMax)
           
 void setUserCreated(boolean userCreated)
           
 boolean shouldFocusField()
           
 
Methods inherited from class com.atlassian.jira.web.action.issue.SearchDescriptionEnabledAction
getActionParams, getFieldValuesHolder, getFilterOperationsBean, getSearchContext, getSearcherGroups, getSearchers, getSearcherViewHtml, getSearchRequestJqlString, getSearchSorts, isFilterFavourite, isSearchRequestFitsNavigator, isShown, populateFieldValuesHolderFromQuery, validateSearchFilterIsSavedFilter
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
addIssueToHistory, clearSelectedIssue, getAttachmentManager, getCurrentFailedLoginCount, getCurrentJQL, getCustomFieldManager, getDaysPerWeek, getEverLoggedIn, getHoursPerDay, getIssueManager, getLastFailedLogin, getLastLogin, getLoginCount, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getPreviousLogin, getSearchRequest, getSessionPagerFilterManager, getSessionSearchRequestManager, getSessionSearchRequestManagerFactory, getSessionSelectedIssueManager, getTotalFailedLoginCount, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isElevatedSecurityCheckRequired, isFieldHidden, isFieldHidden, isTimeTrackingEnabled, setSearchRequest, setSelectedIssueId, updateSearchRequest
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowsableProjects, getBrowseableProjects, getSelectedProjectId, setSelectedProject, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, urlEncode
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getRemoteUser, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUntransformedRawText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, isKeyDefined, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doDefault, doValidation, getCommandName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.web.action.issue.IssueSearchResultsAction
getLoggedInUser, getSearchRequest
 
Methods inherited from interface com.atlassian.jira.web.action.filter.FilterOperationsAction
getFilterOperationsBean
 
Methods inherited from interface com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
getCommandName, setCommand
 

Field Detail

JQL_QUERY_PARAMETER

public static final String JQL_QUERY_PARAMETER
See Also:
Constant Field Values

MODE_SHOW

public static final String MODE_SHOW
See Also:
Constant Field Values

MODE_HIDE

public static final String MODE_HIDE
See Also:
Constant Field Values

searchRequestFactory

protected final SearchRequestFactory searchRequestFactory
Constructor Detail

IssueNavigator

public IssueNavigator(JiraAuthenticationContext authContext,
                      ColumnLayoutManager columnLayoutManager,
                      IssueSearcherManager issueSearcherManager,
                      SearchRequestFactory searchRequestFactory,
                      SearchRequestService searchRequestService,
                      TableLayoutFactory tableLayoutFactory,
                      CommentManager commentManager,
                      com.atlassian.plugin.PluginAccessor pluginAccessor,
                      PagerManager pagerManager,
                      SearchService searchService,
                      ApplicationProperties applicationProperties,
                      IndexLifecycleManager indexLifecycleManager,
                      AutoCompleteJsonGenerator autoCompleteJsonGenerator,
                      SearchSortUtil searchSortUtil,
                      JqlStringSupport jqlStringSupport,
                      UserQueryHistoryManager userQueryHistoryManager,
                      SimpleLinkManager simpleLinkManager,
                      IssueSearchLimits issueSearchLimits,
                      com.atlassian.plugin.webresource.WebResourceManager webResourceManager,
                      AvatarService avatarService,
                      com.atlassian.event.api.EventPublisher eventPublisher,
                      SearchActionHelper actionHelper,
                      IssueNavigatorSearchResultsHelper searchResultsHelper)
Method Detail

doExecute

protected String doExecute()
                    throws Exception
Overrides:
doExecute in class webwork.action.ActionSupport
Throws:
Exception

doSwitchView

public final String doSwitchView()

isCurrentQueryTooComplex

public boolean isCurrentQueryTooComplex()

doToggleAutocompletePref

public final String doToggleAutocompletePref()

doClearSorts

public final String doClearSorts()

doExecuteAdvanced

public final String doExecuteAdvanced()

getSavedJqlQueryHistoryItems

public List<String> getSavedJqlQueryHistoryItems()

getVisibleFieldNamesJson

public String getVisibleFieldNamesJson()
                                throws JSONException
Throws:
JSONException

getVisibleFunctionNamesJson

public String getVisibleFunctionNamesJson()
                                   throws JSONException
Throws:
JSONException

getJqlReservedWordsJson

public String getJqlReservedWordsJson()
                               throws JSONException
Throws:
JSONException

isFocusJql

public boolean isFocusJql()

doColumnOverride

public String doColumnOverride()
                        throws Exception
Throws:
Exception

getPager

public PagerFilter getPager()
Store the current pager in the session. The pager handles paging through the issue list.

Returns:
the current searching pager.

getTableLayoutFactory

public TableLayoutFactory getTableLayoutFactory()
Description copied from interface: IssueSearchResultsAction
Return the object used to render the table layout.

Specified by:
getTableLayoutFactory in interface IssueSearchResultsAction
Returns:
the object used to render the table layout.

resetPager

public void resetPager()
Deprecated. use IssueNavigatorSearchResultsHelper.resetPager


getSearchResults

public SearchResults getSearchResults()
                               throws SearchException
Description copied from interface: IssueSearchResultsAction
Return the current search results to the caller.

Specified by:
getSearchResults in interface IssueSearchResultsAction
Returns:
the current search results.
Throws:
SearchException

getSelectedIssueId

public Long getSelectedIssueId()
Description copied from interface: IssueSearchResultsAction
Return the issue id that should be shown as selected.

Specified by:
getSelectedIssueId in interface IssueSearchResultsAction
Overrides:
getSelectedIssueId in class IssueActionSupport
Returns:
the issue id that should be shown as selected.

isUserCreated

public boolean isUserCreated()

setUserCreated

public void setUserCreated(boolean userCreated)

getMode

public String getMode()

setMode

public void setMode(String mode)
Control the mode (hide or show) of the left hand column

Parameters:
mode - mode

setHide

public void setHide(String value)

setShow

public void setShow(String value)

getTempMax

public Integer getTempMax()
Get / Set the temporary maximum - this is used for printable and excel views etc

Returns:
temp max

setTempMax

public void setTempMax(int tempMax)

shouldFocusField

public boolean shouldFocusField()

getJqlQueryString

public String getJqlQueryString()

isHasSearchRequestColumnLayout

public boolean isHasSearchRequestColumnLayout()
                                       throws ColumnLayoutStorageException
Throws:
ColumnLayoutStorageException

isOwnerOfSearchRequest

public boolean isOwnerOfSearchRequest()

isShowOverrideColumnLayout

public boolean isShowOverrideColumnLayout()
                                   throws ColumnLayoutStorageException
Throws:
ColumnLayoutStorageException

isHasBulkChangePermission

public boolean isHasBulkChangePermission()

getSearcherEditHtml

public String getSearcherEditHtml(IssueSearcher searcher)

setFieldValuesHolder

protected void setFieldValuesHolder(FieldValuesHolder fieldValuesHolder)

isValid

public boolean isValid()

getRequestId

public String getRequestId()

isRequestPrivate

public boolean isRequestPrivate()

getCommentManager

public CommentManager getCommentManager()

getNonSystemSearchRequestViews

public Collection<SearchRequestViewModuleDescriptor> getNonSystemSearchRequestViews()
Specified by:
getNonSystemSearchRequestViews in interface SearchRequestViewsAction
Returns:
all the SearchRequestViewModuleDescriptors loaded via plugins (no system defined ones).

makeContext

public static Map<String,Object> makeContext(com.atlassian.crowd.embedded.api.User remoteUser,
                                             JiraHelper jiraHelper)

getPrintable

public SearchRequestViewModuleDescriptor getPrintable()
Specified by:
getPrintable in interface SearchRequestViewsAction

getFullContent

public SearchRequestViewModuleDescriptor getFullContent()
Specified by:
getFullContent in interface SearchRequestViewsAction

getXml

public SearchRequestViewModuleDescriptor getXml()
Specified by:
getXml in interface SearchRequestViewsAction

getRssIssues

public SearchRequestViewModuleDescriptor getRssIssues()
Specified by:
getRssIssues in interface SearchRequestViewsAction

getRssComments

public SearchRequestViewModuleDescriptor getRssComments()
Specified by:
getRssComments in interface SearchRequestViewsAction

getWord

public SearchRequestViewModuleDescriptor getWord()
Specified by:
getWord in interface SearchRequestViewsAction

getAllExcelFields

public SearchRequestViewModuleDescriptor getAllExcelFields()
Specified by:
getAllExcelFields in interface SearchRequestViewsAction

getCurrentExcelFields

public SearchRequestViewModuleDescriptor getCurrentExcelFields()
Specified by:
getCurrentExcelFields in interface SearchRequestViewsAction

getChart

public SearchRequestViewModuleDescriptor getChart()
Specified by:
getChart in interface SearchRequestViewsAction

getRestricted

public String getRestricted(String url)

isFilterValid

public final boolean isFilterValid()
Description copied from class: SearchDescriptionEnabledAction
Check if the filter in session is valid or not.

Specified by:
isFilterValid in interface FilterOperationsAction
Overrides:
isFilterValid in class SearchDescriptionEnabledAction
Returns:
true iff the current filter is valid or false otherwise.

isBulkEditLimited

public boolean isBulkEditLimited()

getBulkEditMax

public int getBulkEditMax()

createFilterOperationsBean

protected FilterOperationsBean createFilterOperationsBean(String userName)
Overrides:
createFilterOperationsBean in class SearchDescriptionEnabledAction

getNavigatorType

public IssueNavigatorType getNavigatorType()

isNavigatorTypeAdvanced

public boolean isNavigatorTypeAdvanced()

isNavigatorTypeSimple

public boolean isNavigatorTypeSimple()

setRunQuery

public void setRunQuery(String query)

setJqlQuery

public void setJqlQuery(String jqlQuery)

getJqlQuery

public String getJqlQuery()

isAutocompleteDisabled

public boolean isAutocompleteDisabled()

isAutocompleteDisabledForUser

public boolean isAutocompleteDisabledForUser()

isAutocompleteEnabledForThisRequest

public boolean isAutocompleteEnabledForThisRequest()

getViewOptions

public List<ToolOptionGroup> getViewOptions()

getToolOptions

public List<ToolOptionGroup> getToolOptions()
                                     throws ColumnLayoutStorageException
Throws:
ColumnLayoutStorageException

getPluggableItems

public List<SimpleLink> getPluggableItems()

getMaxIndex

public int getMaxIndex(List list)

getWarningMessages

public final Collection<String> getWarningMessages()

getIssueOperations

public Collection<SimpleLink> getIssueOperations()

getShowPluginHints

public boolean getShowPluginHints()

getPluginHintsUrl

public String getPluginHintsUrl()

convertToId

public String convertToId(String key)


Copyright © 2002-2012 Atlassian. All Rights Reserved.