Pair<String, Long> certificate = _service.modify(layer, annotation); jsonResult.put("uuid", certificate.getFirst() ); jsonResult.put("timestamp", certificate.getSecond().toString() );
private void modify( AnnotationWrapper annotation ) { AnnotationData<?> oldAnnotation = annotation.clone(); AnnotationData<?> newAnnotation = editAnnotation( oldAnnotation ); try { long start = System.currentTimeMillis(); _service.modify( _layerId, newAnnotation ); long end = System.currentTimeMillis(); double time = ((end-start)/1000.0); annotation.update( newAnnotation ); LOGGER.debug( "Thread " + _name + " successfully modified " + newAnnotation.getUUID() + " in " + time + " sec" ); } catch (Exception e) { LOGGER.debug( "Thread " + _name + " unsuccessfully modified " + newAnnotation.getUUID() ); } }