com.atlassian.greenhopper.service
Interface CapacityService

All Known Implementing Classes:
CapacityServiceImpl

public interface CapacityService


Field Summary
static org.apache.log4j.Logger log
           
static java.lang.String SERVICE
           
 
Method Summary
 Marker compile(BoardWithMarkers board, WatchedField watchedField)
           
 Marker compile(BoardWithMarkers board, WatchedField watchedField, com.atlassian.jira.issue.Issue forcedPosition)
           
 Marker compile(BoardWithMarkers board, WatchedField watchedField, java.lang.String forcedValue)
           
 Capacity getCapacity(BoardWithCapacities board, WatchedField field)
          Retrieves the capacities of the specified board
 java.lang.String getCapacityMessage(BoardWithCapacities board, boolean forMax)
           
 java.util.Map<java.lang.String,java.util.Set<Marker>> getCompiledMarkers(BoardWithMarkers board)
           
 Capacity getDefaultCapacity(BoardWithCapacities board, WatchedField field)
          Retrieves the default capacities of the specified board based on the nature of the board
 java.util.Set<java.lang.String> getMakerIssueKeys(BoardWithMarkers board, WatchedField watchedField, boolean above)
           
 Marker getMarker(BoardWithMarkers board, WatchedField watchedField)
           
 boolean isMaxBusted(BoardWithCapacities board)
           
 boolean isMinBusted(BoardWithCapacities board)
           
 void removeCapacity(BoardWithCapacities board, WatchedField field)
          Removes the capacity
 void setCapacity(java.lang.String minCapacity, java.lang.String maxCapacity, BoardWithCapacities board, WatchedField field)
          Sets the minimum and maximum values of the specified board for a watchedField
 void setDefaultCapacity(java.lang.String minCapacity, java.lang.String maxCapacity, BoardWithCapacities board, WatchedField field)
          Sets the default minimum and maximum values of the specified board for a watchedField
 void toggleMarker(BoardWithMarkers board, WatchedField watchedField)
           
 

Field Detail

log

static final org.apache.log4j.Logger log

SERVICE

static final java.lang.String SERVICE
See Also:
Constant Field Values
Method Detail

getCapacity

Capacity getCapacity(BoardWithCapacities board,
                     WatchedField field)
Retrieves the capacities of the specified board

Parameters:
board -
field -
Returns:
the capacities of the specified board

setCapacity

void setCapacity(java.lang.String minCapacity,
                 java.lang.String maxCapacity,
                 BoardWithCapacities board,
                 WatchedField field)
                 throws GreenHopperException
Sets the minimum and maximum values of the specified board for a watchedField

Parameters:
minCapacity -
maxCapacity -
board -
field -
Throws:
GreenHopperException

getDefaultCapacity

Capacity getDefaultCapacity(BoardWithCapacities board,
                            WatchedField field)
Retrieves the default capacities of the specified board based on the nature of the board

Parameters:
board -
field -
Returns:
the default capacities of the specified board based on the nature of the board

setDefaultCapacity

void setDefaultCapacity(java.lang.String minCapacity,
                        java.lang.String maxCapacity,
                        BoardWithCapacities board,
                        WatchedField field)
                        throws GreenHopperException
Sets the default minimum and maximum values of the specified board for a watchedField

Parameters:
minCapacity -
maxCapacity -
board -
field -
Throws:
GreenHopperException

removeCapacity

void removeCapacity(BoardWithCapacities board,
                    WatchedField field)
Removes the capacity

Parameters:
board -
field -

isMaxBusted

boolean isMaxBusted(BoardWithCapacities board)

isMinBusted

boolean isMinBusted(BoardWithCapacities board)

getCapacityMessage

java.lang.String getCapacityMessage(BoardWithCapacities board,
                                    boolean forMax)

getMarker

Marker getMarker(BoardWithMarkers board,
                 WatchedField watchedField)

getCompiledMarkers

java.util.Map<java.lang.String,java.util.Set<Marker>> getCompiledMarkers(BoardWithMarkers board)

compile

Marker compile(BoardWithMarkers board,
               WatchedField watchedField)

compile

Marker compile(BoardWithMarkers board,
               WatchedField watchedField,
               com.atlassian.jira.issue.Issue forcedPosition)

compile

Marker compile(BoardWithMarkers board,
               WatchedField watchedField,
               java.lang.String forcedValue)

getMakerIssueKeys

java.util.Set<java.lang.String> getMakerIssueKeys(BoardWithMarkers board,
                                                  WatchedField watchedField,
                                                  boolean above)

toggleMarker

void toggleMarker(BoardWithMarkers board,
                  WatchedField watchedField)


Copyright © 2007-2012 Atlassian. All Rights Reserved.