Package org.sete.service.project

Examples of org.sete.service.project.ScienceProjectService


    vo.setActionType(TypeUtil.forKey(PrivilegeActionType.class,
        PrivilegeActionType.READ_WRITE));

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

        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


      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

            HttpServletRequest request, HttpServletResponse response)
            throws Exception {

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

        ScienceProjectService service = getService(ScienceProjectService.class);
        Integer id = new Integer(request.getParameter("key"));
        Integer projid = new Integer(request.getParameter("projkey"));
       
        AttachmentVo data = service.loadProjectFilesData(projid,id);
        String fileName = data.getName();
        //fixing an issue I experienced when viewing files with spaces in the file name
        fileName = fileName.replace(' ', '_');
        //fixing cache issue in IE
        response.setHeader("Pragma", "public");
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.