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, 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(SearchProvider searchProvider,
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,
DefaultAutoCompleteJsonGenerator autoCompleteJsonGenerator,
SearchSortUtil searchSortUtil,
JqlStringSupport jqlStringSupport,
UserQueryHistoryManager userQueryHistoryManager)
|
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 |
getAttachmentManager, getCurrentJQL, getCustomFieldManager, getDaysPerWeek, getEverLoggedIn, getHoursPerDay, getIssueManager, getLastLogin, getLoginCount, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getPreviousLogin, getSearchRequest, getSelectedIssueId, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue, setSearchRequest, setSelectedIssueId, updateSearchRequest |
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport |
addErrorCollection, forceRedirect, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUserFullName, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isSystemAdministrator, isUserExists, setReturnUrl, setSelectedProjectId |
Methods inherited from class com.atlassian.jira.action.JiraActionSupport |
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText0, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError |
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, doDefault, doValidation, 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 webwork.action.CommandDriven |
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(SearchProvider searchProvider,
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,
DefaultAutoCompleteJsonGenerator autoCompleteJsonGenerator,
SearchSortUtil searchSortUtil,
JqlStringSupport jqlStringSupport,
UserQueryHistoryManager userQueryHistoryManager)
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
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()
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
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 int getTempMax()
- Get / Set the temporary maximum - this is used for printable and excel views etc
- Returns:
- temp max
setTempMax
public void setTempMax(int tempMax)
getJqlQueryString
public String getJqlQueryString()
isHasSearchRequestColumnLayout
public boolean isHasSearchRequestColumnLayout()
throws ColumnLayoutStorageException
- Determines if the current search request has a column layout. Used in the header of the IssueNavigator
- Throws:
ColumnLayoutStorageException
isOwnerOfSearchRequest
public boolean isOwnerOfSearchRequest()
isShowOverrideColumnLayout
public boolean isShowOverrideColumnLayout()
throws ColumnLayoutStorageException
- Determines whether the "Use Your Columns" link should be shown to the user. This will happen IF the search
request has its own column layout AND If the user has NOT chosen to override the search request's column layout
- Throws:
ColumnLayoutStorageException
isHasBulkChangePermission
public boolean isHasBulkChangePermission()
- Checks to see if the current user has the global BULK CHANGE permission
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).
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()
- Tells whether the bulk edit limit property is currently restricting the number of issues in the current search
that may be bulk edited.
- Returns:
- true only if the bulk edit limit is restricting.
getBulkEditMax
public int getBulkEditMax()
- Returns the maximum number of issues the user is allowed to bulk edit. Possibly the number of search results
that were returned, but no more than the number configured by
APKeys.JIRA_BULK_EDIT_LIMIT_ISSUE_COUNT
if it is set to a positive number.
- Returns:
- the number of issues that can be bulk edited.
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()
getToolOptions
public List<ToolOptionGroup> getToolOptions()
throws SearchException,
ColumnLayoutStorageException
- Throws:
SearchException
ColumnLayoutStorageException
getMaxIndex
public int getMaxIndex(List list)
getWarningMessages
public final Collection<String> getWarningMessages()
Copyright © 2002-2009 Atlassian. All Rights Reserved.