Class RefOperationValidators
java.lang.Object
com.google.gerrit.server.git.validators.RefOperationValidators
Collection of validation listeners that are called before a ref update is performed with the
command to be run. This is called from the git push path as well as Gerrit's handlers for
creating or deleting refs. Calls out to
RefOperationValidationListener provided by
plugins.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.jgit.transport.ReceiveCommandgetCommand(org.eclipse.jgit.lib.RefUpdate update, org.eclipse.jgit.transport.ReceiveCommand.Type type) Returns informational validation messages and throws aRefOperationValidationExceptionwhen the first validator fails.
-
Method Details
-
getCommand
public static org.eclipse.jgit.transport.ReceiveCommand getCommand(org.eclipse.jgit.lib.RefUpdate update, org.eclipse.jgit.transport.ReceiveCommand.Type type) -
validateForRefOperation
@CanIgnoreReturnValue public List<ValidationMessage> validateForRefOperation() throws RefOperationValidationExceptionReturns informational validation messages and throws aRefOperationValidationExceptionwhen the first validator fails. Will not process any more validators after the first failure was encountered.- Throws:
RefOperationValidationException
-