Examples of ReviewboardServiceImpl


Examples of com.taobao.eclipse.plugin.reviewboard.core.service.impl.ReviewboardServiceImpl

        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);
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.service.impl.ReviewboardServiceImpl

        this.selection = selection;
        this.unaddedResources = unaddedResources;
        this.statusMap = statusMap;
        this.resourcesSelectedByUser = resourcesSelectedByUser;
        this.reviewboardClient = reviewboardClient;
        this.reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
        initializeDefaultPageImageDescriptor();
    }
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.service.impl.ReviewboardServiceImpl

                }
                if( null == reviewboardClient ){
                    reviewboardClient = rbClientRepository.getClient( false, serverUrl,
                            txtUserId.getText().trim(), txtPassword.getText().trim(), CHARACTER_ENCODING );
                }
                IReviewboardService reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
                //验证用户名和密码是否正确
                boolean isSuccess = reviewboardService.validCredentials( txtUserId.getText().trim(), txtPassword.getText().trim(), null );
                if( !isSuccess ){
                    MessageDialog.openError( this.parent.getShell(),
                            RbCoreMessages.getString("ERROR_LABLE"),
                            RbCoreMessages.getString("ERROR_USERNAMEPASSWORD_1"));
                    return false;
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.service.impl.ReviewboardServiceImpl

                || null == clientData.getUserList() || clientData.getUserList().isEmpty() ){
            isClientDataNull = true;
        }
        //强制刷新RepositoryData
        if( isClientDataNull || refreshForce ){
            IReviewboardService reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
            boolean loginSuccess = reviewboardService.validCredentials(rbConfig.getUserId(), rbConfig.getPassword(), null);
            if( loginSuccess ){
                reviewboardService.updateRepositoryData(true, monitor);
                this.urlToClientMap.put(rbConfig.getServer(), reviewboardClient);
            }
        }
        return reviewboardClient;
    }
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.service.impl.ReviewboardServiceImpl

                || null == clientData.getUserList() || clientData.getUserList().isEmpty() ){
            isClientDataNull = true;
        }
        //强制刷新RepositoryData
        if( isClientDataNull || refreshForce ){
            IReviewboardService reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
            boolean loginSuccess = reviewboardService.validCredentials(userName, password, null);
            if( loginSuccess ){
                this.urlToClientMap.put(serverUrl, reviewboardClient);
                reviewboardService.updateRepositoryData(true, new NullProgressMonitor());
            }
        }
        return reviewboardClient;
    }
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.service.impl.ReviewboardServiceImpl

            RbConfig rbConfig = RbConfigReader.getServerConfig(null);
            if( null == rbConfig || null == rbConfig.getServer()){
                return ;
            }
            //强制刷新RepositoryData
            IReviewboardService reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
            boolean loginSuccess = reviewboardService.validCredentials(rbConfig.getUserId(), rbConfig.getPassword(), null);
            if( loginSuccess ){
                reviewboardService.updateRepositoryData(true, new NullProgressMonitor());
            }
        } catch (Exception e) {
        }
    }
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.