com.atlassian.greenhopper.service.rapid.view.color
Class CardColorServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.service.rapid.view.color.CardColorServiceImpl
All Implemented Interfaces:
CardColorService

@Service
public class CardColorServiceImpl
extends java.lang.Object
implements CardColorService

Implementation of CardColorService


Constructor Summary
CardColorServiceImpl()
           
 
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 quick filter
 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> moveAfter(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, long cardColorId, java.lang.Long moveToCardColorId)
          Moves a card color after another one
 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 cardColor)
          Updates a single card color for the given rapidview
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CardColorServiceImpl

public CardColorServiceImpl()
Method Detail

getAll

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

Specified by:
getAll in interface CardColorService

getForStrategy

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

Specified by:
getForStrategy in interface CardColorService

get

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

Specified by:
get in interface CardColorService

add

public ServiceOutcome<CardColor> add(com.atlassian.crowd.embedded.api.User user,
                                     RapidView rapidView,
                                     CardColor cardColor)
Description copied from interface: CardColorService
Adds a new card color

Specified by:
add in interface CardColorService

update

public ServiceOutcome<CardColor> update(com.atlassian.crowd.embedded.api.User user,
                                        RapidView rapidView,
                                        CardColor cardColor)
Description copied from interface: CardColorService
Updates a single card color for the given rapidview

Specified by:
update in interface CardColorService

set

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

Specified by:
set in interface CardColorService

delete

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

Specified by:
delete in interface CardColorService

moveAfter

public ServiceOutcome<java.lang.Void> moveAfter(com.atlassian.crowd.embedded.api.User user,
                                                RapidView rapidView,
                                                long cardColorId,
                                                java.lang.Long moveToCardColorId)
Description copied from interface: CardColorService
Moves a card color after another one

Specified by:
moveAfter in interface CardColorService
Parameters:
user - the user doing the move
rapidView - the rapidView the card color applies to
cardColorId - the id of the card color being moved
moveToCardColorId - the id of the card to move the cardColor after. If null it will be moved to the start


Copyright © 2007-2012 Atlassian. All Rights Reserved.