com.atlassian.jira.web.action.admin.filters
Class ViewSharedFilters

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.filter.ManageFilters
                              extended by com.atlassian.jira.web.action.admin.filters.ViewSharedFilters
All Implemented Interfaces:
ErrorCollection, I18nHelper, FilterOperationsAction, SharedEntitySearchAction, DropDownModelProvider<SearchRequestDisplayBean>, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class ViewSharedFilters
extends ManageFilters
implements FilterOperationsAction, SharedEntitySearchAction

Responsible for displaying the shared filters administration page.

Since:
v4.4.1
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.web.action.util.sharing.SharedEntitySearchAction
SharedEntitySearchAction.FieldNameMapper, SharedEntitySearchAction.QueryValidator
 
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
 
Fields inherited from class com.atlassian.jira.web.action.filter.ManageFilters
beanFactory, CONTENTONLY
 
Fields inherited from class com.atlassian.jira.web.action.issue.SearchDescriptionEnabledAction
fieldValuesHolder, issueSearcherManager
 
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 com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ViewSharedFilters(JiraAuthenticationContext authCtx, IssueSearcherManager issueSearcherManager, SearchRequestService searchRequestService, ShareTypeFactory shareTypeFactory, SearchRequestDisplayBean.Factory beanFactory, SearchService searchService, SearchSortUtil searchSortUtil, com.atlassian.plugin.webresource.WebResourceManager webResourceManager)
           
 
Method Summary
 String doDefault()
           
protected  String doExecute()
           
protected  void doValidation()
           
 DropDownModel getDropDownModel(SearchRequestDisplayBean displayBean, int listIndex)
           
protected  FilterViewHelper getFilterHelper()
           
 FilterLinkRenderer getFilterLinkRenderer()
           
 FilterOperationsBean getFilterOperationsBean()
          Return the filter operations beans that describes the operations that should be displayed for this action.
 boolean isSearchRequested()
           
 
Methods inherited from class com.atlassian.jira.web.action.filter.ManageFilters
canShowFavourite, doView, executeSearchView, getEndPosition, getFilters, getFiltersViewHelper, getFiltersWithSubscriptions, getFiltersWithSubscriptionsCount, getFilterView, getGroupShare, getNextUrl, getPagingOffset, getPreviousUrl, getProjectShare, getRoleShare, getSearchEmptyMessageKey, getSearchName, getSearchOwnerUserName, getSearchShareType, getSortColumn, getStartPosition, getTotalResultCount, isContentOnly, isFirstTab, isSearchContentOnly, isSortAscending, isTabShowing, isUserLoggedIn, setContentOnly, setFilters, setFilterView, setGroupShare, setPagingOffset, setProjectShare, setRoleShare, setSearchContentOnly, setSearchName, setSearchOwnerUserName, setSearchResults, setSearchShareType, setSortAscending, setSortColumn, toUrl
 
Methods inherited from class com.atlassian.jira.web.action.issue.SearchDescriptionEnabledAction
createFilterOperationsBean, getActionParams, getFieldValuesHolder, getSearchContext, getSearcherGroups, getSearchers, getSearcherViewHtml, getSearchRequestJqlString, getSearchSorts, isFilterFavourite, isFilterValid, 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, getSelectedIssueId, 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, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirectChecker, 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, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId
 
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, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, 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.filter.FilterOperationsAction
isFilterValid
 
Methods inherited from interface com.atlassian.jira.web.action.util.sharing.SharedEntitySearchAction
getGroupShare, getPagingOffset, getProjectShare, getRoleShare, getSearchName, getSearchOwnerUserName, getSearchShareType, getSortColumn, isSortAscending, setGroupShare, setPagingOffset, setProjectShare, setRoleShare, setSearchName, setSearchOwnerUserName, setSearchShareType, setSortAscending, setSortColumn
 
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
 

Constructor Detail

ViewSharedFilters

public ViewSharedFilters(JiraAuthenticationContext authCtx,
                         IssueSearcherManager issueSearcherManager,
                         SearchRequestService searchRequestService,
                         ShareTypeFactory shareTypeFactory,
                         SearchRequestDisplayBean.Factory beanFactory,
                         SearchService searchService,
                         SearchSortUtil searchSortUtil,
                         com.atlassian.plugin.webresource.WebResourceManager webResourceManager)
Method Detail

getDropDownModel

public DropDownModel getDropDownModel(SearchRequestDisplayBean displayBean,
                                      int listIndex)
Specified by:
getDropDownModel in interface DropDownModelProvider<SearchRequestDisplayBean>
Overrides:
getDropDownModel in class ManageFilters
Parameters:
displayBean - some domain object
listIndex - this parameter indicates the position in of the domain object in a list of domain objects. Often generated markup uses position in the list to generate ids and the like
Returns:
a drop down model based on the values in domainObject

getFilterHelper

protected FilterViewHelper getFilterHelper()
Overrides:
getFilterHelper in class ManageFilters

doDefault

public String doDefault()
                 throws Exception
Overrides:
doDefault in class webwork.action.ActionSupport
Throws:
Exception

doValidation

protected void doValidation()
Overrides:
doValidation in class webwork.action.ActionSupport

doExecute

protected String doExecute()
Overrides:
doExecute in class ManageFilters

getFilterLinkRenderer

public FilterLinkRenderer getFilterLinkRenderer()
Overrides:
getFilterLinkRenderer in class ManageFilters

getFilterOperationsBean

public FilterOperationsBean getFilterOperationsBean()
Description copied from interface: FilterOperationsAction
Return the filter operations beans that describes the operations that should be displayed for this action.

Specified by:
getFilterOperationsBean in interface FilterOperationsAction
Overrides:
getFilterOperationsBean in class SearchDescriptionEnabledAction
Returns:
the filter operation bean for the actions.

isSearchRequested

public boolean isSearchRequested()
Overrides:
isSearchRequested in class ManageFilters


Copyright © 2002-2012 Atlassian. All Rights Reserved.