com.atlassian.greenhopper.service.rapid.view.color
Interface CardColorService

All Known Implementing Classes:
CardColorServiceImpl

public interface CardColorService

Provides card color configuration related functionality Most methods inhere are catered for the restful table REST api.


Method Summary
 ServiceOutcome<CardColor> add(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, CardColor cardColor)
          Adds a new card color
 ServiceOutcome<java.lang.Void> delete(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, long cardColorId)
          Delete a single card color
 ServiceOutcome<CardColor> get(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, long cardColorId)
          gets the card color with id cardColorId for rapid view with rapidViewId
 ServiceOutcome<java.util.List<CardColor>> getAll(com.atlassian.crowd.embedded.api.User user, RapidView rapidView)
          Get all Card Colors for a given Rapid View
 ServiceOutcome<java.util.List<CardColor>> getForStrategy(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, CardColorStrategy strategy)
          Get the card colors for a view and strategy
 ServiceOutcome<java.lang.Void> moveBefore(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, long cardColorId, long moveToCardColorId)
          Moves a card color before another one
 ServiceOutcome<java.lang.Void> moveLast(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, long cardColorId)
          Moves a card color to the last spot
 ServiceOutcome<java.util.List<CardColor>> set(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.List<CardColor> cardColors)
          Replaces all card colors for a given rapid view with the specified card colors (keeping the order in the list)
 ServiceOutcome<CardColor> update(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, CardColor cardColors)
          Updates a single card color for the given rapidview
 

Method Detail

getAll

ServiceOutcome<java.util.List<CardColor>> getAll(com.atlassian.crowd.embedded.api.User user,
                                                 RapidView rapidView)
Get all Card Colors for a given Rapid View


getForStrategy

ServiceOutcome<java.util.List<CardColor>> getForStrategy(com.atlassian.crowd.embedded.api.User user,
                                                         RapidView rapidView,
                                                         CardColorStrategy strategy)
Get the card colors for a view and strategy


get

ServiceOutcome<CardColor> get(com.atlassian.crowd.embedded.api.User user,
                              RapidView rapidView,
                              long cardColorId)
gets the card color with id cardColorId for rapid view with rapidViewId


add

ServiceOutcome<CardColor> add(com.atlassian.crowd.embedded.api.User user,
                              RapidView rapidView,
                              CardColor cardColor)
Adds a new card color


update

ServiceOutcome<CardColor> update(com.atlassian.crowd.embedded.api.User user,
                                 RapidView rapidView,
                                 CardColor cardColors)
Updates a single card color for the given rapidview


set

ServiceOutcome<java.util.List<CardColor>> set(com.atlassian.crowd.embedded.api.User user,
                                              RapidView rapidView,
                                              java.util.List<CardColor> cardColors)
Replaces all card colors for a given rapid view with the specified card colors (keeping the order in the list)


delete

ServiceOutcome<java.lang.Void> delete(com.atlassian.crowd.embedded.api.User user,
                                      RapidView rapidView,
                                      long cardColorId)
Delete a single card color


moveBefore

ServiceOutcome<java.lang.Void> moveBefore(com.atlassian.crowd.embedded.api.User user,
                                          RapidView rapidView,
                                          long cardColorId,
                                          long moveToCardColorId)
Moves a card color before another one


moveLast

ServiceOutcome<java.lang.Void> moveLast(com.atlassian.crowd.embedded.api.User user,
                                        RapidView rapidView,
                                        long cardColorId)
Moves a card color to the last spot



Copyright © 2007-2012 Atlassian. All Rights Reserved.