Class CardColorHelper
java.lang.Object
com.atlassian.greenhopper.web.rapid.view.CardColorHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCardColor
(com.atlassian.jira.user.ApplicationUser user, Long rapidViewId, CardColorEntry editModel) Adds a card color to a given rapid viewdeleteCardColor
(com.atlassian.jira.user.ApplicationUser user, Long rapidViewId, Long cardColorId) deletes card color with id cardColorId from rapid view with id rapidViewIdgetBaseCardColorEditModel
(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Get the base card color edit model - does not contain the configured colorsgetBaseCardColorEditModel
(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, CardColorStrategy cardColorStrategy) Get a base model for a given board and strategygetCardColor
(com.atlassian.jira.user.ApplicationUser user, Long rapidViewId, Long cardColorId) gets the card color with id cardColorId in rapid view with id rapidViewIdgetColorModelForStrategy
(com.atlassian.jira.user.ApplicationUser user, long rapidViewId, String cardColorStrategyId, boolean preloadValues) Update the swimlane strategymoveCardColor
(com.atlassian.jira.user.ApplicationUser user, Long rapidViewId, Long cardColorId, EntryMoveModel moveModel) moves card color with id cardColorId in rapid view with id rapidViewId to position described in modelupdateCardColor
(com.atlassian.jira.user.ApplicationUser user, Long rapidViewId, Long cardColorId, CardColorEntry editModel) update a given card colorupdateCardColorStrategy
(com.atlassian.jira.user.ApplicationUser user, long rapidViewId, String cardColorStrategyId) Update the swimlane strategy
-
Constructor Details
-
CardColorHelper
public CardColorHelper()
-
-
Method Details
-
updateCardColorStrategy
public ServiceOutcome<RapidView> updateCardColorStrategy(com.atlassian.jira.user.ApplicationUser user, long rapidViewId, String cardColorStrategyId) Update the swimlane strategy -
getBaseCardColorEditModel
public CardColorEditModel getBaseCardColorEditModel(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Get the base card color edit model - does not contain the configured colors -
getBaseCardColorEditModel
public CardColorEditModel getBaseCardColorEditModel(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, CardColorStrategy cardColorStrategy) Get a base model for a given board and strategy -
getColorModelForStrategy
public ServiceOutcome<CardColorEditModel> getColorModelForStrategy(com.atlassian.jira.user.ApplicationUser user, long rapidViewId, String cardColorStrategyId, boolean preloadValues) Update the swimlane strategy -
updateCardColor
public ServiceOutcome<CardColorEntry> updateCardColor(com.atlassian.jira.user.ApplicationUser user, Long rapidViewId, Long cardColorId, CardColorEntry editModel) update a given card color -
addCardColor
public ServiceOutcome<CardColorEntry> addCardColor(com.atlassian.jira.user.ApplicationUser user, Long rapidViewId, CardColorEntry editModel) Adds a card color to a given rapid view -
getCardColor
public ServiceOutcome<CardColorEntry> getCardColor(com.atlassian.jira.user.ApplicationUser user, Long rapidViewId, Long cardColorId) gets the card color with id cardColorId in rapid view with id rapidViewId -
deleteCardColor
public ServiceResult deleteCardColor(com.atlassian.jira.user.ApplicationUser user, Long rapidViewId, Long cardColorId) deletes card color with id cardColorId from rapid view with id rapidViewId -
moveCardColor
public ServiceResult moveCardColor(com.atlassian.jira.user.ApplicationUser user, Long rapidViewId, Long cardColorId, EntryMoveModel moveModel) moves card color with id cardColorId in rapid view with id rapidViewId to position described in model
-