public boolean updateImportTask ( int importJobId , int importTaskId , AbstractRESTEntity updateTaskEntity ) throws Exception { LOG . debug ( "Updating the import task " + importTaskId + " in job " + importJobId + " with " + updateTaskEntity ) ; Response httpResponse = HttpUtil . put ( this . addEndPoint ( importJobId + "/tasks/" + importTaskId ) , this . asJSON ( updateTaskEntity ) , ContentType . APPLICATION_JSON , this . username , this . password ) ; boolean success = httpResponse . getStatusCode ( ) . equals ( HttpStatus . NO_CONTENT ) ; if ( success ) { LOG . debug ( "Successfully updated the task " + importTaskId ) ; } else { LOG . error ( "Unknown error occured while updating the task " + importTaskId ) ; } return success ; }
Updates the given import task .