Package net.sf.mp.demo.conference.domain.conference

Examples of net.sf.mp.demo.conference.domain.conference.Evaluation


    @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
    @Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class)
  @ResponseBody
    public String delete (@PathVariable ("id") Long id) {
        Evaluation evaluation = new Evaluation ();
        evaluation.setId(id);
        evaluationDao.deleteEvaluation(evaluation);
    return "OK";
    }
View Full Code Here


        @RequestParam("star") Integer star,
        @RequestParam("comment") String comment,
        @RequestParam("evaluationDate") Timestamp evaluationDate,
        HttpServletResponse servletResponse
        ) throws IOException {
        Evaluation _evaluation = new Evaluation (
           id,
           conferenceMemberId,
           presentationId,
           star,
           comment,
View Full Code Here

//MP-MANAGED-UPDATABLE-BEGINNING-DISABLE @FIND_ALL-evaluation@
    @GET
    @Produces ({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) 
    public List<Evaluation> findAll () {
    List<Evaluation> r = new ArrayList<Evaluation>();
        List<Evaluation> l = evaluationDao.searchPrototypeEvaluation(new Evaluation());
    for (Evaluation evaluation : l) {
      r.add(evaluation.flat());
    }
    return r;
    }
View Full Code Here

//MP-MANAGED-UPDATABLE-BEGINNING-DISABLE @FIND_BY_ID-evaluation@
    @GET
    @Path("{id}")
    @Produces ({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})   
    public Evaluation findById (@PathParam ("id") java.lang.Long id) {
        Evaluation _evaluation = new Evaluation ();
    _evaluation.setId(id);
    _evaluation = evaluationExtDao.getFirstEvaluation(_evaluation);
    if (_evaluation!=null) return _evaluation.flat();
    return new Evaluation ();
    }
View Full Code Here

//MP-MANAGED-UPDATABLE-ENDING

    @DELETE
    @Path("{id}")
    public void delete (@PathParam ("id") Long id) {
        Evaluation evaluation = new Evaluation ();
        evaluation.setId(id);
        evaluationDao.deleteEvaluation(evaluation);
    }
View Full Code Here

        @FormParam("star") Integer star,
        @FormParam("comment") String comment,
        @FormParam("evaluationDate") Timestamp evaluationDate,
        @Context HttpServletResponse servletResponse
        ) throws IOException {
        Evaluation _evaluation = new Evaluation (
           id,
           conferenceMemberId,
           presentationId,
           star,
           comment,
View Full Code Here

    }

    @PUT
    @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
    public Evaluation save(JAXBElement<Evaluation> jaxbEvaluation) {
        Evaluation evaluation = jaxbEvaluation.getValue();
        if (evaluation.getId()!=null)
            return evaluationDao.updateEvaluation(evaluation);
        return save(evaluation);
    }
View Full Code Here

TOP

Related Classes of net.sf.mp.demo.conference.domain.conference.Evaluation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.