Package org.sete.vo.project

Examples of org.sete.vo.project.ScienceProjectCategoryVo


    spct.setDescription("test category description");
   
    EasyMock.expect(mockSPCDao.findByProjectCategoryKey("test_category")).andReturn(spct);
    EasyMock.replay(mockSPCDao);
   
    ScienceProjectCategoryVo spcvo = spcs.loadScienceProjectCategory("test_category");
    assertEquals(spcvo.getProjectCategoryName(), "test category");
    assertEquals(spcvo.getProjectCategoryDescription(), "test category description");
  }
View Full Code Here


    private ScienceProjectCategoryDao projectCategoryDao;

    public List<ScienceProjectCategoryVo> loadAllScienceProjectCategories() {
        List<ScienceProjectCategoryType> projectCategories = projectCategoryDao.getAllScienceProjectCategories();
        List<ScienceProjectCategoryVo> projectCategoryVos = new ArrayList<ScienceProjectCategoryVo>();
        ScienceProjectCategoryVo spcvo = null;
       
        for(ScienceProjectCategoryType spc : projectCategories) {
            spcvo = new ScienceProjectCategoryVo();
           
            spcvo.setProjectCategoryName(spc.getLabel());
            spcvo.setProjectCategoryDescription(spc.getDescription());
            projectCategoryVos.add(spcvo);
        }

        return projectCategoryVos;
    }
View Full Code Here

      ScienceProjectCategoryType projectCategory = projectCategoryDao.findByProjectCategoryKey(projectCategoryKey) ;
     
      System.out.println("***** name = " + projectCategory.getLabel()) ;
      System.out.println("***** desc = " + projectCategory.getDescription()) ;
     
      ScienceProjectCategoryVo spcvo = new ScienceProjectCategoryVo();
      spcvo.setProjectCategoryName(projectCategory.getLabel()) ;
      spcvo.setProjectCategoryDescription(projectCategory.getDescription()) ;
     
      return spcvo ;   
    }
View Full Code Here

      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

     * @see org.sete.service.project.ScienceProjectCategoryService#loadAllScienceProjectCategories()
     */
    public List<ScienceProjectCategoryVo> loadAllScienceProjectCategories() {
        List<ScienceProjectCategoryType> projectCategories = projectCategoryDao.getAllScienceProjectCategories();
        List<ScienceProjectCategoryVo> projectCategoryVos = new ArrayList<ScienceProjectCategoryVo>();
        ScienceProjectCategoryVo spcvo = null;
       
        for(ScienceProjectCategoryType spc : projectCategories) {
            spcvo = new ScienceProjectCategoryVo();
           
            spcvo.setProjectCategoryName(spc.getLabel());
            spcvo.setProjectCategoryDescription(spc.getDescription());
            projectCategoryVos.add(spcvo);
        }

        return projectCategoryVos;
    }
View Full Code Here

     */
    public ScienceProjectCategoryVo loadScienceProjectCategory(String projectCategoryKey) {
      ScienceProjectCategoryType projectCategory = projectCategoryDao.findByProjectCategoryKey(projectCategoryKey) ;
     
     
      ScienceProjectCategoryVo spcvo = new ScienceProjectCategoryVo();
      spcvo.setProjectCategoryName(projectCategory.getLabel()) ;
      spcvo.setProjectCategoryDescription(projectCategory.getDescription()) ;
     
      return spcvo ;   
    }
View Full Code Here

TOP

Related Classes of org.sete.vo.project.ScienceProjectCategoryVo

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.