Package com.google.gerrit.extensions.api

Examples of com.google.gerrit.extensions.api.GerritApi


        accessGerrit(supplier, consumer, project, "Failed to delete draft comment.");
    }

    private boolean testConnection(GerritAuthData gerritAuthData) throws RestApiException {
        // we need to test with a temporary client with probably new (unsaved) credentials
        GerritApi tempClient = createClientWithCustomAuthData(gerritAuthData);
        if (gerritAuthData.isLoginAndPasswordAvailable()) {
            AccountInfo user = tempClient.accounts().self().get();
            return user != null;
        } else {
            tempClient.changes().query().withLimit(1).get();
            return true;
        }
    }
View Full Code Here

TOP

Related Classes of com.google.gerrit.extensions.api.GerritApi

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.