com.atlassian.greenhopper.web.rapid.view
Class CardColorHelper

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.global.AbstractResultBuilder
          extended by com.atlassian.greenhopper.web.rapid.view.CardColorHelper

@Service
public class CardColorHelper
extends AbstractResultBuilder


Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.greenhopper.global.AbstractResultBuilder
AbstractResultBuilder.SuccessBuilder<T>
 
Field Summary
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Constructor Summary
CardColorHelper()
           
 
Method Summary
 ServiceOutcome<CardColorEntry> addCardColor(com.atlassian.crowd.embedded.api.User user, java.lang.Long rapidViewId, CardColorEntry editModel)
          Adds a card color to a given rapid view
 ServiceOutcome<java.lang.Void> deleteCardColor(com.atlassian.crowd.embedded.api.User user, java.lang.Long rapidViewId, java.lang.Long cardColorId)
          deletes card color with id cardColorId from rapid view with id rapidViewId
 CardColorEditModel getBaseCardColorEditModel(com.atlassian.crowd.embedded.api.User user, RapidView rapidView)
          Get the base card color edit model - does not contain the configured colors
 CardColorEditModel getBaseCardColorEditModel(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, CardColorStrategy cardColorStrategy)
          Get a base model for a given board and strategy
 ServiceOutcome<CardColorEntry> getCardColor(com.atlassian.crowd.embedded.api.User user, java.lang.Long rapidViewId, java.lang.Long cardColorId)
          gets the card color with id cardColorId in rapid view with id rapidViewId
 ServiceOutcome<CardColorEditModel> getColorModelForStrategy(com.atlassian.crowd.embedded.api.User user, long rapidViewId, java.lang.String cardColorStrategyId, boolean preloadValues)
          Update the swimlane strategy
 ServiceOutcome<java.lang.Void> moveCardColor(com.atlassian.crowd.embedded.api.User user, java.lang.Long rapidViewId, java.lang.Long cardColorId, EntryMoveModel moveModel)
          moves card color with id cardColorId in rapid view with id rapidViewId to position described in model
 ServiceOutcome<CardColorEntry> updateCardColor(com.atlassian.crowd.embedded.api.User user, java.lang.Long rapidViewId, java.lang.Long cardColorId, CardColorEntry editModel)
          update a given card color
 ServiceOutcome<RapidView> updateCardColorStrategy(com.atlassian.crowd.embedded.api.User user, long rapidViewId, java.lang.String cardColorStrategyId)
          Update the swimlane strategy
 
Methods inherited from class com.atlassian.greenhopper.global.AbstractResultBuilder
buildCombinedResult, buildErrorOnlyResult, buildResult, buildResult
 
Methods inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logDebug, logError, logException, logInfo, logTrace, logWarn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CardColorHelper

public CardColorHelper()
Method Detail

updateCardColorStrategy

public ServiceOutcome<RapidView> updateCardColorStrategy(com.atlassian.crowd.embedded.api.User user,
                                                         long rapidViewId,
                                                         java.lang.String cardColorStrategyId)
Update the swimlane strategy


getBaseCardColorEditModel

public CardColorEditModel getBaseCardColorEditModel(com.atlassian.crowd.embedded.api.User user,
                                                    RapidView rapidView)
Get the base card color edit model - does not contain the configured colors


getBaseCardColorEditModel

public CardColorEditModel getBaseCardColorEditModel(com.atlassian.crowd.embedded.api.User user,
                                                    RapidView rapidView,
                                                    CardColorStrategy cardColorStrategy)
Get a base model for a given board and strategy


getColorModelForStrategy

public ServiceOutcome<CardColorEditModel> getColorModelForStrategy(com.atlassian.crowd.embedded.api.User user,
                                                                   long rapidViewId,
                                                                   java.lang.String cardColorStrategyId,
                                                                   boolean preloadValues)
Update the swimlane strategy


updateCardColor

public ServiceOutcome<CardColorEntry> updateCardColor(com.atlassian.crowd.embedded.api.User user,
                                                      java.lang.Long rapidViewId,
                                                      java.lang.Long cardColorId,
                                                      CardColorEntry editModel)
update a given card color


addCardColor

public ServiceOutcome<CardColorEntry> addCardColor(com.atlassian.crowd.embedded.api.User user,
                                                   java.lang.Long rapidViewId,
                                                   CardColorEntry editModel)
Adds a card color to a given rapid view


getCardColor

public ServiceOutcome<CardColorEntry> getCardColor(com.atlassian.crowd.embedded.api.User user,
                                                   java.lang.Long rapidViewId,
                                                   java.lang.Long cardColorId)
gets the card color with id cardColorId in rapid view with id rapidViewId


deleteCardColor

public ServiceOutcome<java.lang.Void> deleteCardColor(com.atlassian.crowd.embedded.api.User user,
                                                      java.lang.Long rapidViewId,
                                                      java.lang.Long cardColorId)
deletes card color with id cardColorId from rapid view with id rapidViewId


moveCardColor

public ServiceOutcome<java.lang.Void> moveCardColor(com.atlassian.crowd.embedded.api.User user,
                                                    java.lang.Long rapidViewId,
                                                    java.lang.Long cardColorId,
                                                    EntryMoveModel moveModel)
moves card color with id cardColorId in rapid view with id rapidViewId to position described in model



Copyright © 2007-2012 Atlassian. All Rights Reserved.