Enum Class PullRequestParticipantStatus

java.lang.Object
java.lang.Enum<PullRequestParticipantStatus>
com.atlassian.bitbucket.pull.PullRequestParticipantStatus
All Implemented Interfaces:
Serializable, Comparable<PullRequestParticipantStatus>, Constable

public enum PullRequestParticipantStatus extends Enum<PullRequestParticipantStatus>
Enumerates all the possible statuses a participant can have with regards to a pull request.
Since:
4.2
See Also:
  • Enum Constant Details

    • UNAPPROVED

      public static final PullRequestParticipantStatus UNAPPROVED
      Indicates that the participant has not finished reviewing the changes in the pull request.
    • NEEDS_WORK

      public static final PullRequestParticipantStatus NEEDS_WORK
      Indicates that the participant has finished reviewing the changes in the pull request. They have provided feedback which needs to be addressed before they can approve. As of Bitbucket 8.10, the frontend refers to this as "Requested changes" but the behaviour of this participant status remains identical to pre-8.10.
    • APPROVED

      public static final PullRequestParticipantStatus APPROVED
      Indicates that the reviewer has approved the changes in the pull request.
  • Method Details

    • values

      public static PullRequestParticipantStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PullRequestParticipantStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromId

      @Nonnull public static PullRequestParticipantStatus fromId(int id)
    • getId

      public int getId()
    • getWeight

      public int getWeight()
      Returns:
      the weight
      Since:
      4.4