com.atlassian.greenhopper.service
Class CapacityServiceImpl
java.lang.Object
com.atlassian.greenhopper.service.AbstractService
com.atlassian.greenhopper.service.CapacityServiceImpl
- All Implemented Interfaces:
- CapacityService
@Service(value="gh-capacityService")
public class CapacityServiceImpl
- extends AbstractService
- implements CapacityService
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CapacityServiceImpl
public CapacityServiceImpl()
getCapacity
public Capacity getCapacity(BoardWithCapacities board,
WatchedField field)
- Description copied from interface:
CapacityService
- Retrieves the capacities of the specified board
- Specified by:
getCapacity
in interface CapacityService
- Returns:
- the capacities of the specified board
getDefaultCapacity
public Capacity getDefaultCapacity(BoardWithCapacities board,
WatchedField field)
- Description copied from interface:
CapacityService
- Retrieves the default capacities of the specified board based on the nature of the board
- Specified by:
getDefaultCapacity
in interface CapacityService
- Returns:
- the default capacities of the specified board based on the nature of the board
setDefaultCapacity
public void setDefaultCapacity(java.lang.String minCapacity,
java.lang.String maxCapacity,
BoardWithCapacities board,
WatchedField field)
throws GreenHopperException
- Description copied from interface:
CapacityService
- Sets the default minimum and maximum values of the specified board for a watchedField
- Specified by:
setDefaultCapacity
in interface CapacityService
- Throws:
GreenHopperException
setCapacity
public void setCapacity(java.lang.String minCapacity,
java.lang.String maxCapacity,
BoardWithCapacities board,
WatchedField field)
throws GreenHopperException
- Description copied from interface:
CapacityService
- Sets the minimum and maximum values of the specified board for a watchedField
- Specified by:
setCapacity
in interface CapacityService
- Throws:
GreenHopperException
removeCapacity
public void removeCapacity(BoardWithCapacities board,
WatchedField field)
- Description copied from interface:
CapacityService
- Removes the capacity
- Specified by:
removeCapacity
in interface CapacityService
isMaxBusted
public boolean isMaxBusted(BoardWithCapacities board)
- Specified by:
isMaxBusted
in interface CapacityService
isMinBusted
public boolean isMinBusted(BoardWithCapacities board)
- Specified by:
isMinBusted
in interface CapacityService
getCapacityMessage
public java.lang.String getCapacityMessage(BoardWithCapacities board,
boolean forMax)
- Specified by:
getCapacityMessage
in interface CapacityService
getMarker
public Marker getMarker(BoardWithMarkers board,
WatchedField watchedField)
- Specified by:
getMarker
in interface CapacityService
getCompiledMarkers
public java.util.Map<java.lang.String,java.util.Set<Marker>> getCompiledMarkers(BoardWithMarkers board)
- Specified by:
getCompiledMarkers
in interface CapacityService
compile
public Marker compile(BoardWithMarkers board,
WatchedField watchedField)
- Specified by:
compile
in interface CapacityService
compile
public Marker compile(BoardWithMarkers board,
WatchedField watchedField,
com.atlassian.jira.issue.Issue forcedPosition)
- Specified by:
compile
in interface CapacityService
compile
public Marker compile(BoardWithMarkers board,
WatchedField watchedField,
java.lang.String forcedValue)
- Specified by:
compile
in interface CapacityService
toggleMarker
public void toggleMarker(BoardWithMarkers board,
WatchedField watchedField)
- Specified by:
toggleMarker
in interface CapacityService
getMakerIssueKeys
public java.util.Set<java.lang.String> getMakerIssueKeys(BoardWithMarkers board,
WatchedField watchedField,
boolean above)
- Specified by:
getMakerIssueKeys
in interface CapacityService
Copyright © 2007-2012 Atlassian. All Rights Reserved.