Package com.google.gerrit.server.git
Class LabelNormalizer
- java.lang.Object
- 
- com.google.gerrit.server.git.LabelNormalizer
 
- 
 public class LabelNormalizer extends Object Normalizes votes on labels according to project config.Votes are recorded in the database for a user based on the state of the project at that time: what labels are defined for the project. The label definition can change between the time a vote is originally made and a later point, for example when a change is submitted. This class normalizes old votes against current project configuration. 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classLabelNormalizer.Result
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description LabelNormalizer.Resultnormalize(ChangeNotes notes, CurrentUser user, Collection<PatchSetApproval> approvals)LabelNormalizer.Resultnormalize(ChangeNotes notes, Collection<PatchSetApproval> approvals)
 
- 
- 
- 
Method Detail- 
normalizepublic LabelNormalizer.Result normalize(ChangeNotes notes, Collection<PatchSetApproval> approvals) throws com.google.gwtorm.server.OrmException, IOException - Parameters:
- notes- change containing the given approvals.
- approvals- list of approvals.
- Returns:
- copies of approvals normalized to the defined ranges for the label type. Approvals for unknown labels are not included in the output.
- Throws:
- com.google.gwtorm.server.OrmException
- IOException
 
 - 
normalizepublic LabelNormalizer.Result normalize(ChangeNotes notes, CurrentUser user, Collection<PatchSetApproval> approvals) throws IOException - Parameters:
- notes- change notes containing the given approvals.
- user- current user.
- approvals- list of approvals.
- Returns:
- copies of approvals normalized to the defined ranges for the label type. Approvals for unknown labels are not included in the output.
- Throws:
- IOException
 
 
- 
 
-