Class RapidViewCreationServiceImpl
java.lang.Object
com.atlassian.greenhopper.api.rapid.view.RapidViewCreationServiceImpl
- All Implemented Interfaces:
RapidViewCreationService
Default implementation of RapidViewCreationService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateNewRapidView
(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)
-
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 interfaceRapidViewCreationService
- Parameters:
user
- the user creating the rapid viewname
- the name of the new rapid viewfilterId
- the id of the filter to be used by the new rapid viewerrors
- 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 interfaceRapidViewCreationService
- Parameters:
user
- the user editing the rapid viewrapidViewId
- id of the rapid view to change status mappings forcolumns
- a list of Column objects representing the mappings of a column in the rapid viewerrors
- 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 interfaceRapidViewCreationService
- Parameters:
user
- the user editing the rapid viewrapidViewId
- id of the rapid view to change the quick filters forquickFilters
- a list of QuickFilter objects representing the new quick filters for the rapid viewerrors
- 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 interfaceRapidViewCreationService
- Parameters:
user
- the user editing the rapid viewrapidViewId
- id of the rapid view to change the swimlanes forswimlanes
- a list of Swimlane objects representing the new swimlanes. The default swimlane will be added automaticallyerrors
- 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 interfaceRapidViewCreationService
- Parameters:
user
- the user editing the rapid viewrapidViewId
- id of the rapid view to change statistics field forstatisticsField
- the StatisticsFieldConfig to set the rapid view to. Currently only supports issue count or no statistics field. more fields will be supported in the futureerrors
- 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 interfaceRapidViewCreationService
- Parameters:
user
- the user creating the rapid viewname
- the name of the new rapid viewfilterId
- the id of the filter to be used by the new rapid viewerrors
- 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 interfaceRapidViewCreationService
- Parameters:
user
- the user editing the rapid viewrapidViewId
- id of the rapid view to change status mappings forcolumns
- a list of Column objects representing the mappings of a column in the rapid viewerrors
- 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 interfaceRapidViewCreationService
- Parameters:
user
- the user editing the rapid viewrapidViewId
- id of the rapid view to change the quick filters forquickFilters
- a list of QuickFilter objects representing the new quick filters for the rapid viewerrors
- 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 interfaceRapidViewCreationService
- Parameters:
user
- the user editing the rapid viewrapidViewId
- id of the rapid view to change the swimlanes forswimlanes
- a list of Swimlane objects representing the new swimlanes. The default swimlane will be added automaticallyerrors
- 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 interfaceRapidViewCreationService
- Parameters:
user
- the user editing the rapid viewrapidViewId
- id of the rapid view to change statistics field forstatisticsField
- the StatisticsFieldConfig to set the rapid view to. Currently only supports issue count or no statistics field. more fields will be supported in the futureerrors
- an ErrorCollection to be filled on error
-