Search in sources :

Example 1 with AgreementInput

use of com.google.gerrit.extensions.api.accounts.AgreementInput in project gerrit by GerritCodeReview.

the class AccountApiImpl method signAgreement.

@Override
public void signAgreement(String agreementName) throws RestApiException {
    try {
        AgreementInput input = new AgreementInput();
        input.name = agreementName;
        putAgreement.apply(account, input);
    } catch (Exception e) {
        throw asRestApiException("Cannot sign agreement", e);
    }
}
Also used : AgreementInput(com.google.gerrit.extensions.api.accounts.AgreementInput) ApiUtil.asRestApiException(com.google.gerrit.server.api.ApiUtil.asRestApiException) RestApiException(com.google.gerrit.extensions.restapi.RestApiException)

Aggregations

AgreementInput (com.google.gerrit.extensions.api.accounts.AgreementInput)1 RestApiException (com.google.gerrit.extensions.restapi.RestApiException)1 ApiUtil.asRestApiException (com.google.gerrit.server.api.ApiUtil.asRestApiException)1