Class LabelRemovalPermission.WithValue

java.lang.Object
com.google.gerrit.server.permissions.AbstractLabelPermission.WithValue
com.google.gerrit.server.permissions.LabelRemovalPermission.WithValue
All Implemented Interfaces:
GerritPermission, ChangePermissionOrLabel
Enclosing class:
LabelRemovalPermission

public static class LabelRemovalPermission.WithValue extends AbstractLabelPermission.WithValue
A LabelRemovalPermission at a specific value.
  • Constructor Details

    • WithValue

      public WithValue(LabelType type, LabelValue value)
      Construct a reference to a label removal at a specific value.
      Parameters:
      type - description of the label.
      value - numeric score assigned to the label.
    • WithValue

      public WithValue(LabelType type, short value)
      Construct a reference to a label removal at a specific value.
      Parameters:
      type - description of the label.
      value - numeric score assigned to the label.
    • WithValue

      public WithValue(String name, short value)
      Construct a reference to a label removal at a specific value.
      Parameters:
      name - name of the label, e.g. "Code-Review" or "Verified".
      value - numeric score assigned to the label.
    • WithValue

      public WithValue(LabelVote label)
      Construct a reference to a label removal at a specific value.
      Parameters:
      label - label name and vote.
  • Method Details