Examples of ReviewboardClientData


Examples of com.taobao.eclipse.plugin.reviewboard.core.client.ReviewboardClientData

        this.resourcesSelectedByUser = resourcesSelectedByUser;
        this.startAndStopVersion = startAndStopVersion;
        setPageComplete(false);

        this.reviewboardClient = reviewboardClient;
        ReviewboardClientData clientData = reviewboardClient.getClientData();

        this.reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
       
        modelRepositoryList.clear();
        repositoryNameList.clear();
        modelRepositoryList.addAll(clientData.getRepositoryList());
        repositoryNameList = ModelUtil.getModelRepositoryNameList(modelRepositoryList);

        modelReviewGroupList.clear();
        reviewGroupNameList.clear();
        modelReviewGroupList.addAll(clientData.getReviewGroupList());
       
        reviewGroupNameList = ModelUtil.getModelReviewGroupNameList(modelReviewGroupList);
       
        modelUserList.clear();
        userNameList.clear();
        modelUserList.addAll(clientData.getUserList());
        userNameList = ModelUtil.getModelUserNameList(modelUserList);
    }
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.client.ReviewboardClientData

        if( null == rbConfig || null == rbConfig.getServer() ){
            return null;
        }
        IReviewboardClient reviewboardClient = this.urlToClientMap.get(rbConfig.getServer());
        boolean isClientDataNull = false;
        ReviewboardClientData clientData = null;
        if (null == reviewboardClient) {
            isClientDataNull = true;
            clientData = new ReviewboardClientData();
            reviewboardClient = new ReviewboardClientImpl(clientData, rbConfig.getServer(),
                    rbConfig.getUserId(), rbConfig.getPassword(), CHARACTER_ENCODING );
        }
        clientData = reviewboardClient.getClientData();
        if( null == clientData ||
                null == clientData.getReviewGroupList() || clientData.getReviewGroupList().isEmpty()
                || null == clientData.getRepositoryList() || clientData.getRepositoryList().isEmpty()
                || null == clientData.getUserList() || clientData.getUserList().isEmpty() ){
            isClientDataNull = true;
        }
        //强制刷新RepositoryData
        if( isClientDataNull || refreshForce ){
            IReviewboardService reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.client.ReviewboardClientData

    public synchronized IReviewboardClient getClient(boolean refreshForce, String serverUrl,
            String userName, String password, String charactorEncoding) {
        serverUrl =  ReviewboardUtil.norminateRepositoryUrl( serverUrl.trim() ) ;
        IReviewboardClient reviewboardClient = this.urlToClientMap.get(serverUrl);
        boolean isClientDataNull = false;
        ReviewboardClientData clientData = null;
        if (null == reviewboardClient) {
            isClientDataNull = true;
            clientData = new ReviewboardClientData();
            reviewboardClient = new ReviewboardClientImpl(clientData, serverUrl, userName, password, charactorEncoding);
        }
        clientData = reviewboardClient.getClientData();
        if( null == clientData.getReviewGroupList() || clientData.getReviewGroupList().isEmpty()
                || null == clientData.getRepositoryList() || clientData.getRepositoryList().isEmpty()
                || null == clientData.getUserList() || clientData.getUserList().isEmpty() ){
            isClientDataNull = true;
        }
        //强制刷新RepositoryData
        if( isClientDataNull || refreshForce ){
            IReviewboardService reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.