Package ru.syktsu.projects.oko2.server

Examples of ru.syktsu.projects.oko2.server.WebService


    public void createParticipant(JaxbParticipant input) throws GeneralServerException {
    }

    @WebMethod
    public JaxbParticipant getParticipant(String id) throws GeneralServerException {
        return new JaxbParticipant();
    }
View Full Code Here


    public void createParticipant(@WebParam(name = "participant") JaxbParticipant input) throws GeneralServerException {
    }

    @WebMethod
    public JaxbParticipant getParticipant(@WebParam(name = "participantId") String id) throws GeneralServerException {
        return new JaxbParticipant();
    }
View Full Code Here

    public void postSolution(JaxbSolution input) throws GeneralServerException {
    }

    @WebMethod
    public JaxbSolution getSolution(String id) throws GeneralServerException {
        return new JaxbSolution();
    }
View Full Code Here

    public void postSolution(@WebParam(name = "solution") JaxbSolution input) throws GeneralServerException {
    }

    @WebMethod
    public JaxbSolution getSolution(@WebParam(name = "solutionId") String solutionId) throws GeneralServerException {
        return new JaxbSolution();
    }
View Full Code Here

        return result;
    }

    public static Contest convert(JaxbContest input) {
        Contest result = new Contest();
        result.setEndTime(input.endTime);
        result.setFreezeTime(input.freezeTime);
        result.setId(input.id);
        result.setMetadata(convert(input.metadata));
        result.setName(input.name);

        //if (null == input.participants) {
        //    result.setParticipants(null);
        //} else {
        //    result.setParticipants(new ArrayList<String>());
        //
        //    for (String participantId : input.participants) {
        //        result.getParticipants().add(participantId);
        //   }
        if (null != input.participants) result.getParticipants().addAll(input.participants);      
        // }

        //if (null == input.problems) {
        //    result.setProblems(null);
        //} else {
        //    result.setProblems(new ArrayList<String>());
        //    for (String problemsId : input.problems) {
        //        result.getProblems().add(problemsId);
        //    }
        //}
        result.getProblems().addAll(input.problems);
        
        result.setPublished(input.published);
        result.setStartTime(input.startTime);

        return result;
    }
View Full Code Here

        result.tags = input.getTags();
        return result;
    }

    public static Metadata convert(JaxbMetadata input) {
        Metadata result = new Metadata();
        result.setAuthorId(input.authorId);
        result.setCreated(input.created);
        result.setModified(input.modified);
        result.setTags(input.tags);
        return result;
    }
View Full Code Here

        result.residence = input.getResidence();
        return result;
    }
//TODO:!!!
    public static Participant convert(JaxbParticipant input) {
        Participant result = new Participant();
        result.setFirstName(input.firstName);
        result.setId(input.id);
        result.setLastname(input.lastName);
        result.setNick(input.nick);
        result.setResidence(input.residence);
        return result;
    }
View Full Code Here

        result.testCount = input.getTestCount();
        return result;
    }
   
    public static Problem convert(JaxbProblem input) {
        Problem result = new Problem();
        result.setContentBody(input.contentBody);
        result.setContentInput(input.contentInput);
        result.setContentOutput(input.contentOutput);
        result.setId(input.id);
        result.setMetadata(convert(input.metadata));
        result.setName(input.name);
        result.setPublished(input.published);
        result.setTestCount(input.testCount);
        result.getTestList().addAll(input.testList);
        result.getImageList().addAll(input.imageList);
        return result;
    }
View Full Code Here

        result.received = input.getReceived();
        return result;
    }
   
    public static Solution convert(JaxbSolution input) {
        Solution result = new Solution();
        result.setChecked(input.checked);
        result.setCompiler(input.compiler);
        result.setDuration(input.duration);
        if (null!=input.extendedResult)result.getExtendedResult().addAll(input.extendedResult);
        result.setId(input.id);
        result.setMemoryExpend(input.memoryExpend);
        result.setParticipantId(input.participantId);
        result.setProblemId(input.problemId);
        result.setReceived(input.received);
        result.setSolution(input.solution);
        result.setCheckingResult(input.result);
        return result;
    }
View Full Code Here

TOP

Related Classes of ru.syktsu.projects.oko2.server.WebService

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.