com.atlassian.greenhopper.manager.color
Class CardColorManagerImpl

java.lang.Object
  extended by com.atlassian.greenhopper.manager.color.CardColorManagerImpl
All Implemented Interfaces:
CardColorManager, GreenHopperCache

@Service
public class CardColorManagerImpl
extends java.lang.Object
implements CardColorManager

Card color manager impl


Constructor Summary
CardColorManagerImpl()
           
 
Method Summary
 ServiceOutcome<CardColor> add(RapidView rapidView, CardColor cardColor)
           
 ServiceOutcome<java.util.List<CardColor>> copy(RapidView sourceRapidView, RapidView targetRapidView)
           
 ServiceOutcome<java.lang.Void> delete(RapidView rapidView, long cardColorId)
           
 void flushCache()
          Invoked when all caches in the plugin need to be cleared.
 ServiceOutcome<CardColor> get(RapidView rapidView, long cardColorId)
           
 ServiceOutcome<java.util.List<CardColor>> getAll(RapidView rapidView)
           
 void invalidate(RapidView view)
          invalidates the cache entry for a given RV, should only be called by other services.
 ServiceOutcome<java.lang.Void> moveAfter(RapidView rapidView, long cardColorId, java.lang.Long moveToCardColorId)
          Same as CardColorService.moveAfter(com.atlassian.crowd.embedded.api.User, com.atlassian.greenhopper.model.rapid.RapidView, long, Long) except this method applies no permission check
 ServiceOutcome<java.util.List<CardColor>> set(RapidView rapidView, java.util.List<CardColor> cardColors)
           
 ServiceOutcome<CardColor> update(RapidView rapidView, CardColor cardColor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CardColorManagerImpl

public CardColorManagerImpl()
Method Detail

getAll

public ServiceOutcome<java.util.List<CardColor>> getAll(RapidView rapidView)
Specified by:
getAll in interface CardColorManager

get

public ServiceOutcome<CardColor> get(RapidView rapidView,
                                     long cardColorId)
Specified by:
get in interface CardColorManager

add

public ServiceOutcome<CardColor> add(RapidView rapidView,
                                     CardColor cardColor)
Specified by:
add in interface CardColorManager

update

public ServiceOutcome<CardColor> update(RapidView rapidView,
                                        CardColor cardColor)
Specified by:
update in interface CardColorManager

set

public ServiceOutcome<java.util.List<CardColor>> set(RapidView rapidView,
                                                     java.util.List<CardColor> cardColors)
Specified by:
set in interface CardColorManager

delete

public ServiceOutcome<java.lang.Void> delete(RapidView rapidView,
                                             long cardColorId)
Specified by:
delete in interface CardColorManager

moveAfter

public ServiceOutcome<java.lang.Void> moveAfter(RapidView rapidView,
                                                long cardColorId,
                                                java.lang.Long moveToCardColorId)
Description copied from interface: CardColorManager
Same as CardColorService.moveAfter(com.atlassian.crowd.embedded.api.User, com.atlassian.greenhopper.model.rapid.RapidView, long, Long) except this method applies no permission check

Specified by:
moveAfter in interface CardColorManager
See Also:
CardColorService.moveAfter(com.atlassian.crowd.embedded.api.User, com.atlassian.greenhopper.model.rapid.RapidView, long, Long)

copy

public ServiceOutcome<java.util.List<CardColor>> copy(RapidView sourceRapidView,
                                                      RapidView targetRapidView)
Specified by:
copy in interface CardColorManager

invalidate

public void invalidate(RapidView view)
Description copied from interface: CardColorManager
invalidates the cache entry for a given RV, should only be called by other services. Ideally, the cache should be in a manager which lies between the service and dao

Specified by:
invalidate in interface CardColorManager

flushCache

public void flushCache()
Description copied from interface: GreenHopperCache
Invoked when all caches in the plugin need to be cleared.

Specified by:
flushCache in interface GreenHopperCache


Copyright © 2007-2013 Atlassian. All Rights Reserved.