com.atlassian.greenhopper.service.rapid.view
Interface ColumnService

All Superinterfaces:
GreenHopperCache
All Known Implementing Classes:
ColumnServiceImpl

public interface ColumnService
extends GreenHopperCache


Nested Class Summary
static class ColumnService.ColumnProgressMap
          A convenient encapsulation of a map of each ColumnProgress to the set of Status objects it includes.
 
Method Summary
 ServiceOutcome<Column> addColumn(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, Column newColumn)
          Add a new column to the Rapid View.
 ServiceOutcome<Column> getColumn(java.lang.Long id)
           
 java.util.Map<Column,java.lang.Integer> getColumnPositions(RapidView rapidView)
           
 java.util.List<Column> getColumns(RapidView view)
          Returns the columns, in order, of this RapidView.
 java.util.Map<com.atlassian.jira.issue.status.Status,Column> getColumnsByStatus(RapidView view)
           
 java.util.Set<com.atlassian.jira.issue.status.Status> getMappedStatuses(RapidView view)
           
 java.util.List<com.atlassian.jira.issue.status.Status> getOrderedStatuses(RapidView view)
          Returns the statuses which are mapped to this RapidView in order of which they are mapped (left-most statuses are first.)
 ColumnService.ColumnProgressMap getProgressStatuses(RapidView view)
          Calculate the breakdown of Status mapped in the view to their respective ColumnProgress.
 java.util.List<Column> getValidColumns(RapidView view)
           
 void invalidate(RapidView view)
           
 ServiceOutcome<java.util.List<Column>> updateColumns(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.List<Column> newColumns)
           
 void validateColumns(java.util.List<Column> columns, ErrorCollection errors)
           
 
Methods inherited from interface com.atlassian.greenhopper.manager.GreenHopperCache
flushCache
 

Method Detail

getColumn

ServiceOutcome<Column> getColumn(java.lang.Long id)

getColumns

@NotNull
java.util.List<Column> getColumns(RapidView view)
Returns the columns, in order, of this RapidView.

Parameters:
view - the rapid view
Returns:
the columns

getProgressStatuses

@NotNull
ColumnService.ColumnProgressMap getProgressStatuses(RapidView view)
Calculate the breakdown of Status mapped in the view to their respective ColumnProgress.

Parameters:
view - the view
Returns:
the mapping of ColumnProgress to a set of Status.

getMappedStatuses

java.util.Set<com.atlassian.jira.issue.status.Status> getMappedStatuses(RapidView view)

getColumnsByStatus

java.util.Map<com.atlassian.jira.issue.status.Status,Column> getColumnsByStatus(RapidView view)

getValidColumns

java.util.List<Column> getValidColumns(RapidView view)

getOrderedStatuses

@NotNull
java.util.List<com.atlassian.jira.issue.status.Status> getOrderedStatuses(RapidView view)
Returns the statuses which are mapped to this RapidView in order of which they are mapped (left-most statuses are first.)

Parameters:
view - the rapid view
Returns:
the statuses

addColumn

@NotNull
ServiceOutcome<Column> addColumn(com.atlassian.crowd.embedded.api.User user,
                                         RapidView rapidView,
                                         Column newColumn)
Add a new column to the Rapid View. It will be added as the second-last column.

Parameters:
user - the user
rapidView - the rapid view
newColumn - a model of the new column
Returns:
the newly added column

updateColumns

@Transactional
ServiceOutcome<java.util.List<Column>> updateColumns(com.atlassian.crowd.embedded.api.User user,
                                                                   RapidView rapidView,
                                                                   java.util.List<Column> newColumns)

validateColumns

void validateColumns(java.util.List<Column> columns,
                     ErrorCollection errors)

getColumnPositions

java.util.Map<Column,java.lang.Integer> getColumnPositions(RapidView rapidView)

invalidate

void invalidate(RapidView view)


Copyright © 2007-2013 Atlassian. All Rights Reserved.