Class QuickFilterAction

java.lang.Object
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, TabSelectionAware, com.atlassian.core.i18n.I18nTextProvider, com.atlassian.struts.TextProvider, com.atlassian.struts.ValidationAware, com.opensymphony.xwork.ValidationAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable

public class QuickFilterAction extends StarterAction
A Struts action that extends standard StarterAction by changing the logic for fetching build plans for dashboard. Instead of filtering by standard, per-user dashboard filter, plans are selected using quick filters.
See Also:
  • Constructor Details

    • QuickFilterAction

      public QuickFilterAction()
  • Method Details

    • validate

      public void validate()
      Specified by:
      validate in interface com.opensymphony.xwork2.Validateable
      Overrides:
      validate in class com.opensymphony.xwork2.ActionSupport
    • toggle

      @NotNull public @NotNull String toggle()
    • getBuildPlansForDashboard

      @NotNull protected @NotNull List<ImmutableTopLevelPlan> getBuildPlansForDashboard()
      Fetches build plans for dashboard and filters them by quick filters for this request.
      Overrides:
      getBuildPlansForDashboard in class StarterAction
      Returns:
      list of top level plans filtered by this request quick filters
    • isAnyQuickFilterActive

      public boolean isAnyQuickFilterActive()
      Overrides:
      isAnyQuickFilterActive in class StarterAction
    • isQuickFilterActive

      public boolean isQuickFilterActive(long quickFilterId)
      Overrides:
      isQuickFilterActive in class StarterAction
    • getFilterIds

      @NotNull public @NotNull List<Long> getFilterIds()
    • setFilterIds

      public void setFilterIds(@Nullable @Nullable Collection<Long> filterIds)