예제 #1
0
 /**
  * Return the number of track list persisted
  *
  * @param trackInfoDTOList
  * @return
  */
 @POST
 @Produces(MediaType.APPLICATION_JSON)
 @Consumes(MediaType.APPLICATION_JSON)
 @Path("/postTrackInfoList/")
 public Integer postTrackInfoList(TrackInfoDTOList trackInfoDTOList) {
   log.debug(trackInfoDTOList.toString());
   return ejb.persistTrackInfoList(getTrackInfoList(trackInfoDTOList));
 }
예제 #2
0
 @POST
 @Produces(MediaType.APPLICATION_JSON)
 @Consumes(MediaType.APPLICATION_JSON)
 @Path("/postTrackInfo/")
 public TrackInfoDTO postTrackInfo(TrackInfoDTO trackInfo) throws LitracyException {
   log.debug(trackInfo.toString());
   return new TrackInfoDTO(ejb.persistTrackInfo(getTrackInfo(trackInfo)));
 }
예제 #3
0
 /**
  * Return the number of track list persisted
  *
  * @param trackInfoDTOList
  * @return
  */
 @GET
 @Produces(MediaType.APPLICATION_JSON)
 @Path("/getParticipantPoints/{participantId}")
 public TrackInfoDTOList getParticipantPoints(@PathParam("participantId") String participantId) {
   log.debug("listado para participantId " + participantId);
   TrackInfoDTOList ret = new TrackInfoDTOList();
   ret.add(ejb.getParticipantPoints(Long.valueOf(participantId)));
   return ret;
 }
예제 #4
0
 @GET
 @Produces(MediaType.APPLICATION_XML)
 @Path("/getEventEditionPointsXML/{eventEditionId}")
 public TrackInfoDTOList getEventEditionPointsXML(
     @PathParam("eventEditionId") String eventEditionId) {
   log.debug("listado para eventEditionId " + eventEditionId);
   TrackInfoDTOList ret = new TrackInfoDTOList();
   ret.add(ejb.getEventEditionPoints(Long.valueOf(eventEditionId)));
   return ret;
 }
예제 #5
0
 private TrackPointDTOList getEventEditionRoute(Long eventEditionId) {
   log.debug("listado de tracks de la ruta de un eventEditionId " + eventEditionId);
   TrackPointDTOList ret = new TrackPointDTOList();
   ret.add(ejb.getEventEditionRoute(eventEditionId, 0, null));
   return ret;
 }