com.atlassian.greenhopper.service.statistics
Class WatchedFieldServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.service.statistics.WatchedFieldServiceImpl
All Implemented Interfaces:
WatchedFieldService

@Service(value="gh-watchedFieldService")
public class WatchedFieldServiceImpl
extends java.lang.Object
implements WatchedFieldService

Encapsulates watched field information. Use this instead of going directly to the Configuration! Note regarding TempKeyGen: This will map the different views to the boardType the search should work on "" is VersionBoard (which is also used by the TaskBoard), the other two existing are ComponentBoard and AssigneeBoard currently


Field Summary
 
Fields inherited from interface com.atlassian.greenhopper.service.statistics.WatchedFieldService
SERVICE
 
Constructor Summary
WatchedFieldServiceImpl()
           
 
Method Summary
 ErrorCollection addWatchedField(com.atlassian.crowd.embedded.api.User user, ViewDefinition view, Configuration configuration, java.lang.String fieldId)
          Add a field to the watched fields.
 java.util.Set<IssueField> getAllAvailableWatchedFields(com.atlassian.crowd.embedded.api.User user, ViewDefinition view, Configuration configuration)
          Get all available watched fields for a given boardType and configuration Note that this method won't return IssueFields already contained in watched fields.
 WatchedField getWatchedField(com.atlassian.crowd.embedded.api.User user, ViewDefinition view, Configuration configuration, java.lang.String fieldId)
          Get a watched field given its field id
 java.util.Set<WatchedField> getWatchedFields(com.atlassian.crowd.embedded.api.User user, ViewDefinition view, Configuration configuration)
          Get the configured watched fields for a given boardType and configuration
 boolean isWatchedField(com.atlassian.crowd.embedded.api.User user, ViewDefinition view, Configuration configuration, IssueField issueField)
          Is the passed in IssueField a watched field?
 ErrorCollection removeWatchedField(com.atlassian.crowd.embedded.api.User user, ViewDefinition view, Configuration configuration, java.lang.String fieldId)
          Remove a field from the watched fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WatchedFieldServiceImpl

public WatchedFieldServiceImpl()
Method Detail

getAllAvailableWatchedFields

public java.util.Set<IssueField> getAllAvailableWatchedFields(com.atlassian.crowd.embedded.api.User user,
                                                              ViewDefinition view,
                                                              Configuration configuration)
Description copied from interface: WatchedFieldService
Get all available watched fields for a given boardType and configuration Note that this method won't return IssueFields already contained in watched fields.

Specified by:
getAllAvailableWatchedFields in interface WatchedFieldService

getWatchedFields

public java.util.Set<WatchedField> getWatchedFields(com.atlassian.crowd.embedded.api.User user,
                                                    ViewDefinition view,
                                                    Configuration configuration)
Description copied from interface: WatchedFieldService
Get the configured watched fields for a given boardType and configuration

Specified by:
getWatchedFields in interface WatchedFieldService

addWatchedField

public ErrorCollection addWatchedField(com.atlassian.crowd.embedded.api.User user,
                                       ViewDefinition view,
                                       Configuration configuration,
                                       java.lang.String fieldId)
Description copied from interface: WatchedFieldService
Add a field to the watched fields.

Specified by:
addWatchedField in interface WatchedFieldService

removeWatchedField

public ErrorCollection removeWatchedField(com.atlassian.crowd.embedded.api.User user,
                                          ViewDefinition view,
                                          Configuration configuration,
                                          java.lang.String fieldId)
Description copied from interface: WatchedFieldService
Remove a field from the watched fields.

Specified by:
removeWatchedField in interface WatchedFieldService

getWatchedField

public WatchedField getWatchedField(com.atlassian.crowd.embedded.api.User user,
                                    ViewDefinition view,
                                    Configuration configuration,
                                    java.lang.String fieldId)
Description copied from interface: WatchedFieldService
Get a watched field given its field id

Specified by:
getWatchedField in interface WatchedFieldService

isWatchedField

public boolean isWatchedField(com.atlassian.crowd.embedded.api.User user,
                              ViewDefinition view,
                              Configuration configuration,
                              IssueField issueField)
Is the passed in IssueField a watched field?

Specified by:
isWatchedField in interface WatchedFieldService


Copyright © 2007-2012 Atlassian. All Rights Reserved.