com.atlassian.jira.web.action.filter
Class ManageFilters

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
All Implemented Interfaces:
ErrorCollection, I18nHelper, FilterOperationsAction, SharedEntitySearchAction, java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class ManageFilters
extends SearchDescriptionEnabledAction
implements SharedEntitySearchAction, FilterOperationsAction

Action class for managing filters. Also used by delete filter.

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.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
 
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
ManageFilters(JiraAuthenticationContext authCtx, IssueSearcherManager issueSearcherManager, SearchRequestService searchRequestService, ShareTypeFactory shareTypeFactory, SearchRequestDisplayBean.Factory beanFactory, SearchService searchService, SearchSortUtil searchSortUtil, com.atlassian.plugin.webresource.WebResourceManager webResourceManager)
           
 
Method Summary
 boolean canShowFavourite()
          Can we display the favourite column? Determined by if there is a user in the current session.
 boolean canShowShares()
          Can we display the share column.
protected  java.lang.String doExecute()
           
 java.lang.String doView()
           
 int getEndPosition()
           
 FilterLinkRenderer getFilterLinkRenderer()
           
 java.util.List getFilters()
           
 FilterViewHelper getFiltersViewHelper()
           
 java.util.List<SearchRequestDisplayBean> getFiltersWithSubscriptions()
           
 int getFiltersWithSubscriptionsCount()
           
 java.lang.String getFilterView()
           
 java.lang.String getGroupShare()
           
 java.lang.String getNextUrl()
           
 java.lang.Long getPagingOffset()
           
 java.lang.String getPreviousUrl()
           
 java.lang.String getProjectShare()
           
 java.lang.String getRoleShare()
           
 java.lang.String getSearchEmptyMessageKey()
           
 java.lang.String getSearchName()
           
 java.lang.String getSearchOwnerUserName()
           
 java.lang.String getSearchShareType()
           
 java.lang.String getSortColumn()
           
 int getStartPosition()
           
 int getTotalResultCount()
           
 boolean isFirstTab(java.lang.String tab)
           
 boolean isSearchContentOnly()
           
 boolean isSearchRequested()
           
 boolean isSortAscending()
           
 boolean isTabShowing(java.lang.String tab)
           
 boolean isUserLoggedIn()
          Is there a user associated with the session.
 void setContentOnly(boolean contentOnly)
           
 void setFilterView(java.lang.String filterView)
           
 void setGroupShare(java.lang.String groupShare)
           
 void setPagingOffset(java.lang.Long pagingOffset)
           
 void setProjectShare(java.lang.String projectShare)
           
 void setRoleShare(java.lang.String roleShare)
           
 void setSearchContentOnly(boolean searchContentOnly)
           
 void setSearchName(java.lang.String searchName)
           
 void setSearchOwnerUserName(java.lang.String searchOwnerUserName)
           
 void setSearchShareType(java.lang.String searchShareType)
           
 void setSortAscending(boolean sortAscending)
           
 void setSortColumn(java.lang.String sortColumn)
           
 
Methods inherited from class com.atlassian.jira.web.action.issue.SearchDescriptionEnabledAction
createFilterOperationsBean, getActionParams, getFieldValuesHolder, getFilterOperationsBean, getSearchContext, getSearcherGroups, getSearchers, getSearcherViewHtml, getSearchRequestJqlString, getSearchSorts, isFilterFavourite, isFilterValid, isSearchRequestFitsNavigator, isShown, populateFieldValuesHolderFromQuery, validateSearchFilterIsSavedFilter
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
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, isFieldHidden, isTimeTrackingEnabled, setCurrentIssue, setSearchRequest, setSelectedIssueId, updateSearchRequest
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, forceRedirect, getApplicationProperties, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRandomHint, getRedirect, getRemoteUser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUriValidator, getUserFullName, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, setConglomerateCookieValue, setInline, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getDefaultResourceBundle, getDelegator, getKeysForPrefix, getLocale, getResult, getText, 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, 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
getFilterOperationsBean, isFilterValid
 
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

ManageFilters

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

getSearchName

public java.lang.String getSearchName()
Specified by:
getSearchName in interface SharedEntitySearchAction

setSearchName

public void setSearchName(java.lang.String searchName)
Specified by:
setSearchName in interface SharedEntitySearchAction

getSearchOwnerUserName

public java.lang.String getSearchOwnerUserName()
Specified by:
getSearchOwnerUserName in interface SharedEntitySearchAction

setSearchOwnerUserName

public void setSearchOwnerUserName(java.lang.String searchOwnerUserName)
Specified by:
setSearchOwnerUserName in interface SharedEntitySearchAction

getSearchShareType

public java.lang.String getSearchShareType()
Specified by:
getSearchShareType in interface SharedEntitySearchAction

setSearchShareType

public void setSearchShareType(java.lang.String searchShareType)
Specified by:
setSearchShareType in interface SharedEntitySearchAction

setGroupShare

public void setGroupShare(java.lang.String groupShare)
Specified by:
setGroupShare in interface SharedEntitySearchAction

getGroupShare

public java.lang.String getGroupShare()
Specified by:
getGroupShare in interface SharedEntitySearchAction

getPagingOffset

public java.lang.Long getPagingOffset()
Specified by:
getPagingOffset in interface SharedEntitySearchAction

setProjectShare

public void setProjectShare(java.lang.String projectShare)
Specified by:
setProjectShare in interface SharedEntitySearchAction

getProjectShare

public java.lang.String getProjectShare()
Specified by:
getProjectShare in interface SharedEntitySearchAction

setRoleShare

public void setRoleShare(java.lang.String roleShare)
Specified by:
setRoleShare in interface SharedEntitySearchAction

getRoleShare

public java.lang.String getRoleShare()
Specified by:
getRoleShare in interface SharedEntitySearchAction

setPagingOffset

public void setPagingOffset(java.lang.Long pagingOffset)
Specified by:
setPagingOffset in interface SharedEntitySearchAction

getSortColumn

public java.lang.String getSortColumn()
Specified by:
getSortColumn in interface SharedEntitySearchAction

setSortColumn

public void setSortColumn(java.lang.String sortColumn)
Specified by:
setSortColumn in interface SharedEntitySearchAction

isSortAscending

public boolean isSortAscending()
Specified by:
isSortAscending in interface SharedEntitySearchAction

setSortAscending

public void setSortAscending(boolean sortAscending)
Specified by:
setSortAscending in interface SharedEntitySearchAction

getFilterView

public java.lang.String getFilterView()

setFilterView

public void setFilterView(java.lang.String filterView)

getFilters

public java.util.List getFilters()

getNextUrl

public java.lang.String getNextUrl()

getPreviousUrl

public java.lang.String getPreviousUrl()

getStartPosition

public int getStartPosition()

getEndPosition

public int getEndPosition()

getTotalResultCount

public int getTotalResultCount()

getFiltersViewHelper

public FilterViewHelper getFiltersViewHelper()

canShowFavourite

public boolean canShowFavourite()
Can we display the favourite column? Determined by if there is a user in the current session.

Returns:
true if there is a logged in user, else false

canShowShares

public boolean canShowShares()
Can we display the share column.

Returns:
true if there we are in Enterprise or Professional (not Standard)

isUserLoggedIn

public boolean isUserLoggedIn()
Is there a user associated with the session.

Returns:
true if a user is associated with the action or false otherwise.

isSearchRequested

public boolean isSearchRequested()

getSearchEmptyMessageKey

public java.lang.String getSearchEmptyMessageKey()

isTabShowing

public boolean isTabShowing(java.lang.String tab)

isFirstTab

public boolean isFirstTab(java.lang.String tab)

doExecute

protected java.lang.String doExecute()
Overrides:
doExecute in class webwork.action.ActionSupport

doView

public java.lang.String doView()

setContentOnly

public void setContentOnly(boolean contentOnly)

setSearchContentOnly

public void setSearchContentOnly(boolean searchContentOnly)

isSearchContentOnly

public boolean isSearchContentOnly()

getFiltersWithSubscriptions

public java.util.List<SearchRequestDisplayBean> getFiltersWithSubscriptions()

getFiltersWithSubscriptionsCount

public int getFiltersWithSubscriptionsCount()

getFilterLinkRenderer

public FilterLinkRenderer getFilterLinkRenderer()


Copyright © 2002-2010 Atlassian. All Rights Reserved.