Class ApprovalCopier.ApprovalCopyResult
java.lang.Object
com.google.gerrit.server.approval.ApprovalCopier.ApprovalCopyResult
- Enclosing class:
ApprovalCopier
Result for checking if an approval can be copied to the next patch set.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
canCopy()
Whether the approval can be copied to the next patch set.abstract String
Condition that forces copy based on server configurationabstract String
Condition that forces copy not to be made based on server configurationcreate
(String labelCopyCondition, boolean labelCopy, String copyEnforcement, boolean forcedCopy, String copyRestriction, boolean forcedNonCopy, Set<String> passingAtoms, Set<String> failingAtoms) abstract com.google.common.collect.ImmutableSet
<String> Lists the leaf predicates of the copy condition that are not fulfilled.abstract boolean
Whether the approval must be copied to the next patch set based on servers copyEnforcement.abstract boolean
Whether the approval must be not be copied to the next patch set based on servers copyRestriction.abstract boolean
Whether the approval can be copied to the next patch set based on label's copyCondition.abstract String
Label's copyConditionabstract com.google.common.collect.ImmutableSet
<String> Lists the leaf predicates of the copy condition that are fulfilled.
-
Constructor Details
-
ApprovalCopyResult
public ApprovalCopyResult()
-
-
Method Details
-
canCopy
public abstract boolean canCopy()Whether the approval can be copied to the next patch set. -
labelCopyCondition
Label's copyCondition -
labelCopy
public abstract boolean labelCopy()Whether the approval can be copied to the next patch set based on label's copyCondition. -
copyEnforcement
Condition that forces copy based on server configuration -
forcedCopy
public abstract boolean forcedCopy()Whether the approval must be copied to the next patch set based on servers copyEnforcement. -
copyRestriction
Condition that forces copy not to be made based on server configuration -
forcedNonCopy
public abstract boolean forcedNonCopy()Whether the approval must be not be copied to the next patch set based on servers copyRestriction. -
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
Empty if the label type is missing, if there is no copy condition or if the copy condition is not parseable.
-
failingAtoms
Lists the leaf predicates of the copy condition that are not fulfilled. SeepassingAtoms()
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
-
createEvaluationSkipped
-