|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.greenhopper.service.statistics.CapacityService2Impl
@Service(value="gh-capacityService2") public class CapacityService2Impl
Capacity service provides capacity objects for a given xproject/board
Field Summary |
---|
Fields inherited from interface com.atlassian.greenhopper.service.statistics.CapacityService2 |
---|
SERVICE |
Constructor Summary | |
---|---|
CapacityService2Impl()
|
Method Summary | |
---|---|
Capacities |
getCapacities(com.opensymphony.user.User user,
XProject xproject,
ViewDefinition view,
java.lang.String key,
ProjectConfiguration configuration)
Get the capacities object for a collection of watched fields. |
Capacity |
getCapacity(com.atlassian.jira.project.Project project,
ViewDefinition view,
java.lang.String key,
WatchedField watchedField)
Deprecated. |
Capacity |
getCapacity(XProject xproject,
ViewDefinition view,
java.lang.String key,
WatchedField watchedField)
Get the capacities object for a collection of watched fields. |
Capacities |
getDefaultCapacities(com.opensymphony.user.User user,
XProject xproject,
ViewDefinition view,
ProjectConfiguration configuration)
Get the default capacities object for a collection of watched fields. |
Capacity |
getDefaultCapacity(XProject xproject,
ViewDefinition view,
WatchedField watchedField)
Fetch a default Capacity object given a xproject |
ErrorCollection |
removeCapacity(com.opensymphony.user.User user,
XProject xproject,
ViewDefinition view,
java.lang.String key,
WatchedField watchedField)
Removes the capacity for the given parameters. |
ErrorCollection |
removeDefaultCapacity(com.opensymphony.user.User user,
XProject xproject,
ViewDefinition view,
WatchedField watchedField)
Removes the default capacity for a given xproject and boardType |
ErrorCollection |
setCapacity(com.opensymphony.user.User user,
XProject xproject,
ViewDefinition view,
java.lang.String key,
WatchedField watchedField,
Capacity capacity)
Set the capacity min/max values |
ErrorCollection |
setDefaultCapacity(com.opensymphony.user.User user,
XProject xproject,
ViewDefinition view,
WatchedField watchedField,
Capacity capacity)
Update the default capacity min/max values with the values currently set in the Capacity object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CapacityService2Impl()
Method Detail |
---|
public Capacity getCapacity(XProject xproject, ViewDefinition view, java.lang.String key, WatchedField watchedField)
getCapacity
in interface CapacityService2
xproject
- the xproject a Capacity is stored againstkey
- The key to find capacities for. This is normally the actual board id, but could also be the column id (task board) and would be null for the default capacities.watchedField
- the watched field to get capacity for
public Capacity getDefaultCapacity(XProject xproject, ViewDefinition view, WatchedField watchedField)
CapacityService2
getDefaultCapacity
in interface CapacityService2
xproject
- the xproject a Capacity is stored againstwatchedField
- the watched field to get capacity for
@Deprecated public Capacity getCapacity(com.atlassian.jira.project.Project project, ViewDefinition view, java.lang.String key, WatchedField watchedField)
getCapacity
in interface CapacityService2
project
- the project a Capacity is stored againstkey
- The key to find capacities for. This is normally the actual board id, but could also be the column id (task board) and would be
null for the default capacities. The Key passed in is the key used.watchedField
- the watched field to get capacity for
public ErrorCollection setCapacity(com.opensymphony.user.User user, XProject xproject, ViewDefinition view, java.lang.String key, WatchedField watchedField, Capacity capacity)
setCapacity
in interface CapacityService2
public ErrorCollection setDefaultCapacity(com.opensymphony.user.User user, XProject xproject, ViewDefinition view, WatchedField watchedField, Capacity capacity)
CapacityService2
setDefaultCapacity
in interface CapacityService2
public ErrorCollection removeCapacity(com.opensymphony.user.User user, XProject xproject, ViewDefinition view, java.lang.String key, WatchedField watchedField)
removeCapacity
in interface CapacityService2
public ErrorCollection removeDefaultCapacity(com.opensymphony.user.User user, XProject xproject, ViewDefinition view, WatchedField watchedField)
CapacityService2
removeDefaultCapacity
in interface CapacityService2
public Capacities getCapacities(com.opensymphony.user.User user, XProject xproject, ViewDefinition view, java.lang.String key, ProjectConfiguration configuration)
getCapacities
in interface CapacityService2
public Capacities getDefaultCapacities(com.opensymphony.user.User user, XProject xproject, ViewDefinition view, ProjectConfiguration configuration)
getDefaultCapacities
in interface CapacityService2
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |