Class FlagServiceImpl

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

@Service public class FlagServiceImpl extends Object implements FlagService
  • 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 interface FlagService
      Parameters:
      user - the actor
      issues - the collection of issues
      flag - 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. The FlagService.Result object contains a collection of issues that were successfully updated as well as an ErrorCollection that will contain some errors if some issues could not be updated successfully.
    • isFlagged

      public Boolean isFlagged(com.atlassian.jira.issue.Issue issue)
      Description copied from interface: FlagService
      Get the flagged value for the given issue.
      Specified by:
      isFlagged in interface FlagService
      Parameters:
      issue - the target issue