Class ViewJiraIssueForPlan

java.lang.Object
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, BuildableAware, LazyPaginationAware<LinkedJiraIssue>, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanReadSecurityAware, PlanAware, ProjectAware, ReturnUrlAware, 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 ViewJiraIssueForPlan extends BuildActionSupport implements LazyPaginationAware<LinkedJiraIssue>, PlanReadSecurityAware
See Also:
  • Constructor Details

    • ViewJiraIssueForPlan

      public ViewJiraIssueForPlan()
  • Method Details

    • execute

      public String execute() throws Exception
      Specified by:
      execute in interface com.opensymphony.xwork2.Action
      Overrides:
      execute in class com.opensymphony.xwork2.ActionSupport
      Throws:
      Exception
    • getNumberOfRelatedBuilds

      public int getNumberOfRelatedBuilds(String issueKey)
    • getPager

      public Pager<LinkedJiraIssue> getPager()
      Description copied from interface: LazyPaginationAware
      Freemarker views for LazyPaginationAware actions should iterate over pager.page.list
      Specified by:
      getPager in interface LazyPaginationAware<LinkedJiraIssue>
      Returns:
      Pager object
    • setPager

      public void setPager(Pager<LinkedJiraIssue> pager)
      Description copied from interface: LazyPaginationAware
      Used to inject pager by PaginationAwareInterceptor
      Specified by:
      setPager in interface LazyPaginationAware<LinkedJiraIssue>
      Parameters:
      pager - Pager object
    • getFilteredResultsList

      @NotNull public @NotNull List<LinkedJiraIssue> getFilteredResultsList(int firstResult, int maxResults)
      Description copied from interface: LazyPaginationAware
      Implementing actions should initialize and return up to maxResults items ranging from firstResult from the underlying list of uninitialized items
      Specified by:
      getFilteredResultsList in interface LazyPaginationAware<LinkedJiraIssue>
      Parameters:
      firstResult - index of first item
      maxResults - number of items to be returned
      Returns:
      range of initialized results from underlying full list of uninitialized items
    • getResultsCount

      public int getResultsCount()
      Description copied from interface: LazyPaginationAware
      Implementing actions should return a total number of items that are subject to pagination
      Specified by:
      getResultsCount in interface LazyPaginationAware<LinkedJiraIssue>
      Returns:
      number of items in the underlying list
    • requiresOAuthHandshake

      public boolean requiresOAuthHandshake()
    • setJiraIssueManager

      public void setJiraIssueManager(JiraIssueManager jiraIssueManager)
    • setBuildResultsSearcher

      public void setBuildResultsSearcher(JiraIssueResultsManager jiraIssueResultsManager)
    • getFilterController

      public FilterController getFilterController()
    • setFilterController

      public void setFilterController(FilterController filterController)
    • setBuildResultsFilterFactory

      public void setBuildResultsFilterFactory(BuildResultsFilterFactory buildResultsFilterFactory)
    • getCredentialsRequiredUrl

      public URI getCredentialsRequiredUrl()