com.atlassian.greenhopper.service.issue.flagging
Class FlagServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.service.issue.flagging.FlagServiceImpl
All Implemented Interfaces:
FlagService

@Service
public class FlagServiceImpl
extends java.lang.Object
implements FlagService


Constructor Summary
FlagServiceImpl()
           
 
Method Summary
 ServiceOutcome<ErrorCollection> flag(com.atlassian.crowd.embedded.api.User user, java.util.Collection<com.atlassian.jira.issue.Issue> issues, boolean flag)
          Flags / unflags issues according to the given parameter.
 java.lang.Boolean isFlagged(com.atlassian.jira.issue.Issue issue)
          Get the flagged value for the gifen issue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlagServiceImpl

public FlagServiceImpl()
Method Detail

flag

public ServiceOutcome<ErrorCollection> flag(com.atlassian.crowd.embedded.api.User user,
                                            java.util.Collection<com.atlassian.jira.issue.Issue> issues,
                                            boolean flag)
Description copied from interface: FlagService
Flags / unflags issues according to the given parameter.

Specified by:
flag in interface FlagService
Parameters:
user - the actor
issues - the collection of issues
flag - true to flag, false to unflag
Returns:
a valid outcome with an empty ErrorCollection if all the issues were succesfully updated, a valid outcome with a non empty ErrorCollection if some of the issues were not updated, an invalid outcome if all the issues were rejected

isFlagged

public java.lang.Boolean isFlagged(com.atlassian.jira.issue.Issue issue)
Description copied from interface: FlagService
Get the flagged value for the gifen issue.

Specified by:
isFlagged in interface FlagService
Parameters:
issue - the target issue


Copyright © 2007-2014 Atlassian. All Rights Reserved.