Package org.sete.service.project

Examples of org.sete.service.project.ScienceProjectIdeaService


                              HttpServletRequest request, HttpServletResponse response)
            throws Exception {

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

        ScienceProjectIdeaService service = getService(ScienceProjectIdeaService.class);
        List<ScienceProjectIdeaVo> ideas = service
                .loadAllScienceProjectIdeas();

        request.setAttribute("ideas", ideas);
        return mapping.findForward(WebConstants.FORWARD_VIEW);
    }
View Full Code Here


            throws Exception {

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


        ScienceProjectIdeaService service = getService(ScienceProjectIdeaService.class);
        CreateScienceProjectIdeaVo cspvo = new CreateScienceProjectIdeaVo();

        BeanUtils.copyProperties(cspvo, form);
        //the suggestor defined in the form is NULL but we want it to be the Authenticated User
        cspvo.setSuggestor(getAuthenticatedUser(request).getLoginName());

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

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

        CreateProjectIdeaForm csuf = (CreateProjectIdeaForm) form;

        ScienceProjectIdeaService service = getService(ScienceProjectIdeaService.class);
        ScienceProjectIdeaVo suvo = service.getProjectIdea(request.getParameter("projectIdeaId"), false);
        BeanUtils.copyProperties(csuf, suvo);

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

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

        CreateScienceProjectIdeaVo csuvo = new CreateScienceProjectIdeaVo();
        BeanUtils.copyProperties(csuvo, form);
        ScienceProjectIdeaService service = getService(ScienceProjectIdeaService.class);
        service.updateProjectIdea(csuvo);

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

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

        checkAuthorization(userHasPrivilege(request.getSession(), getAdminPrivileges()));
        ScienceProjectIdeaService service = getService(ScienceProjectIdeaService.class);
        boolean result = service.deleteProjectIdea(request.getParameter("projectIdeaId"));
        this.createSuccessMessage(request, result);

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

//    vo.setActionType(TypeUtil.forKey(PrivilegeActionType.class,
//        PrivilegeActionType.READ));
//
//    checkAuthorization(userHasPrivilege(request.getSession(), vo));

    ScienceProjectIdeaService service = getService(ScienceProjectIdeaService.class);
    List<ScienceProjectIdeaVo> ideas = service
        .loadAllScienceProjectIdeas();

    request.setAttribute("ideas", ideas);
    return mapping.findForward("view");
  }
View Full Code Here

//        PrivilegeActionType.READ_WRITE));
//
//    checkAuthorization(userHasPrivilege(request.getSession(), vo));
 

    ScienceProjectIdeaService service = getService(ScienceProjectIdeaService.class);
    CreateScienceProjectIdeaVo cspvo = new CreateScienceProjectIdeaVo();
   
    BeanUtils.copyProperties(cspvo, form);
    //the suggestor defined in the form is NULL but we want it to be the Authenticated User
    cspvo.setSuggestor(getAuthenticatedUser(request).getLoginName());
   
    service.createNewScienceProjectIdea(cspvo);
    return mapping.findForward("view");
  }
View Full Code Here

//    vo.setActionType(TypeUtil.forKey(PrivilegeActionType.class,
//        PrivilegeActionType.READ));
//
//    checkAuthorization(userHasPrivilege(request.getSession(), vo));

    ScienceProjectIdeaService service = getService(ScienceProjectIdeaService.class);
    List<ScienceProjectIdeaVo> ideas = service
        .loadAllScienceProjectIdeas();

    request.setAttribute("ideas", ideas);
    return mapping.findForward("view");
  }
View Full Code Here

//        PrivilegeActionType.READ_WRITE));
//
//    checkAuthorization(userHasPrivilege(request.getSession(), vo));
 

    ScienceProjectIdeaService service = getService(ScienceProjectIdeaService.class);
    CreateScienceProjectIdeaVo cspvo = new CreateScienceProjectIdeaVo();
   
    BeanUtils.copyProperties(cspvo, form);
    //the suggestor defined in the form is NULL but we want it to be the Authenticated User
    cspvo.setSuggestor(getAuthenticatedUser(request).getLoginName());
   
    service.createNewScienceProjectIdea(cspvo);
    return mapping.findForward("view");
  }
View Full Code Here

TOP

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

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.