Package org.sete.vo.project

Examples of org.sete.vo.project.CreateScienceProjectFileTypeVo


      HttpServletRequest request, HttpServletResponse response)
      throws Exception {

    //checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));
   
        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("view");
View Full Code Here


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

        ScienceProjectService service = getService(ScienceProjectService.class);

        CreateScienceProjectFileTypeVo cspftvo = new CreateScienceProjectFileTypeVo();       
        BeanUtils.copyProperties(cspftvo, form);
        //generate the unique key for the new Type
        String key = cspftvo.getType().toLowerCase().replaceAll(" ", "_");
        cspftvo.setKey(key);
        try
        {
          service.createNewScienceProjectFileType(cspftvo);
        }
        catch(final Exception excp)
View Full Code Here

      HttpServletRequest request, HttpServletResponse response)
      throws Exception {

    //checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));
   
        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("view");
View Full Code Here

TOP

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

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.