Package org.sete.service.project

Examples of org.sete.service.project.ScienceProjectCategoryService


                                               HttpServletRequest request, HttpServletResponse response)
            throws Exception {

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

        ScienceProjectCategoryService service = getService(ScienceProjectCategoryService.class);
        List<ScienceProjectCategoryVo> projectCategories = service.loadAllScienceProjectCategories();
        request.setAttribute("projectCategories", projectCategories);
        return mapping.findForward(WebConstants.FORWARD_VIEW);
    }
View Full Code Here


                                               HttpServletRequest request, HttpServletResponse response)
            throws Exception {

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

        ScienceProjectCategoryService service = getService(ScienceProjectCategoryService.class);

        CreateScienceProjectCategoryVo cspcvo = new CreateScienceProjectCategoryVo();
        BeanUtils.copyProperties(cspcvo, form);

        service.createNewScienceProjectCategory(cspcvo);
        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()));
            ScienceProjectCategoryType spcType = TypeUtil.forKey(ScienceProjectCategoryType.class, request.getParameter("key"));
            ScienceProjectCategoryService service = getService(ScienceProjectCategoryService.class);
            service.deleteScienceProjectCategory(spcType);
            TypeLoader.initializeSystemTypes(super.getServletContext());

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

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

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

        ScienceProjectCategoryService service = getService(ScienceProjectCategoryService.class);

        EditScienceProjectCategoryVo espcvo = new EditScienceProjectCategoryVo();
        BeanUtils.copyProperties(espcvo, form);

        System.out.println("***** action: form name = " + espcvo.getProjectCategoryName()) ;
        System.out.println("***** action: form desc = " + espcvo.getProjectCategoryDescription()) ;

        service.editScienceProjectCategory(espcvo);
        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()));

    ScienceProjectCategoryService service = getService(ScienceProjectCategoryService.class);
    List<ScienceProjectCategoryVo> projectCategories = service.loadAllScienceProjectCategories();
    request.setAttribute("projectCategories", projectCategories);
        return mapping.findForward("view");
  }
View Full Code Here

      HttpServletRequest request, HttpServletResponse response)
      throws Exception {

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

        ScienceProjectCategoryService service = getService(ScienceProjectCategoryService.class);

        CreateScienceProjectCategoryVo cspcvo = new CreateScienceProjectCategoryVo();
        BeanUtils.copyProperties(cspcvo, form);
               
        service.createNewScienceProjectCategory(cspcvo);
        TypeLoader.initializeSystemTypes(super.getServletContext());

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

  public ActionForward deleteProjectCategory(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response)
      throws Exception {

  //  checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));
    ScienceProjectCategoryService service = getService(ScienceProjectCategoryService.class);

        DeleteScienceProjectCategoryVo dspcvo = new DeleteScienceProjectCategoryVo();
        BeanUtils.copyProperties(dspcvo, form);
       
        service.deleteScienceProjectCategory(dspcvo);
        TypeLoader.initializeSystemTypes(super.getServletContext());
       
        return mapping.findForward("view");
  }
View Full Code Here

  public ActionForward viewProjectCategory(ActionMapping mapping,
      ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {

  //  checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));
    ScienceProjectCategoryService service = getService(ScienceProjectCategoryService.class);
    SelectProjectCategoryForm spcf = (SelectProjectCategoryForm) form ;
    ScienceProjectCategoryVo projectCategory = service.loadScienceProjectCategory(spcf.getProjectCategoryName());
   
    request.setAttribute("projectCategory", projectCategory) ;
   
        return mapping.findForward("view");
  }
View Full Code Here

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

  //  checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));
   
    ScienceProjectCategoryService service = getService(ScienceProjectCategoryService.class);

        EditScienceProjectCategoryVo espcvo = new EditScienceProjectCategoryVo();
        BeanUtils.copyProperties(espcvo, form);
       
        System.out.println("***** action: form name = " + espcvo.getProjectCategoryName()) ;
        System.out.println("***** action: form desc = " + espcvo.getProjectCategoryDescription()) ;
       
        service.editScienceProjectCategory(espcvo);
        TypeLoader.initializeSystemTypes(super.getServletContext());   
        return mapping.findForward("view");
  }
View Full Code Here

      HttpServletRequest request, HttpServletResponse response)
      throws Exception {

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

    ScienceProjectCategoryService service = getService(ScienceProjectCategoryService.class);
    List<ScienceProjectCategoryVo> projectCategories = service.loadAllScienceProjectCategories();
    request.setAttribute("projectCategories", projectCategories);
        return mapping.findForward("view");
  }
View Full Code Here

TOP

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

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.