|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.service.statistics.MarkerServiceImpl
@Service(value="gh-markerService") public class MarkerServiceImpl
Service for doing things to Marker
s. The persistence concept is ultra-lazy/fallback, meaning that Markers are fine living without any
record in the underlying propertyset. The objects handle that internally. TODO this must be changed since it's intransparent.
Field Summary |
---|
Fields inherited from interface com.atlassian.greenhopper.service.statistics.MarkerService |
---|
SERVICE |
Constructor Summary | |
---|---|
MarkerServiceImpl()
|
Method Summary | |
---|---|
void |
clearCache()
Clears out any internal caches. |
java.util.Map<java.lang.String,java.util.Set<Marker>> |
getCompiledMarkers(com.opensymphony.user.User user,
XProject xproject,
ViewDefinition view,
IssueField sortField,
java.lang.String key,
com.atlassian.query.Query query)
"compile" here means find the position of the marker in the issue list and link it to that issue, depending on the marker's configuration. |
Marker |
getMarker(XProject xproject,
ViewDefinition view,
java.lang.String key,
WatchedField watchedField)
|
boolean |
isMarkerEnabled(XProject xproject,
ViewDefinition view,
WatchedField watchedField)
Check if the marker is enabled, without having to load the whole marker. |
Marker |
setMarkerToIssue(com.opensymphony.user.User user,
XProject xproject,
ViewDefinition view,
java.lang.String key,
WatchedField watchedField,
com.atlassian.jira.issue.Issue forcedPosition,
com.atlassian.query.Query query,
ErrorCollection errorCollection)
In order to position the marker at a particular issue, it gets informed about its "forced position" and then pushed into the collector. |
Marker |
setMarkerToValue(com.opensymphony.user.User user,
XProject xproject,
ViewDefinition view,
java.lang.String key,
WatchedField watchedField,
java.lang.String forcedValue,
com.atlassian.query.Query query,
ErrorCollection errorCollection)
Set the marker to a particular value |
void |
toggleMarker(XProject xproject,
ViewDefinition view,
WatchedField watchedField)
Switch the marker on/off |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarkerServiceImpl()
Method Detail |
---|
public Marker getMarker(XProject xproject, ViewDefinition view, java.lang.String key, WatchedField watchedField)
getMarker
in interface MarkerService
key
- : The key is part of the propertySet key that is used to identify the record. This could be as simple as a boardId, but also include
a secondary filter (like the version on the assignee board).
public boolean isMarkerEnabled(XProject xproject, ViewDefinition view, WatchedField watchedField)
MarkerService
isMarkerEnabled
in interface MarkerService
public void toggleMarker(XProject xproject, ViewDefinition view, WatchedField watchedField)
MarkerService
toggleMarker
in interface MarkerService
public java.util.Map<java.lang.String,java.util.Set<Marker>> getCompiledMarkers(com.opensymphony.user.User user, XProject xproject, ViewDefinition view, IssueField sortField, java.lang.String key, com.atlassian.query.Query query)
getCompiledMarkers
in interface MarkerService
public Marker setMarkerToIssue(com.opensymphony.user.User user, XProject xproject, ViewDefinition view, java.lang.String key, WatchedField watchedField, com.atlassian.jira.issue.Issue forcedPosition, com.atlassian.query.Query query, ErrorCollection errorCollection)
setMarkerToIssue
in interface MarkerService
public Marker setMarkerToValue(com.opensymphony.user.User user, XProject xproject, ViewDefinition view, java.lang.String key, WatchedField watchedField, java.lang.String forcedValue, com.atlassian.query.Query query, ErrorCollection errorCollection)
MarkerService
setMarkerToValue
in interface MarkerService
public void clearCache()
MarkerService
clearCache
in interface MarkerService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |