Class ApprovalCopier.Result.PatchSetApprovalData

java.lang.Object
com.google.gerrit.server.approval.ApprovalCopier.Result.PatchSetApprovalData
Enclosing class:
ApprovalCopier.Result

public abstract static class ApprovalCopier.Result.PatchSetApprovalData extends Object
A PatchSetApproval with information about which atoms of the copy condition are passing/failing.
  • Constructor Details

    • PatchSetApprovalData

      public PatchSetApprovalData()
  • Method Details

    • patchSetApproval

      public abstract PatchSetApproval patchSetApproval()
      The approval.
    • passingAtoms

      public abstract com.google.common.collect.ImmutableSet<String> passingAtoms()
      Lists the leaf predicates of the copy condition that are fulfilled.

      Example: The expression

       changekind:TRIVIAL_REBASE OR is:MIN
       
      has two leaf predicates:
      • changekind:TRIVIAL_REBASE
      • is:MIN
      This method will return the leaf predicates that are fulfilled, for example if only the first predicate is fulfilled, the returned list will be equal to ["changekind:TRIVIAL_REBASE"].

      Empty if the label type is missing, if there is no copy condition or if the copy condition is not parseable.

    • failingAtoms

      public abstract com.google.common.collect.ImmutableSet<String> failingAtoms()
      Lists the leaf predicates of the copy condition that are not fulfilled. See passingAtoms() for more details.

      Empty if the label type is missing, if there is no copy condition or if the copy condition is not parseable.

    • create

      public static ApprovalCopier.Result.PatchSetApprovalData create(PatchSetApproval approval, com.google.common.collect.ImmutableSet<String> passingAtoms, com.google.common.collect.ImmutableSet<String> failingAtoms)