Class FlagServiceImpl
java.lang.Object
com.atlassian.greenhopper.service.issue.flagging.FlagServiceImpl
- All Implemented Interfaces:
FlagService
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.greenhopper.service.issue.flagging.FlagService
FlagService.Result
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionflag
(com.atlassian.jira.user.ApplicationUser user, Collection<com.atlassian.jira.issue.Issue> issues, boolean flag) Flags / unflags issues according to the given parameter.isFlagged
(com.atlassian.jira.issue.Issue issue) Get the flagged value for the given issue.
-
Constructor Details
-
FlagServiceImpl
public FlagServiceImpl()
-
-
Method Details
-
flag
public ServiceOutcome<FlagService.Result> flag(com.atlassian.jira.user.ApplicationUser user, 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 interfaceFlagService
- Parameters:
user
- the actorissues
- the collection of issuesflag
-true
to flag,false
to unflag- Returns:
- a valid outcome containing the
FlagService.Result
object if all or some of the issues were succesfully updated, an invalid outcome if all the issues could not be updated. TheFlagService.Result
object contains a collection of issues that were successfully updated as well as anErrorCollection
that will contain some errors if some issues could not be updated successfully.
-
isFlagged
Description copied from interface:FlagService
Get the flagged value for the given issue.- Specified by:
isFlagged
in interfaceFlagService
- Parameters:
issue
- the target issue
-