Examples of Conference


Examples of org.cedj.geekseek.domain.conference.model.Conference

        cal.set(Calendar.MILLISECOND, 0);
        return cal.getTime();
    }

    public static Conference createConference() {
        Conference conference = new Conference(
            "Devoxx Belgium 2013",
            "We Code In Peace",
            new Duration(toDate(2013, 11, 11), toDate(2013, 11, 15)));
        return conference;
    }
View Full Code Here

Examples of org.cedj.geekseek.domain.conference.model.Conference

    @POST
    @Path("/{c_id}/session")
    @Consumes({ BASE_JSON_MEDIA_TYPE, BASE_XML_MEDIA_TYPE })
    public Response createSession(@PathParam("c_id") String conferenceId, SessionRepresentation sessionRepresentation) {
        Conference conference = getRepository().get(conferenceId);
        if (conference == null) {
            return Response.status(Status.BAD_REQUEST).build(); // TODO: Need Business Exception type to explain why?
        }

        Session session = sessionConverter.to(getUriInfo(), sessionRepresentation);
        conference.addSession(session);
        getRepository().store(conference);

        return Response.created(
            UriBuilder.fromResource(
                SessionResource.class).segment("{id}")
View Full Code Here

Examples of org.cedj.geekseek.domain.conference.model.Conference

    @SuppressWarnings({ "unchecked", "rawtypes" })
    @GET
    @Path("/{c_id}/session")
    @Produces({ BASE_JSON_MEDIA_TYPE, BASE_XML_MEDIA_TYPE })
    public Response getSessions(@PathParam("c_id") String conferenceId) {
        Conference conference = getRepository().get(conferenceId);
        if (conference == null) {
            return Response.status(Status.BAD_REQUEST).build(); // TODO: Need Business Exception type to explain why?
        }

        Collection<SessionRepresentation> sessions = sessionConverter.from(getUriInfo(), (Collection)conference.getSessions());

        return Response.ok(new GenericEntity<Collection<SessionRepresentation>>(sessions){})
            .type(matchMediaType(
                SessionResource.SESSION_XML_MEDIA_TYPE,
                SessionResource.SESSION_JSON_MEDIA_TYPE))
View Full Code Here

Examples of org.cedj.geekseek.domain.conference.model.Conference

        return rep;
    }

    @Override
    public Conference to(UriInfo uriInfo, ConferenceRepresentation representation) {
        Conference conf = new Conference(
            representation.getName(),
            representation.getTagLine(),
            new Duration(representation.getStart(), representation.getEnd()));
        return conf;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.