Removing a reviewer from a review stage using the Java API

You can remove a reviewer from a review stage using the API.

// serviceClientFactory is the Service Client Factory 
Properties connectionProps = new Properties(); 
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, 
"jnp://localhost:1099"); 
           
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,ServiceClientFactoryProperties.DSC_EJB_PROTOCOL);          
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss"); 
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, 
"apink"); 
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, 
"password"); 
// Review ID 
String reviewId = "R-20100917-023543-293-4434"; 
// Stage Number (starting from 1) 
Integer stageNo = 1; 
// LC UM Domain of the Reviewer 
String domain = "Global Corp"; 
// LC UM Canonical name of the Reviewer 
String canonicalName = "apink"; 
ReviewCommentingAndApprovalServiceClient reviewCommentingAndApproval = new 
ReviewCommentingAndApprovalServiceClient(serviceClientFactory); 
reviewCommentingAndApproval.removeReviewer(reviewId, stageNo, domain, canonicalName);

// Ethnio survey code removed