Package com.infoclinika.mssharing.web.controller.response

Examples of com.infoclinika.mssharing.web.controller.response.ProjectIdResponse


        long projectId = 0;
        try {
            projectId = studyManagement.newProject(getUserId(principal), project.lab, projectInfo);
            updatePolicy(getUserId(principal), projectId, project);
            setBlogEnabled(principal, projectId, project.isBlogEnabled());
            return new ProjectIdResponse(projectId, null, "Project created");
        } catch (IllegalArgumentException e) {
            return new ProjectIdResponse(projectId, e.getMessage(), null);
        }
    }
View Full Code Here


        StudyManagement.ProjectInfo projectInfo = new StudyManagement.ProjectInfo(project.getName(),
                project.getAreaOfResearch(), project.getDescription());
        try {
            studyManagement.updateProjectDetails(getUserId(principal), project.getProjectId(), projectInfo);
        } catch (IllegalArgumentException e) {
            return new ProjectIdResponse(0, e.getMessage(), null);
        }
        updatePolicy(getUserId(principal), project.getProjectId(), project);
        setBlogEnabled(principal, project.getProjectId(), project.isBlogEnabled());
        return new ProjectIdResponse(project.getProjectId(), null, "Project updated");
    }
View Full Code Here

TOP

Related Classes of com.infoclinika.mssharing.web.controller.response.ProjectIdResponse

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.