コード例 #1
0
  //    @Override
  public Response deleteCapture(final String sessionId, final String captureId) {
    if (captureId != null) {

      Annotation annotation = annotatorDao.getAnnotationById(Long.valueOf(captureId));
      annotatorDao.deleteAnnotation(annotation);
      return Response.ok().build();
    } else {
      throw new WebApplicationException(Response.Status.NOT_FOUND);
    }
  }