Package cn.edu.pku.dr.requirement.elicitation.data

Examples of cn.edu.pku.dr.requirement.elicitation.data.ProblemsolutionEvaluation


    public String getContent(Long userId, Problemsolution problemsolution,
            ProblemsolutionReply psr, String useState) throws EasyJException {
        StringBuffer buffer = new StringBuffer();
        SingleDataProxy sdp = SingleDataProxy.getInstance();
        ProblemsolutionEvaluation pse = new ProblemsolutionEvaluation();
        ProblemsolutionReplyEvaluation psre = new ProblemsolutionReplyEvaluation();
        if (problemsolution != null) {
            boolean flag = true;
            boolean stageflag1 = true;
            boolean stageflag2 = true;
            boolean stageflag3 = true;

            int j = 0;
            ArrayList pses = problemsolution.getProblemsolutionEvaluations();
            while (flag == true && j < pses.size()) {
                pse = (ProblemsolutionEvaluation) pses.get(j);
                if (pse.getCreatorId().intValue() == userId.intValue()) {
                    flag = false;

                }
                j++;
            }
            ProblemsolutionEvaluation pse_stage = new ProblemsolutionEvaluation();
            pse_stage.setProblemsolutionId(problemsolution
                    .getProblemsolutionId());
            pse_stage.setStage(1);
            ArrayList pses_stage1 = sdp.query(pse_stage);
            pse_stage.setStage(2);
            ArrayList pses_stage2 = sdp.query(pse_stage);
            FinalsolutionEvaluation fse = new FinalsolutionEvaluation();
            Finalsolution fs = new Finalsolution();
            fs.setProblemsolutionId(problemsolution.getProblemsolutionId());
            try {
View Full Code Here


    public void problemsolutionUpdate() throws EasyJException, IOException {
        ProblemSolutionImpl targetObject = new ProblemSolutionImpl();
        ProblemSolutionInterface problemsolutionInterface = null;
        Object proxy = ProblemSolutionProxyFactory.getProxy(targetObject);
        problemsolutionInterface = (ProblemSolutionInterface) proxy;
        ProblemsolutionEvaluation pse = new ProblemsolutionEvaluation();
        pse = (ProblemsolutionEvaluation) object;
        response.setContentType("text/xml");
        response.getWriter().write(
                problemsolutionInterface.problemsolutionUpdate(pse,
                        this.request, response).toString());
View Full Code Here

TOP

Related Classes of cn.edu.pku.dr.requirement.elicitation.data.ProblemsolutionEvaluation

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.