Package org.sete.service.project

Examples of org.sete.service.project.ScienceProjectService


        CreateScienceProjectFileTypeVo cspftvo = new CreateScienceProjectFileTypeVo();
        CreateProjectFileTypeForm fileTypeForm = (CreateProjectFileTypeForm) form;
        BeanUtils.copyProperties(cspftvo, fileTypeForm);
        cspftvo.setKey(request.getParameter("key"));
        ScienceProjectService service = getService(ScienceProjectService.class);
        service.updateScienceProjectFileType(cspftvo);
        TypeLoader.initializeSystemTypes(super.getServletContext());

        return mapping.findForward(WebConstants.FORWARD_VIEW);
    }
View Full Code Here


                                               HttpServletRequest request, HttpServletResponse response)
            throws Exception {

        //checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));
        AttachmentType type = TypeUtil.forKey(AttachmentType.class, request.getParameter("key"));
        ScienceProjectService service = getService(ScienceProjectService.class);
        service.deleteScienceProjectFileType(type);
        TypeLoader.initializeSystemTypes(super.getServletContext());

        return mapping.findForward(WebConstants.FORWARD_VIEW);
    }
View Full Code Here

                              HttpServletRequest request,
                              HttpServletResponse response) throws Exception {

        checkAuthorization(userHasPrivilege(request.getSession(), getRequiredPrivs()));

        ScienceProjectService service = getService(ScienceProjectService.class);
        AuthenticatedUserVo userVo = getAuthenticatedUser(request);
        List<ScienceProjectVo> projects = service.loadAllScienceProjectsSponsoredBy(userVo.getUserId());
        request.setAttribute("sponsoredProjects", projects);
        return mapping.findForward(WebConstants.FORWARD_VIEW);
    }
View Full Code Here

                                HttpServletResponse response) throws Exception {

        checkAuthorization(userHasPrivilege(request.getSession(), getRequiredPrivs()));

        Integer id = new Integer(request.getParameter("key"));
        ScienceProjectService service = getService(ScienceProjectService.class);
        List<AttachmentVo> files = service.loadAllProjectFilesFor(id);

        request.setAttribute("canEditProjectFiles", userHasPrivilege(request.getSession(), getSpecialPrivs()));
        request.setAttribute("projectID", id);
        request.setAttribute("files", files);
        return mapping.findForward(WebConstants.FORWARD_VIEW);
View Full Code Here

                              HttpServletRequest request,
                              HttpServletResponse response) throws Exception {

        checkAuthorization(userHasPrivilege(request.getSession(), getRequiredPrivs()));
       
        ScienceProjectService service = getService(ScienceProjectService.class);
        AuthenticatedUserVo userVo = getAuthenticatedUser(request);
        List<ScienceProjectVo> projects = service.loadAllScienceProjectsSponsoredBy(userVo.getUserId());
        request.setAttribute("sponsoredProjects", projects);
        return mapping.findForward("view");
    }
View Full Code Here

            HttpServletResponse response) throws Exception {

        checkAuthorization(userHasPrivilege(request.getSession(), getRequiredPrivs()));
       
        Integer id = new Integer(request.getParameter("key"));
        ScienceProjectService service = getService(ScienceProjectService.class);
        List<AttachmentVo> files = service.loadAllProjectFilesFor(id);
        request.setAttribute("canEditProjectFiles", userHasPrivilege(request.getSession(), getSpecialPrivs()));
        request.setAttribute("projectID", id);
        request.setAttribute("files", files);
        return mapping.findForward("view");
View Full Code Here

      throws Exception {

    checkAuthorization(userHasPrivilege(request.getSession(),
        getPrivileges()));

    ScienceProjectService service = getService(ScienceProjectService.class);
    ScienceProjectVo project = service.loadScienceProjectByStudentUserId(getAuthenticatedUser(request).getUserId());
    request.setAttribute("project", project);
    return mapping.findForward("view");
  }
View Full Code Here

      HttpServletRequest request, HttpServletResponse response)
      throws Exception {

        checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));

    ScienceProjectService service = getService(ScienceProjectService.class);
    List<ScienceProjectVo> projects = service.loadAllScienceProjects();
    request.setAttribute("projects", projects);

        return mapping.findForward("view");
  }
View Full Code Here

      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {

    checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));
    // TO DO - fix for Spring'07 - create VO which holds all the form beans
    ScienceProjectService service = getService(ScienceProjectService.class);

        HttpSessionManager.bind(request.getSession(),
                                "students",
                                service.loadAllUsersByRole(UserRoleType.Key.STUDENT_KEY));
    HttpSessionManager.bind(request.getSession(),
                                "sponsors",
                                service.loadAllUsersByRole(UserRoleType.Key.SPONSOR_KEY));

        return mapping.findForward("view");
  }
View Full Code Here

      HttpServletRequest request, HttpServletResponse response)
      throws Exception {

    checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));

        ScienceProjectService service = getService(ScienceProjectService.class);

        CreateScienceProjectVo cspvo = new CreateScienceProjectVo();
        BeanUtils.copyProperties(cspvo, form);
        cspvo.setCreator(getAuthenticatedUser(request).getUserId().toString());
       
        service.createNewScienceProject(cspvo);

        return mapping.findForward("view");
  }
View Full Code Here

TOP

Related Classes of org.sete.service.project.ScienceProjectService

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.