[转]com.atlassian.greenhopper.service.issue.flagging


本文转自:https://docs.atlassian.com/jira-software/6.7.6/com/atlassian/greenhopper/service/issue/flagging/FlagService.html

com.atlassian.greenhopper.service.issue.flagging

Interface FlagService

  • All Known Implementing Classes:
    FlagServiceImpl


    public interface FlagService
    • ServiceOutcome flag(com.atlassian.jira.user.ApplicationUser user, Collection issues, boolean flag) Flags / unflags issues according to the given parameter. Boolean isFlagged(com.atlassian.jira.issue.Issue issue) Get the flagged value for the gifen issue.
    • ServiceOutcome flag(com.atlassian.jira.user.ApplicationUser user, Collection issues, boolean flag) Flags / unflags issues according to the given parameter.
      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
    Boolean isFlagged(com.atlassian.jira.issue.Issue issue) Get the flagged value for the gifen issue.
    Parameters:
    issue - the target issue