com.atlassian.jira.web.action.issue
Class IssueNavigator
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.action.JiraActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.ProjectActionSupport
com.atlassian.jira.web.action.IssueActionSupport
com.atlassian.jira.web.action.issue.SearchDescriptionEnabledAction
com.atlassian.jira.web.action.issue.IssueNavigator
- All Implemented Interfaces:
- ErrorCollection, I18nHelper, FilterOperationsAction, IssueSearchResultsAction, SearchRequestViewsAction, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
public class IssueNavigator
- extends SearchDescriptionEnabledAction
- implements IssueSearchResultsAction, FilterOperationsAction, SearchRequestViewsAction
- See Also:
- Serialized Form
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)
|
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.JiraWebActionSupport |
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addMessageToResponse, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, hasIssuePermission, hasPermission, hasProjectPermission, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, 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, getResourceBundle, 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, 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 webwork.action.CommandDriven |
getCommandName, setCommand |
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
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)
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()
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(ApplicationUser user)
- 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-2013 Atlassian. All Rights Reserved.