Extending the duration of a staging using the Java API

The following example shows how to extend duration of a review for a stage.

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"); 
 
ServiceClientFactory serviceClientFactory = 
ServiceClientFactory.createInstance(connectionProps); 
// Review ID 
String reviewId = "R-20100917-023543-293-4434"; 
// Stage Number (starting from 1) 
Integer stageNo = 1; 
// New Duration Value 
Integer duration = 2; 
// Duration UNIT, one of DAYS, MINUTES, HOURS, BUSINESS_DAYS 
String durationUnit = "DAYS"; 
ReviewCommentingAndApprovalServiceClient reviewCommentingAndApproval = new 
ReviewCommentingAndApprovalServiceClient(serviceClientFactory); 
reviewCommentingAndApproval.updateReviewStageDuration(reviewId, stageNo, duration, durationUnit);

// Ethnio survey code removed