Class ProjectRapidViewServiceImpl

java.lang.Object
com.atlassian.greenhopper.service.rapid.ProjectRapidViewServiceImpl
All Implemented Interfaces:
ProjectRapidViewService

@ParametersAreNonnullByDefault public class ProjectRapidViewServiceImpl extends Object implements ProjectRapidViewService
  • Constructor Details

    • ProjectRapidViewServiceImpl

      public ProjectRapidViewServiceImpl()
  • Method Details

    • findRapidViewsByProject

      @Nonnull public ServiceOutcome<List<RapidView>> findRapidViewsByProject(@Nullable com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project)
      Description copied from interface: ProjectRapidViewService
      Returns a list of rapid views that contain an explicit reference to the given project.

      Views will be filtered down to those which the user can see.

      Specified by:
      findRapidViewsByProject in interface ProjectRapidViewService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      project - the project for which to retrieve matching rapid views.
      Returns:
      the matching rapid views
    • getRapidViewsByProjectSortedByProjectCount

      @Nonnull public ServiceOutcome<List<RapidView>> getRapidViewsByProjectSortedByProjectCount(@Nullable com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project)
      Description copied from interface: ProjectRapidViewService
      Returns a sorted list of rapid views that contain an explicit reference to the given project.

      Views will be filtered down to those which the user can see. Views will be sorted based on increasing number of projects in the query.

      Specified by:
      getRapidViewsByProjectSortedByProjectCount in interface ProjectRapidViewService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      project - the project for which to retrieve matching rapid views.
      Returns:
      the matching rapid views
    • findFirstRapidViewByProject

      @Nonnull public ServiceOutcome<RapidView> findFirstRapidViewByProject(@Nullable com.atlassian.jira.user.ApplicationUser user, @Nonnull com.atlassian.jira.project.Project project, @Nonnull Collator collator)
      Description copied from interface: ProjectRapidViewService
      Returns the first rapid view that contain an explicit reference to the given project (ordered ascending by 'NAME'.

      Views will be filtered down to those which the user can see.

      Specified by:
      findFirstRapidViewByProject in interface ProjectRapidViewService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      project - the project for which to retrieve the first matching rapid view.
      collator - instance of @Collator used for comparing views names
      Returns:
      the first matching rapid view
    • findProjectsByRapidView

      @Nonnull public ServiceOutcome<Set<com.atlassian.jira.project.Project>> findProjectsByRapidView(@Nullable com.atlassian.jira.user.ApplicationUser user, RapidView rapidView)
      Description copied from interface: ProjectRapidViewService
      Returns a set of projects that are referenced explicitly by the given rapid view.

      Only projects that the user can browse will be included.

      Specified by:
      findProjectsByRapidView in interface ProjectRapidViewService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      rapidView - the rapid view for which to retrieve matching projects.
      Returns:
      the matching projects
    • findProjectsByRapidView

      @Nonnull public ServiceOutcome<Page<com.atlassian.jira.project.Project>> findProjectsByRapidView(@Nullable com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, PageRequest pageRequest)
      Description copied from interface: ProjectRapidViewService
      Returns a page of projects sorted by name that are referenced explicitly by the given rapid view.

      Only projects that the user can browse will be included.

      Specified by:
      findProjectsByRapidView in interface ProjectRapidViewService
      Parameters:
      user - the user who is performing operation and whose permissions are checked. Null means anonymous access.
      rapidView - the rapid view for which to retrieve matching projects.
      pageRequest - information about the desired number of results and theirs offset.
      Returns:
      a page of matching projects.