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

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


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


        @RequestParam("status") String status,
        @RequestParam("presentationPlaceId") Long presentationPlaceId,
        @RequestParam("proposalTime") Timestamp proposalTime,
        HttpServletResponse servletResponse
        ) throws IOException {
        Presentation _presentation = new Presentation (
           id,
           startTime,
           endTime,
           abstractName,
           title,
View Full Code Here

       setComment (comment);
       setEvaluationDate (evaluationDate);
       //parents
       this.conferenceMemberId = new ConferenceMember();
       this.conferenceMemberId.setId(conferenceMemberId); //ConferenceMember Column [name=id; type=BIGINT] - local Evaluation Column [name=conference_member_id; type=BIGINT]
       this.presentationId = new Presentation();
       this.presentationId.setId(presentationId); //Presentation Column [name=id; type=BIGINT] - local Evaluation Column [name=presentation_id; type=BIGINT]
    }
View Full Code Here

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

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

//MP-MANAGED-UPDATABLE-ENDING

    @DELETE
    @Path("{id}")
    public void delete (@PathParam ("id") Long id) {
        Presentation presentation = new Presentation ();
        presentation.setId(id);
        presentationDao.deletePresentation(presentation);
    }
View Full Code Here

        @FormParam("status") String status,
        @FormParam("presentationPlaceId") Long presentationPlaceId,
        @FormParam("proposalTime") Timestamp proposalTime,
        @Context HttpServletResponse servletResponse
        ) throws IOException {
        Presentation _presentation = new Presentation (
           id,
           startTime,
           endTime,
           abstractName,
           title,
View Full Code Here

    }

    @PUT
    @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
    public Presentation save(JAXBElement<Presentation> jaxbPresentation) {
        Presentation presentation = jaxbPresentation.getValue();
        if (presentation.getId()!=null)
            return presentationDao.updatePresentation(presentation);
        return save(presentation);
    }
View Full Code Here

TOP

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

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.