Class RapidViewCreationServiceImpl

java.lang.Object
com.atlassian.greenhopper.api.rapid.view.RapidViewCreationServiceImpl
All Implemented Interfaces:
RapidViewCreationService

public class RapidViewCreationServiceImpl extends Object implements RapidViewCreationService
Default implementation of RapidViewCreationService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createNewRapidView(com.atlassian.crowd.embedded.api.User user, String name, long filterId, com.atlassian.jira.util.ErrorCollection errors)
    Deprecated.
    since v7.0.
    createNewRapidView(com.atlassian.jira.user.ApplicationUser user, String name, long filterId, com.atlassian.jira.util.ErrorCollection errors)
    Creates a new rapid view with default column mappings, swimlanes and quick filters.
    void
    setQuickFilters(com.atlassian.crowd.embedded.api.User user, long rapidViewId, List<QuickFilter> quickFilters, com.atlassian.jira.util.ErrorCollection errors)
    Deprecated.
    since v7.0.
    void
    setQuickFilters(com.atlassian.jira.user.ApplicationUser user, long rapidViewId, List<QuickFilter> quickFilters, com.atlassian.jira.util.ErrorCollection errors)
     
    void
    setStatisticsField(com.atlassian.crowd.embedded.api.User user, long rapidViewId, StatisticsField statisticsField, com.atlassian.jira.util.ErrorCollection errors)
    Deprecated.
    since v7.0.
    void
    setStatisticsField(com.atlassian.jira.user.ApplicationUser user, long rapidViewId, StatisticsField statisticsField, com.atlassian.jira.util.ErrorCollection errors)
     
    void
    setStatusMappings(com.atlassian.crowd.embedded.api.User user, long rapidViewId, List<Column> columns, com.atlassian.jira.util.ErrorCollection errors)
    Deprecated.
    since v7.0.
    void
    setStatusMappings(com.atlassian.jira.user.ApplicationUser user, long rapidViewId, List<Column> columns, com.atlassian.jira.util.ErrorCollection errors)
     
    void
    setSwimlanes(com.atlassian.crowd.embedded.api.User user, long rapidViewId, List<Swimlane> swimlanes, com.atlassian.jira.util.ErrorCollection errors)
    Deprecated.
    void
    setSwimlanes(com.atlassian.jira.user.ApplicationUser user, long rapidViewId, List<Swimlane> swimlanes, com.atlassian.jira.util.ErrorCollection errors)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RapidViewCreationServiceImpl

      public RapidViewCreationServiceImpl()
  • Method Details

    • createNewRapidView

      @Deprecated public Long createNewRapidView(com.atlassian.crowd.embedded.api.User user, String name, long filterId, com.atlassian.jira.util.ErrorCollection errors)
      Deprecated.
      since v7.0.
      Description copied from interface: RapidViewCreationService
      Creates a new rapid view with default column mappings, swimlanes and quick filters.
      Specified by:
      createNewRapidView in interface RapidViewCreationService
      Parameters:
      user - the user creating the rapid view
      name - the name of the new rapid view
      filterId - the id of the filter to be used by the new rapid view
      errors - an ErrorCollection to be filled on error
      Returns:
      the id of the new rapid view or null in case of error, in which case errors is non-empty.
    • setStatusMappings

      @Deprecated public void setStatusMappings(com.atlassian.crowd.embedded.api.User user, long rapidViewId, List<Column> columns, com.atlassian.jira.util.ErrorCollection errors)
      Deprecated.
      since v7.0.
      Specified by:
      setStatusMappings in interface RapidViewCreationService
      Parameters:
      user - the user editing the rapid view
      rapidViewId - id of the rapid view to change status mappings for
      columns - a list of Column objects representing the mappings of a column in the rapid view
      errors - an ErrorCollection to be filled on error
    • setQuickFilters

      @Deprecated public void setQuickFilters(com.atlassian.crowd.embedded.api.User user, long rapidViewId, List<QuickFilter> quickFilters, com.atlassian.jira.util.ErrorCollection errors)
      Deprecated.
      since v7.0.
      Specified by:
      setQuickFilters in interface RapidViewCreationService
      Parameters:
      user - the user editing the rapid view
      rapidViewId - id of the rapid view to change the quick filters for
      quickFilters - a list of QuickFilter objects representing the new quick filters for the rapid view
      errors - an ErrorCollection to be filled on error
    • setSwimlanes

      @Deprecated public void setSwimlanes(com.atlassian.crowd.embedded.api.User user, long rapidViewId, List<Swimlane> swimlanes, com.atlassian.jira.util.ErrorCollection errors)
      Deprecated.
      Specified by:
      setSwimlanes in interface RapidViewCreationService
      Parameters:
      user - the user editing the rapid view
      rapidViewId - id of the rapid view to change the swimlanes for
      swimlanes - a list of Swimlane objects representing the new swimlanes. The default swimlane will be added automatically
      errors - an ErrorCollection to be filled on error
    • setStatisticsField

      @Deprecated public void setStatisticsField(com.atlassian.crowd.embedded.api.User user, long rapidViewId, StatisticsField statisticsField, com.atlassian.jira.util.ErrorCollection errors)
      Deprecated.
      since v7.0.
      Specified by:
      setStatisticsField in interface RapidViewCreationService
      Parameters:
      user - the user editing the rapid view
      rapidViewId - id of the rapid view to change statistics field for
      statisticsField - the StatisticsFieldConfig to set the rapid view to. Currently only supports issue count or no statistics field. more fields will be supported in the future
      errors - an ErrorCollection to be filled on error
    • createNewRapidView

      public Long createNewRapidView(com.atlassian.jira.user.ApplicationUser user, String name, long filterId, com.atlassian.jira.util.ErrorCollection errors)
      Description copied from interface: RapidViewCreationService
      Creates a new rapid view with default column mappings, swimlanes and quick filters.
      Specified by:
      createNewRapidView in interface RapidViewCreationService
      Parameters:
      user - the user creating the rapid view
      name - the name of the new rapid view
      filterId - the id of the filter to be used by the new rapid view
      errors - an ErrorCollection to be filled on error
      Returns:
      the id of the new rapid view or null in case of error, in which case errors is non-empty.
    • setStatusMappings

      public void setStatusMappings(com.atlassian.jira.user.ApplicationUser user, long rapidViewId, List<Column> columns, com.atlassian.jira.util.ErrorCollection errors)
      Specified by:
      setStatusMappings in interface RapidViewCreationService
      Parameters:
      user - the user editing the rapid view
      rapidViewId - id of the rapid view to change status mappings for
      columns - a list of Column objects representing the mappings of a column in the rapid view
      errors - an ErrorCollection to be filled on error
    • setQuickFilters

      public void setQuickFilters(com.atlassian.jira.user.ApplicationUser user, long rapidViewId, List<QuickFilter> quickFilters, com.atlassian.jira.util.ErrorCollection errors)
      Specified by:
      setQuickFilters in interface RapidViewCreationService
      Parameters:
      user - the user editing the rapid view
      rapidViewId - id of the rapid view to change the quick filters for
      quickFilters - a list of QuickFilter objects representing the new quick filters for the rapid view
      errors - an ErrorCollection to be filled on error
    • setSwimlanes

      public void setSwimlanes(com.atlassian.jira.user.ApplicationUser user, long rapidViewId, List<Swimlane> swimlanes, com.atlassian.jira.util.ErrorCollection errors)
      Specified by:
      setSwimlanes in interface RapidViewCreationService
      Parameters:
      user - the user editing the rapid view
      rapidViewId - id of the rapid view to change the swimlanes for
      swimlanes - a list of Swimlane objects representing the new swimlanes. The default swimlane will be added automatically
      errors - an ErrorCollection to be filled on error
    • setStatisticsField

      public void setStatisticsField(com.atlassian.jira.user.ApplicationUser user, long rapidViewId, StatisticsField statisticsField, com.atlassian.jira.util.ErrorCollection errors)
      Specified by:
      setStatisticsField in interface RapidViewCreationService
      Parameters:
      user - the user editing the rapid view
      rapidViewId - id of the rapid view to change statistics field for
      statisticsField - the StatisticsFieldConfig to set the rapid view to. Currently only supports issue count or no statistics field. more fields will be supported in the future
      errors - an ErrorCollection to be filled on error